Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLars Vogel2020-09-22 02:31:55 -0400
committerKarsten Thoms2020-09-23 04:16:38 -0400
commita63c6d900c4e0b8ef52f6cfa8f846d37b56606b9 (patch)
tree47144992e6e48ce01e28eb4a08f65a671f8bd11b /examples
parentd1f38dba433f0f0baefe9a10c95a4c07e70c82d7 (diff)
downloadeclipse.platform.swt-a63c6d900c4e0b8ef52f6cfa8f846d37b56606b9.tar.gz
eclipse.platform.swt-a63c6d900c4e0b8ef52f6cfa8f846d37b56606b9.tar.xz
eclipse.platform.swt-a63c6d900c4e0b8ef52f6cfa8f846d37b56606b9.zip
Use isEmpty in BallTab example
Change-Id: I3af2151c21674180b20fbeb3cd2f094d9e6229c1 Signed-off-by: Lars Vogel <Lars.Vogel@vogella.com>
Diffstat (limited to 'examples')
-rw-r--r--examples/org.eclipse.swt.examples/src/org/eclipse/swt/examples/graphics/BallTab.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/org.eclipse.swt.examples/src/org/eclipse/swt/examples/graphics/BallTab.java b/examples/org.eclipse.swt.examples/src/org/eclipse/swt/examples/graphics/BallTab.java
index 99ad608c70..64e298246a 100644
--- a/examples/org.eclipse.swt.examples/src/org/eclipse/swt/examples/graphics/BallTab.java
+++ b/examples/org.eclipse.swt.examples/src/org/eclipse/swt/examples/graphics/BallTab.java
@@ -91,7 +91,7 @@ public class BallTab extends AnimatedGraphicsTab {
public void next(int width, int height) {
for (int i = 0; i < bc.length; i++) {
if (bc[i] == null) return;
- if (bc[i].prevx.size() == 0) {
+ if (bc[i].prevx.isEmpty()) {
bc[i].prevx.addLast(Float.valueOf(bc[i].x));
bc[i].prevy.addLast(Float.valueOf(bc[i].y));
} else if (bc[i].prevx.size() == bc[i].capacity) {

Back to the top