< prev index next >

src/java.desktop/share/classes/javax/swing/JColorChooser.java

Print this page
rev 10947 : 8055723: Replace concat String to append in StringBuilder parameters

*** 541,561 **** * be <code>null</code>. * * @return a string representation of this <code>JColorChooser</code> */ protected String paramString() { ! StringBuilder chooserPanelsString = new StringBuilder(""); ! for (int i=0; i<chooserPanels.length; i++) { ! chooserPanelsString.append("[" + chooserPanels[i].toString() ! + "]"); ! } ! String previewPanelString = (previewPanel != null ? ! previewPanel.toString() : ""); ! ! return super.paramString() + ! ",chooserPanels=" + chooserPanelsString.toString() + ! ",previewPanel=" + previewPanelString; } ///////////////// // Accessibility support //////////////// --- 541,561 ---- * be <code>null</code>. * * @return a string representation of this <code>JColorChooser</code> */ protected String paramString() { ! StringBuilder chooserPanelsString = new StringBuilder(); ! for (AbstractColorChooserPanel panel : chooserPanels) { ! chooserPanelsString.append('[').append(panel) ! .append(']'); ! } ! String previewPanelString = (previewPanel != null ? previewPanel ! .toString() : ""); ! ! return super.paramString() + ",chooserPanels=" ! + chooserPanelsString.toString() + ",previewPanel=" ! + previewPanelString; } ///////////////// // Accessibility support ////////////////
< prev index next >