src/java.desktop/share/classes/javax/swing/tree/DefaultTreeSelectionModel.java
Print this page
rev 10525 : 8038277: Improve the bootstrap performance of cacerts keystore (client)
Contributed-by: Otavio Santana <otaviojava@java.net>
*** 1161,1179 ****
if(rowMapper != null)
rows = rowMapper.getRowsForPaths(selection);
else
rows = null;
! sb.append(getClass().getName() + " " + hashCode() + " [ ");
for(int counter = 0; counter < selCount; counter++) {
if(rows != null)
! sb.append(selection[counter].toString() + "@" +
! Integer.toString(rows[counter])+ " ");
else
! sb.append(selection[counter].toString() + " ");
}
! sb.append("]");
return sb.toString();
}
/**
* Returns a clone of this object with the same selection.
--- 1161,1179 ----
if(rowMapper != null)
rows = rowMapper.getRowsForPaths(selection);
else
rows = null;
! sb.append(getClass().getName()).append(' ').append(hashCode()).append(" [ ");
for(int counter = 0; counter < selCount; counter++) {
if(rows != null)
! sb.append(selection[counter].toString()).append('@')
! .append(Integer.toString(rows[counter])).append(' ');
else
! sb.append(selection[counter].toString()).append(' ');
}
! sb.append(']');
return sb.toString();
}
/**
* Returns a clone of this object with the same selection.