Kaydet (Commit) 59c05d03 authored tarafından Stephan Bergmann's avatar Stephan Bergmann

Make use of autoboxing

Change-Id: I5eb463abbacc8804712a10bdccfe5535ba82c07b
üst 67a5b7a8
...@@ -359,7 +359,7 @@ class AccTreeNode ...@@ -359,7 +359,7 @@ class AccTreeNode
aDescriptor.mnChildCount = nChildCount; aDescriptor.mnChildCount = nChildCount;
// Fill in the indices of the updated children. // Fill in the indices of the updated children.
for (int j=0; j<nChildCount; j++) for (int j=0; j<nChildCount; j++)
aChildIndices.add(new Integer(j+nOffset)); aChildIndices.add(j+nOffset);
} }
nOffset += aDescriptor.mnChildCount; nOffset += aDescriptor.mnChildCount;
} }
......
...@@ -401,7 +401,7 @@ public class AccessibilityTreeModel ...@@ -401,7 +401,7 @@ public class AccessibilityTreeModel
int nChildIndices[] = new int[nCount]; int nChildIndices[] = new int[nCount];
for (int i=0; i<nCount; i++) for (int i=0; i<nCount; i++)
{ {
int nIndex = aChildIndices.elementAt(i).intValue(); int nIndex = aChildIndices.elementAt(i);
aChildObjects[i] = aNode.getChild (nIndex); aChildObjects[i] = aNode.getChild (nIndex);
nChildIndices[i] = nIndex; nChildIndices[i] = nIndex;
} }
......
...@@ -79,7 +79,7 @@ public class AccessibleTreeCellRenderer ...@@ -79,7 +79,7 @@ public class AccessibleTreeCellRenderer
if (maChangedLines.size() <= nRow) if (maChangedLines.size() <= nRow)
maChangedLines.setSize (nRow+1); maChangedLines.setSize (nRow+1);
nRow -= 1; // row index is one to large for some reason. 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 /** Inform the cell renderer of a set of changed line which to paint
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment