diff options
author | Noel Grandin <noel@peralex.com> | 2014-08-21 08:27:25 +0200 |
---|---|---|
committer | Noel Grandin <noel@peralex.com> | 2014-10-07 13:20:03 +0200 |
commit | 68fa1410975ccecc35db8a97669f0fbe5ef9b451 (patch) | |
tree | 5fd946ab04ea37e17813ec3c0345badc59ae5400 /toolkit/test/accessibility | |
parent | 81968336ea6433293c603110a75bd13d5898c0eb (diff) |
java: use isEmpty() instead of "size() == 0"
Change-Id: I23e1038246999b0744d8e9ae83b66fa1f7dafa99
Diffstat (limited to 'toolkit/test/accessibility')
-rw-r--r-- | toolkit/test/accessibility/AccTreeNode.java | 2 | ||||
-rw-r--r-- | toolkit/test/accessibility/Canvas.java | 2 |
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()); |