summaryrefslogtreecommitdiff
path: root/toolkit
diff options
context:
space:
mode:
Diffstat (limited to 'toolkit')
-rw-r--r--toolkit/test/accessibility/AccTreeNode.java2
-rw-r--r--toolkit/test/accessibility/Canvas.java2
2 files changed, 2 insertions, 2 deletions
diff --git a/toolkit/test/accessibility/AccTreeNode.java b/toolkit/test/accessibility/AccTreeNode.java
index 73eb9a757e29..136f872a68d7 100644
--- a/toolkit/test/accessibility/AccTreeNode.java
+++ b/toolkit/test/accessibility/AccTreeNode.java
@@ -281,7 +281,7 @@ class AccTreeNode
@Override
public boolean isLeaf()
{
- return (maHandlers.size() == 0);
+ return maHandlers.isEmpty();
}
@Override
diff --git a/toolkit/test/accessibility/Canvas.java b/toolkit/test/accessibility/Canvas.java
index d815f9df3ff1..c600a9e7f91d 100644
--- a/toolkit/test/accessibility/Canvas.java
+++ b/toolkit/test/accessibility/Canvas.java
@@ -98,7 +98,7 @@ class Canvas
{
aObject = new CanvasShape (aNode);
// Update bounding box that includes all objects.
- if (maObjects.size() == 0)
+ if (maObjects.isEmpty())
maBoundingBox = aObject.getBBox();
else
maBoundingBox = maBoundingBox.union (aObject.getBBox());