diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2012-08-28 14:20:47 +0200 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2012-08-28 16:15:43 +0200 |
commit | 59c05d030e6e95924ef442b23b86b674518e593b (patch) | |
tree | a280f6f3c040dafd4707a98f3885a3ccbf39becb | |
parent | 67a5b7a8c1a1b1d9a8e458c26be3dc706ab3fabc (diff) |
Make use of autoboxing
Change-Id: I5eb463abbacc8804712a10bdccfe5535ba82c07b
-rw-r--r-- | toolkit/test/accessibility/AccTreeNode.java | 2 | ||||
-rw-r--r-- | toolkit/test/accessibility/AccessibilityTreeModel.java | 2 | ||||
-rw-r--r-- | toolkit/test/accessibility/AccessibleTreeCellRenderer.java | 2 |
3 files changed, 3 insertions, 3 deletions
diff --git a/toolkit/test/accessibility/AccTreeNode.java b/toolkit/test/accessibility/AccTreeNode.java index c97225752b2d..47cd3924b7bd 100644 --- a/toolkit/test/accessibility/AccTreeNode.java +++ b/toolkit/test/accessibility/AccTreeNode.java @@ -359,7 +359,7 @@ class AccTreeNode aDescriptor.mnChildCount = nChildCount; // Fill in the indices of the updated children. for (int j=0; j<nChildCount; j++) - aChildIndices.add(new Integer(j+nOffset)); + aChildIndices.add(j+nOffset); } nOffset += aDescriptor.mnChildCount; } diff --git a/toolkit/test/accessibility/AccessibilityTreeModel.java b/toolkit/test/accessibility/AccessibilityTreeModel.java index 12ff8a6195d7..bd442ed0912c 100644 --- a/toolkit/test/accessibility/AccessibilityTreeModel.java +++ b/toolkit/test/accessibility/AccessibilityTreeModel.java @@ -401,7 +401,7 @@ public class AccessibilityTreeModel int nChildIndices[] = new int[nCount]; for (int i=0; i<nCount; i++) { - int nIndex = aChildIndices.elementAt(i).intValue(); + int nIndex = aChildIndices.elementAt(i); aChildObjects[i] = aNode.getChild (nIndex); nChildIndices[i] = nIndex; } diff --git a/toolkit/test/accessibility/AccessibleTreeCellRenderer.java b/toolkit/test/accessibility/AccessibleTreeCellRenderer.java index 03b7d938e19d..169fe9691b2a 100644 --- a/toolkit/test/accessibility/AccessibleTreeCellRenderer.java +++ b/toolkit/test/accessibility/AccessibleTreeCellRenderer.java @@ -79,7 +79,7 @@ public class AccessibleTreeCellRenderer if (maChangedLines.size() <= nRow) maChangedLines.setSize (nRow+1); nRow -= 1; // row index is one to large for some reason. - maChangedLines.set (nRow, new Boolean (true)); + maChangedLines.set (nRow, true); } /** Inform the cell renderer of a set of changed line which to paint |