harmony-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From regi...@apache.org
Subject svn commit: r785958 - in /harmony/enhanced/classlib/trunk/modules: awt/src/main/java/common/java/awt/event/ awt/src/main/java/common/java/awt/font/ awt/src/main/java/common/org/apache/harmony/awt/gl/ swing/src/main/java/common/javax/swing/ swing/src/ma...
Date Thu, 18 Jun 2009 08:46:03 GMT
Author: regisxu
Date: Thu Jun 18 08:46:02 2009
New Revision: 785958

URL: http://svn.apache.org/viewvc?rev=785958&view=rev
Log:
replace local StringBuffer variables with StringBuilder in awt and swing modules

Modified:
    harmony/enhanced/classlib/trunk/modules/awt/src/main/java/common/java/awt/event/MouseEvent.java
    harmony/enhanced/classlib/trunk/modules/awt/src/main/java/common/java/awt/font/NumericShaper.java
    harmony/enhanced/classlib/trunk/modules/awt/src/main/java/common/org/apache/harmony/awt/gl/MultiRectArea.java
    harmony/enhanced/classlib/trunk/modules/swing/src/main/java/common/javax/swing/JViewport.java
    harmony/enhanced/classlib/trunk/modules/swing/src/main/java/common/javax/swing/UIManager.java
    harmony/enhanced/classlib/trunk/modules/swing/src/main/java/common/javax/swing/plaf/basic/BasicFileChooserUI.java
    harmony/enhanced/classlib/trunk/modules/swing/src/main/java/common/javax/swing/plaf/basic/BasicListUI.java
    harmony/enhanced/classlib/trunk/modules/swing/src/main/java/common/javax/swing/plaf/basic/BasicTableUI.java
    harmony/enhanced/classlib/trunk/modules/swing/src/main/java/common/javax/swing/plaf/basic/BasicTreeUI.java
    harmony/enhanced/classlib/trunk/modules/swing/src/main/java/common/javax/swing/plaf/metal/MetalFileChooserUI.java
    harmony/enhanced/classlib/trunk/modules/swing/src/main/java/common/javax/swing/table/AbstractTableModel.java
    harmony/enhanced/classlib/trunk/modules/swing/src/main/java/common/javax/swing/text/AbstractDocument.java
    harmony/enhanced/classlib/trunk/modules/swing/src/main/java/common/javax/swing/text/AbstractWriter.java
    harmony/enhanced/classlib/trunk/modules/swing/src/main/java/common/javax/swing/text/DefaultEditorKit.java
    harmony/enhanced/classlib/trunk/modules/swing/src/main/java/common/javax/swing/text/TabSet.java
    harmony/enhanced/classlib/trunk/modules/swing/src/main/java/common/javax/swing/text/TabStop.java
    harmony/enhanced/classlib/trunk/modules/swing/src/main/java/common/javax/swing/text/html/CSS.java
    harmony/enhanced/classlib/trunk/modules/swing/src/main/java/common/javax/swing/text/html/CascadedStyle.java
    harmony/enhanced/classlib/trunk/modules/swing/src/main/java/common/javax/swing/text/html/HTMLWriter.java
    harmony/enhanced/classlib/trunk/modules/swing/src/main/java/common/javax/swing/text/html/Selector.java
    harmony/enhanced/classlib/trunk/modules/swing/src/main/java/common/javax/swing/text/html/SimpleSelector.java
    harmony/enhanced/classlib/trunk/modules/swing/src/main/java/common/org/apache/harmony/x/swing/ExtendedListCellRenderer.java
    harmony/enhanced/classlib/trunk/modules/swing/src/main/java/common/org/apache/harmony/x/swing/text/html/cssparser/CSSParser.java
    harmony/enhanced/classlib/trunk/modules/swing/src/main/java/common/org/apache/harmony/x/swing/text/html/cssparser/ParseException.java
    harmony/enhanced/classlib/trunk/modules/swing/src/main/java/common/org/apache/harmony/x/swing/text/html/cssparser/TokenMgrError.java
    harmony/enhanced/classlib/trunk/modules/swing/src/main/java/common/org/apache/harmony/x/swing/text/html/cssparser/TokenResolver.java
    harmony/enhanced/classlib/trunk/modules/swing/src/main/java/common/org/apache/harmony/x/swing/text/html/cssparser/metamodel/RuleSet.java
    harmony/enhanced/classlib/trunk/modules/swing/src/main/java/common/org/apache/harmony/x/swing/text/html/cssparser/metamodel/Sheet.java
    harmony/enhanced/classlib/trunk/modules/swing/src/main/java/common/org/apache/harmony/x/swing/text/rtf/ParseException.java
    harmony/enhanced/classlib/trunk/modules/swing/src/main/java/common/org/apache/harmony/x/swing/text/rtf/RTFParser.java
    harmony/enhanced/classlib/trunk/modules/swing/src/main/java/common/org/apache/harmony/x/swing/text/rtf/TokenMgrError.java

Modified: harmony/enhanced/classlib/trunk/modules/awt/src/main/java/common/java/awt/event/MouseEvent.java
URL: http://svn.apache.org/viewvc/harmony/enhanced/classlib/trunk/modules/awt/src/main/java/common/java/awt/event/MouseEvent.java?rev=785958&r1=785957&r2=785958&view=diff
==============================================================================
--- harmony/enhanced/classlib/trunk/modules/awt/src/main/java/common/java/awt/event/MouseEvent.java
(original)
+++ harmony/enhanced/classlib/trunk/modules/awt/src/main/java/common/java/awt/event/MouseEvent.java
Thu Jun 18 08:46:02 2009
@@ -96,7 +96,7 @@
     }
 
     public static String getMouseModifiersText(int modifiers) {
-        final StringBuffer text = new StringBuffer();
+        final StringBuilder text = new StringBuilder();
 
         if ((modifiers & META_MASK) != 0) {
             text.append(Toolkit.getProperty("AWT.meta", "Meta")).append("+"); //$NON-NLS-1$
//$NON-NLS-2$ //$NON-NLS-3$

Modified: harmony/enhanced/classlib/trunk/modules/awt/src/main/java/common/java/awt/font/NumericShaper.java
URL: http://svn.apache.org/viewvc/harmony/enhanced/classlib/trunk/modules/awt/src/main/java/common/java/awt/font/NumericShaper.java?rev=785958&r1=785957&r2=785958&view=diff
==============================================================================
--- harmony/enhanced/classlib/trunk/modules/awt/src/main/java/common/java/awt/font/NumericShaper.java
(original)
+++ harmony/enhanced/classlib/trunk/modules/awt/src/main/java/common/java/awt/font/NumericShaper.java
Thu Jun 18 08:46:02 2009
@@ -478,7 +478,7 @@
          *      NumericShaper.ARABIC | NumericShaper.TAMIL, 
          *      NumericShaper.EASTERN_ARABIC));
          */
-        StringBuffer sb = new StringBuffer(super.toString());
+        StringBuilder sb = new StringBuilder(super.toString());
 
         sb.append("[contextual:"); //$NON-NLS-1$
         sb.append(fContextual);

Modified: harmony/enhanced/classlib/trunk/modules/awt/src/main/java/common/org/apache/harmony/awt/gl/MultiRectArea.java
URL: http://svn.apache.org/viewvc/harmony/enhanced/classlib/trunk/modules/awt/src/main/java/common/org/apache/harmony/awt/gl/MultiRectArea.java?rev=785958&r1=785957&r2=785958&view=diff
==============================================================================
--- harmony/enhanced/classlib/trunk/modules/awt/src/main/java/common/org/apache/harmony/awt/gl/MultiRectArea.java
(original)
+++ harmony/enhanced/classlib/trunk/modules/awt/src/main/java/common/org/apache/harmony/awt/gl/MultiRectArea.java
Thu Jun 18 08:46:02 2009
@@ -822,7 +822,7 @@
     @Override
     public String toString() {
         int cnt = getRectCount();
-        StringBuffer sb = new StringBuffer((cnt << 5) + 128);
+        StringBuilder sb = new StringBuilder((cnt << 5) + 128);
         sb.append(getClass().getName()).append(" ["); //$NON-NLS-1$
         for(int i = 1; i < rect[0]; i += 4) {
             sb.append(i > 1 ? ", [" : "[").append(rect[i]).append(", ").append(rect[i
+ 1]). //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$

Modified: harmony/enhanced/classlib/trunk/modules/swing/src/main/java/common/javax/swing/JViewport.java
URL: http://svn.apache.org/viewvc/harmony/enhanced/classlib/trunk/modules/swing/src/main/java/common/javax/swing/JViewport.java?rev=785958&r1=785957&r2=785958&view=diff
==============================================================================
--- harmony/enhanced/classlib/trunk/modules/swing/src/main/java/common/javax/swing/JViewport.java
(original)
+++ harmony/enhanced/classlib/trunk/modules/swing/src/main/java/common/javax/swing/JViewport.java
Thu Jun 18 08:46:02 2009
@@ -159,7 +159,7 @@
 
     @Override
     protected String paramString() {
-        StringBuffer result = new StringBuffer(super.paramString());
+        StringBuilder result = new StringBuilder(super.paramString());
         result.append(",isViewSizeSet=").append(isViewSizeSet)
               .append(",lastPaintPosition=").append(lastPaintPosition)
               .append(",scrollUnderway=").append(scrollUnderway);

Modified: harmony/enhanced/classlib/trunk/modules/swing/src/main/java/common/javax/swing/UIManager.java
URL: http://svn.apache.org/viewvc/harmony/enhanced/classlib/trunk/modules/swing/src/main/java/common/javax/swing/UIManager.java?rev=785958&r1=785957&r2=785958&view=diff
==============================================================================
--- harmony/enhanced/classlib/trunk/modules/swing/src/main/java/common/javax/swing/UIManager.java
(original)
+++ harmony/enhanced/classlib/trunk/modules/swing/src/main/java/common/javax/swing/UIManager.java
Thu Jun 18 08:46:02 2009
@@ -446,10 +446,10 @@
         List<LookAndFeelInfo> result = new LinkedList<LookAndFeelInfo>();
         for (int i = 0; i < names.length; i++) {
             String token = names[i];
-            String lfNameProperty = new StringBuffer(INSTALLED_LAF).append(".")
+            String lfNameProperty = new StringBuilder(INSTALLED_LAF).append(".")
                 .append(token)
                 .append(".name").toString();
-            String lfClassProperty = new StringBuffer(INSTALLED_LAF).append(".")
+            String lfClassProperty = new StringBuilder(INSTALLED_LAF).append(".")
                 .append(token)
                 .append(".class").toString();
 

Modified: harmony/enhanced/classlib/trunk/modules/swing/src/main/java/common/javax/swing/plaf/basic/BasicFileChooserUI.java
URL: http://svn.apache.org/viewvc/harmony/enhanced/classlib/trunk/modules/swing/src/main/java/common/javax/swing/plaf/basic/BasicFileChooserUI.java?rev=785958&r1=785957&r2=785958&view=diff
==============================================================================
--- harmony/enhanced/classlib/trunk/modules/swing/src/main/java/common/javax/swing/plaf/basic/BasicFileChooserUI.java
(original)
+++ harmony/enhanced/classlib/trunk/modules/swing/src/main/java/common/javax/swing/plaf/basic/BasicFileChooserUI.java
Thu Jun 18 08:46:02 2009
@@ -376,7 +376,7 @@
                     if (flavor.equals(DataFlavor.stringFlavor)
                         || flavor.equals(DataFlavor.plainTextFlavor)) {
 
-                        StringBuffer content = new StringBuffer();
+                        StringBuilder content = new StringBuilder();
                         for (int i = 0; i < transferingFiles.length; i++) {
                             content.append(transferingFiles[i].getAbsolutePath());
                             if (i < transferingFiles.length - 1) {

Modified: harmony/enhanced/classlib/trunk/modules/swing/src/main/java/common/javax/swing/plaf/basic/BasicListUI.java
URL: http://svn.apache.org/viewvc/harmony/enhanced/classlib/trunk/modules/swing/src/main/java/common/javax/swing/plaf/basic/BasicListUI.java?rev=785958&r1=785957&r2=785958&view=diff
==============================================================================
--- harmony/enhanced/classlib/trunk/modules/swing/src/main/java/common/javax/swing/plaf/basic/BasicListUI.java
(original)
+++ harmony/enhanced/classlib/trunk/modules/swing/src/main/java/common/javax/swing/plaf/basic/BasicListUI.java
Thu Jun 18 08:46:02 2009
@@ -402,7 +402,7 @@
                 return null;
             }
 
-            StringBuffer content = new StringBuffer();
+            StringBuilder content = new StringBuilder();
             for (int i = 0; i < selectedValues.length; i++) {
                 content.append(selectedValues[i]);
                 if (i < selectedValues.length - 1) {

Modified: harmony/enhanced/classlib/trunk/modules/swing/src/main/java/common/javax/swing/plaf/basic/BasicTableUI.java
URL: http://svn.apache.org/viewvc/harmony/enhanced/classlib/trunk/modules/swing/src/main/java/common/javax/swing/plaf/basic/BasicTableUI.java?rev=785958&r1=785957&r2=785958&view=diff
==============================================================================
--- harmony/enhanced/classlib/trunk/modules/swing/src/main/java/common/javax/swing/plaf/basic/BasicTableUI.java
(original)
+++ harmony/enhanced/classlib/trunk/modules/swing/src/main/java/common/javax/swing/plaf/basic/BasicTableUI.java
Thu Jun 18 08:46:02 2009
@@ -243,7 +243,7 @@
                 return null;
             }
 
-            StringBuffer content = new StringBuffer();
+            StringBuilder content = new StringBuilder();
             int rowMinSelectionIndex = table.getSelectionModel().getMinSelectionIndex();
             int rowMaxSelectionIndex = table.getSelectionModel().getMaxSelectionIndex();
             int colMinSelectionIndex = table.getColumnModel().getSelectionModel().getMinSelectionIndex();

Modified: harmony/enhanced/classlib/trunk/modules/swing/src/main/java/common/javax/swing/plaf/basic/BasicTreeUI.java
URL: http://svn.apache.org/viewvc/harmony/enhanced/classlib/trunk/modules/swing/src/main/java/common/javax/swing/plaf/basic/BasicTreeUI.java?rev=785958&r1=785957&r2=785958&view=diff
==============================================================================
--- harmony/enhanced/classlib/trunk/modules/swing/src/main/java/common/javax/swing/plaf/basic/BasicTreeUI.java
(original)
+++ harmony/enhanced/classlib/trunk/modules/swing/src/main/java/common/javax/swing/plaf/basic/BasicTreeUI.java
Thu Jun 18 08:46:02 2009
@@ -603,7 +603,7 @@
                 return null;
             }
 
-            StringBuffer content = new StringBuffer();
+            StringBuilder content = new StringBuilder();
             TreePath[] selectionPaths = tree.getSelectionPaths();
             for (int i = 0; i < selectionPaths.length; i++) {
                 content.append(selectionPaths[i].getLastPathComponent());

Modified: harmony/enhanced/classlib/trunk/modules/swing/src/main/java/common/javax/swing/plaf/metal/MetalFileChooserUI.java
URL: http://svn.apache.org/viewvc/harmony/enhanced/classlib/trunk/modules/swing/src/main/java/common/javax/swing/plaf/metal/MetalFileChooserUI.java?rev=785958&r1=785957&r2=785958&view=diff
==============================================================================
--- harmony/enhanced/classlib/trunk/modules/swing/src/main/java/common/javax/swing/plaf/metal/MetalFileChooserUI.java
(original)
+++ harmony/enhanced/classlib/trunk/modules/swing/src/main/java/common/javax/swing/plaf/metal/MetalFileChooserUI.java
Thu Jun 18 08:46:02 2009
@@ -444,7 +444,7 @@
                 if (file.canWrite() && !file.isHidden()) {
                     return null;
                 } else {
-                    StringBuffer result = new StringBuffer();
+                    StringBuilder result = new StringBuilder();
                     if (!file.canWrite()) {
                         result.append("R");
                     }
@@ -823,7 +823,7 @@
                         return;
                     }
 
-                    StringBuffer textSelection = new StringBuffer();
+                    StringBuilder textSelection = new StringBuilder();
                     if (selectedFiles.length == 1) {
                         textSelection.append(fileToText(selectedFiles[0]));
                         getViewRepresentation().setSelectedValue(selectedFiles[0], true);

Modified: harmony/enhanced/classlib/trunk/modules/swing/src/main/java/common/javax/swing/table/AbstractTableModel.java
URL: http://svn.apache.org/viewvc/harmony/enhanced/classlib/trunk/modules/swing/src/main/java/common/javax/swing/table/AbstractTableModel.java?rev=785958&r1=785957&r2=785958&view=diff
==============================================================================
--- harmony/enhanced/classlib/trunk/modules/swing/src/main/java/common/javax/swing/table/AbstractTableModel.java
(original)
+++ harmony/enhanced/classlib/trunk/modules/swing/src/main/java/common/javax/swing/table/AbstractTableModel.java
Thu Jun 18 08:46:02 2009
@@ -32,7 +32,7 @@
     protected EventListenerList listenerList = new EventListenerList();
 
     public String getColumnName(final int column) {
-        StringBuffer result = new StringBuffer();
+        StringBuilder result = new StringBuilder();
         int rest = column;
         do {
             int remainder = rest % 26;

Modified: harmony/enhanced/classlib/trunk/modules/swing/src/main/java/common/javax/swing/text/AbstractDocument.java
URL: http://svn.apache.org/viewvc/harmony/enhanced/classlib/trunk/modules/swing/src/main/java/common/javax/swing/text/AbstractDocument.java?rev=785958&r1=785957&r2=785958&view=diff
==============================================================================
--- harmony/enhanced/classlib/trunk/modules/swing/src/main/java/common/javax/swing/text/AbstractDocument.java
(original)
+++ harmony/enhanced/classlib/trunk/modules/swing/src/main/java/common/javax/swing/text/AbstractDocument.java
Thu Jun 18 08:46:02 2009
@@ -603,7 +603,7 @@
 
         @Override
         public String toString() {
-            StringBuffer result = new StringBuffer();
+            StringBuilder result = new StringBuilder();
             for (UndoableEdit edit : edits) {
                 result.append(", ")
                       .append(edit.toString());

Modified: harmony/enhanced/classlib/trunk/modules/swing/src/main/java/common/javax/swing/text/AbstractWriter.java
URL: http://svn.apache.org/viewvc/harmony/enhanced/classlib/trunk/modules/swing/src/main/java/common/javax/swing/text/AbstractWriter.java?rev=785958&r1=785957&r2=785958&view=diff
==============================================================================
--- harmony/enhanced/classlib/trunk/modules/swing/src/main/java/common/javax/swing/text/AbstractWriter.java
(original)
+++ harmony/enhanced/classlib/trunk/modules/swing/src/main/java/common/javax/swing/text/AbstractWriter.java
Thu Jun 18 08:46:02 2009
@@ -233,7 +233,7 @@
     protected void writeAttributes(final AttributeSet attrs)
         throws IOException {
 
-        StringBuffer content = new StringBuffer();
+        StringBuilder content = new StringBuilder();
         for (Enumeration keys = attrs.getAttributeNames(); keys.hasMoreElements();) {
             Object key = keys.nextElement();
             content.append(" ");

Modified: harmony/enhanced/classlib/trunk/modules/swing/src/main/java/common/javax/swing/text/DefaultEditorKit.java
URL: http://svn.apache.org/viewvc/harmony/enhanced/classlib/trunk/modules/swing/src/main/java/common/javax/swing/text/DefaultEditorKit.java?rev=785958&r1=785957&r2=785958&view=diff
==============================================================================
--- harmony/enhanced/classlib/trunk/modules/swing/src/main/java/common/javax/swing/text/DefaultEditorKit.java
(original)
+++ harmony/enhanced/classlib/trunk/modules/swing/src/main/java/common/javax/swing/text/DefaultEditorKit.java
Thu Jun 18 08:46:02 2009
@@ -404,7 +404,7 @@
             return str;
         }
         final int length = str.length();
-        final StringBuffer buffer = new StringBuffer(length);
+        final StringBuilder buffer = new StringBuilder(length);
         int prevIndex = 0;
         do {
             buffer.append(str.subSequence(prevIndex, index));

Modified: harmony/enhanced/classlib/trunk/modules/swing/src/main/java/common/javax/swing/text/TabSet.java
URL: http://svn.apache.org/viewvc/harmony/enhanced/classlib/trunk/modules/swing/src/main/java/common/javax/swing/text/TabSet.java?rev=785958&r1=785957&r2=785958&view=diff
==============================================================================
--- harmony/enhanced/classlib/trunk/modules/swing/src/main/java/common/javax/swing/text/TabSet.java
(original)
+++ harmony/enhanced/classlib/trunk/modules/swing/src/main/java/common/javax/swing/text/TabSet.java
Thu Jun 18 08:46:02 2009
@@ -101,7 +101,7 @@
     }
 
     public String toString() {
-        StringBuffer result = new StringBuffer("[ ");
+        StringBuilder result = new StringBuilder("[ ");
         for (int i = 0; i < tabs.length; i++) {
             if (i != 0) {
                 result.append(" - ");

Modified: harmony/enhanced/classlib/trunk/modules/swing/src/main/java/common/javax/swing/text/TabStop.java
URL: http://svn.apache.org/viewvc/harmony/enhanced/classlib/trunk/modules/swing/src/main/java/common/javax/swing/text/TabStop.java?rev=785958&r1=785957&r2=785958&view=diff
==============================================================================
--- harmony/enhanced/classlib/trunk/modules/swing/src/main/java/common/javax/swing/text/TabStop.java
(original)
+++ harmony/enhanced/classlib/trunk/modules/swing/src/main/java/common/javax/swing/text/TabStop.java
Thu Jun 18 08:46:02 2009
@@ -87,7 +87,7 @@
     }
 
     public String toString() {
-        final StringBuffer result = new StringBuffer();
+        final StringBuilder result = new StringBuilder();
         switch (alignment) {
             case ALIGN_RIGHT:
                 result.append("right ");

Modified: harmony/enhanced/classlib/trunk/modules/swing/src/main/java/common/javax/swing/text/html/CSS.java
URL: http://svn.apache.org/viewvc/harmony/enhanced/classlib/trunk/modules/swing/src/main/java/common/javax/swing/text/html/CSS.java?rev=785958&r1=785957&r2=785958&view=diff
==============================================================================
--- harmony/enhanced/classlib/trunk/modules/swing/src/main/java/common/javax/swing/text/html/CSS.java
(original)
+++ harmony/enhanced/classlib/trunk/modules/swing/src/main/java/common/javax/swing/text/html/CSS.java
Thu Jun 18 08:46:02 2009
@@ -860,7 +860,7 @@
         }
 
         private static String getDeclaration(final ColorProperty[] colors) {
-            StringBuffer result = new StringBuffer();
+            StringBuilder result = new StringBuilder();
             for (int i = 0; i < colors.length; i++) {
                 if (i > 0) {
                     result.append(' ');
@@ -934,7 +934,7 @@
         }
 
         private static String getDeclaration(final BorderStyleValue[] styles) {
-            StringBuffer result = new StringBuffer();
+            StringBuilder result = new StringBuilder();
             for (int i = 0; i < styles.length; i++) {
                 if (i > 0) {
                     result.append(' ');
@@ -1323,7 +1323,7 @@
 
             final String lower = colorName.toLowerCase();
             if (lower.charAt(0) == '#') {
-                final StringBuffer name = new StringBuffer(6);
+                final StringBuilder name = new StringBuilder(6);
                 if (lower.length() == 4) {
                     for (int i = 1; i < 4; i++) {
                         name.append(lower.charAt(i))
@@ -1383,7 +1383,7 @@
         }
 
         private static String colorToString(final Color color) {
-            final StringBuffer result = new StringBuffer(7);
+            final StringBuilder result = new StringBuilder(7);
             final String hex = Integer.toHexString(color.getRGB() & 0x00FFFFFF);
             result.append('#').append(zeros, 0, 6 - hex.length()).append(hex);
             return result.toString();
@@ -1967,7 +1967,7 @@
                 return;
             }
 
-            StringBuffer family = new StringBuffer();
+            StringBuilder family = new StringBuilder();
             family.append(parts[i++]);
             for (; i < parts.length; i++) {
                 family.append(' ')
@@ -2676,7 +2676,7 @@
         }
 
         private String getValue() {
-            StringBuffer result = new StringBuffer();
+            StringBuilder result = new StringBuilder();
             for (int i = 0; i < values.length; i++) {
                 if (values[i]) {
                     if (result.length() > 0) {

Modified: harmony/enhanced/classlib/trunk/modules/swing/src/main/java/common/javax/swing/text/html/CascadedStyle.java
URL: http://svn.apache.org/viewvc/harmony/enhanced/classlib/trunk/modules/swing/src/main/java/common/javax/swing/text/html/CascadedStyle.java?rev=785958&r1=785957&r2=785958&view=diff
==============================================================================
--- harmony/enhanced/classlib/trunk/modules/swing/src/main/java/common/javax/swing/text/html/CascadedStyle.java
(original)
+++ harmony/enhanced/classlib/trunk/modules/swing/src/main/java/common/javax/swing/text/html/CascadedStyle.java
Thu Jun 18 08:46:02 2009
@@ -66,7 +66,7 @@
     }
 
     public static String getElementTreeSelector(final Element element) {
-        final StringBuffer result = new StringBuffer();
+        final StringBuilder result = new StringBuilder();
         result.append(getFullName(element));
         Element parent = element.getParentElement();
         while (parent != null) {
@@ -101,7 +101,7 @@
         final String id      = SelectorMatcher.getID(tag, element);
         final String clazz   = SelectorMatcher.getClass(tag, element);
 
-        final StringBuffer result = new StringBuffer();
+        final StringBuilder result = new StringBuilder();
         if (tagName != null) {
             result.append(tagName);
         }

Modified: harmony/enhanced/classlib/trunk/modules/swing/src/main/java/common/javax/swing/text/html/HTMLWriter.java
URL: http://svn.apache.org/viewvc/harmony/enhanced/classlib/trunk/modules/swing/src/main/java/common/javax/swing/text/html/HTMLWriter.java?rev=785958&r1=785957&r2=785958&view=diff
==============================================================================
--- harmony/enhanced/classlib/trunk/modules/swing/src/main/java/common/javax/swing/text/html/HTMLWriter.java
(original)
+++ harmony/enhanced/classlib/trunk/modules/swing/src/main/java/common/javax/swing/text/html/HTMLWriter.java
Thu Jun 18 08:46:02 2009
@@ -183,7 +183,7 @@
             return;
         }
 
-        StringBuffer buffer = new StringBuffer();
+        StringBuilder buffer = new StringBuilder();
         int writtenLength = 0;
         for (int i = 0; i < length; i++) {
             String entity = getEntity(chars[start + i]);
@@ -338,7 +338,7 @@
 
     protected void writeOption(final Option option) throws IOException {
         indent();
-        StringBuffer buffer = new StringBuffer(50);
+        StringBuilder buffer = new StringBuilder(50);
         buffer.append("<option");
         String value =
             (String)option.getAttributes().getAttribute(HTML.Attribute.VALUE);
@@ -365,7 +365,7 @@
 
         isOptionGroupOpen = true;
         indent();
-        StringBuffer buffer = new StringBuffer(50);
+        StringBuilder buffer = new StringBuilder(50);
         buffer.append("<optgroup");
         if (option.getLabel() != null) {
             buffer.append(" label=\"");

Modified: harmony/enhanced/classlib/trunk/modules/swing/src/main/java/common/javax/swing/text/html/Selector.java
URL: http://svn.apache.org/viewvc/harmony/enhanced/classlib/trunk/modules/swing/src/main/java/common/javax/swing/text/html/Selector.java?rev=785958&r1=785957&r2=785958&view=diff
==============================================================================
--- harmony/enhanced/classlib/trunk/modules/swing/src/main/java/common/javax/swing/text/html/Selector.java
(original)
+++ harmony/enhanced/classlib/trunk/modules/swing/src/main/java/common/javax/swing/text/html/Selector.java
Thu Jun 18 08:46:02 2009
@@ -34,7 +34,7 @@
     }
 
     public String toString() {
-        final StringBuffer result = new StringBuffer();
+        final StringBuilder result = new StringBuilder();
         result.append(simpleSelectors[0]);
         for (int i = 1; i < simpleSelectors.length; i++) {
             result.append(' ').append(simpleSelectors[i]);

Modified: harmony/enhanced/classlib/trunk/modules/swing/src/main/java/common/javax/swing/text/html/SimpleSelector.java
URL: http://svn.apache.org/viewvc/harmony/enhanced/classlib/trunk/modules/swing/src/main/java/common/javax/swing/text/html/SimpleSelector.java?rev=785958&r1=785957&r2=785958&view=diff
==============================================================================
--- harmony/enhanced/classlib/trunk/modules/swing/src/main/java/common/javax/swing/text/html/SimpleSelector.java
(original)
+++ harmony/enhanced/classlib/trunk/modules/swing/src/main/java/common/javax/swing/text/html/SimpleSelector.java
Thu Jun 18 08:46:02 2009
@@ -34,7 +34,7 @@
     }
 
     public String toString() {
-        final StringBuffer result = new StringBuffer();
+        final StringBuilder result = new StringBuilder();
         if (tag != null) {
             result.append(tag);
         }

Modified: harmony/enhanced/classlib/trunk/modules/swing/src/main/java/common/org/apache/harmony/x/swing/ExtendedListCellRenderer.java
URL: http://svn.apache.org/viewvc/harmony/enhanced/classlib/trunk/modules/swing/src/main/java/common/org/apache/harmony/x/swing/ExtendedListCellRenderer.java?rev=785958&r1=785957&r2=785958&view=diff
==============================================================================
--- harmony/enhanced/classlib/trunk/modules/swing/src/main/java/common/org/apache/harmony/x/swing/ExtendedListCellRenderer.java
(original)
+++ harmony/enhanced/classlib/trunk/modules/swing/src/main/java/common/org/apache/harmony/x/swing/ExtendedListCellRenderer.java
Thu Jun 18 08:46:02 2009
@@ -66,7 +66,7 @@
 
 
     private static String createIndentation(final int indentationLevel) {
-        StringBuffer result = new StringBuffer();
+        StringBuilder result = new StringBuilder();
         for (int i = 0; i < indentationLevel; i++) {
             result.append(SUB_ELEMENT_INDENT);
         }

Modified: harmony/enhanced/classlib/trunk/modules/swing/src/main/java/common/org/apache/harmony/x/swing/text/html/cssparser/CSSParser.java
URL: http://svn.apache.org/viewvc/harmony/enhanced/classlib/trunk/modules/swing/src/main/java/common/org/apache/harmony/x/swing/text/html/cssparser/CSSParser.java?rev=785958&r1=785957&r2=785958&view=diff
==============================================================================
--- harmony/enhanced/classlib/trunk/modules/swing/src/main/java/common/org/apache/harmony/x/swing/text/html/cssparser/CSSParser.java
(original)
+++ harmony/enhanced/classlib/trunk/modules/swing/src/main/java/common/org/apache/harmony/x/swing/text/html/cssparser/CSSParser.java
Thu Jun 18 08:46:02 2009
@@ -389,7 +389,7 @@
   }
 
   final public String expr() throws ParseException {
-  StringBuffer result = new StringBuffer(); String term; String oper; boolean operSet;
+  StringBuilder result = new StringBuilder(); String term; String oper; boolean operSet;
     switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
     case PLUS:
     case MINUS:

Modified: harmony/enhanced/classlib/trunk/modules/swing/src/main/java/common/org/apache/harmony/x/swing/text/html/cssparser/ParseException.java
URL: http://svn.apache.org/viewvc/harmony/enhanced/classlib/trunk/modules/swing/src/main/java/common/org/apache/harmony/x/swing/text/html/cssparser/ParseException.java?rev=785958&r1=785957&r2=785958&view=diff
==============================================================================
--- harmony/enhanced/classlib/trunk/modules/swing/src/main/java/common/org/apache/harmony/x/swing/text/html/cssparser/ParseException.java
(original)
+++ harmony/enhanced/classlib/trunk/modules/swing/src/main/java/common/org/apache/harmony/x/swing/text/html/cssparser/ParseException.java
Thu Jun 18 08:46:02 2009
@@ -98,7 +98,7 @@
     if (!specialConstructor) {
       return super.getMessage();
     }
-    StringBuffer expected = new StringBuffer();
+    StringBuilder expected = new StringBuilder();
     int maxSize = 0;
     for (int i = 0; i < expectedTokenSequences.length; i++) {
       if (maxSize < expectedTokenSequences[i].length) {
@@ -145,7 +145,7 @@
    * string literal.
    */
   protected String add_escapes(String str) {
-      StringBuffer retval = new StringBuffer();
+      StringBuilder retval = new StringBuilder();
       char ch;
       for (int i = 0; i < str.length(); i++) {
         switch (str.charAt(i))

Modified: harmony/enhanced/classlib/trunk/modules/swing/src/main/java/common/org/apache/harmony/x/swing/text/html/cssparser/TokenMgrError.java
URL: http://svn.apache.org/viewvc/harmony/enhanced/classlib/trunk/modules/swing/src/main/java/common/org/apache/harmony/x/swing/text/html/cssparser/TokenMgrError.java?rev=785958&r1=785957&r2=785958&view=diff
==============================================================================
--- harmony/enhanced/classlib/trunk/modules/swing/src/main/java/common/org/apache/harmony/x/swing/text/html/cssparser/TokenMgrError.java
(original)
+++ harmony/enhanced/classlib/trunk/modules/swing/src/main/java/common/org/apache/harmony/x/swing/text/html/cssparser/TokenMgrError.java
Thu Jun 18 08:46:02 2009
@@ -39,7 +39,7 @@
     * equivalents in the given string
     */
    protected static final String addEscapes(String str) {
-      StringBuffer retval = new StringBuffer();
+      StringBuilder retval = new StringBuilder();
       char ch;
       for (int i = 0; i < str.length(); i++) {
         switch (str.charAt(i))

Modified: harmony/enhanced/classlib/trunk/modules/swing/src/main/java/common/org/apache/harmony/x/swing/text/html/cssparser/TokenResolver.java
URL: http://svn.apache.org/viewvc/harmony/enhanced/classlib/trunk/modules/swing/src/main/java/common/org/apache/harmony/x/swing/text/html/cssparser/TokenResolver.java?rev=785958&r1=785957&r2=785958&view=diff
==============================================================================
--- harmony/enhanced/classlib/trunk/modules/swing/src/main/java/common/org/apache/harmony/x/swing/text/html/cssparser/TokenResolver.java
(original)
+++ harmony/enhanced/classlib/trunk/modules/swing/src/main/java/common/org/apache/harmony/x/swing/text/html/cssparser/TokenResolver.java
Thu Jun 18 08:46:02 2009
@@ -28,7 +28,7 @@
     }
 
     public static String resolve(final Token start, final Token end, final boolean allowSeparation)
{
-        StringBuffer result = new StringBuffer();
+        StringBuilder result = new StringBuilder();
         Token nextToken = start;
         do {
             if (allowSeparation && result.length() != 0) {

Modified: harmony/enhanced/classlib/trunk/modules/swing/src/main/java/common/org/apache/harmony/x/swing/text/html/cssparser/metamodel/RuleSet.java
URL: http://svn.apache.org/viewvc/harmony/enhanced/classlib/trunk/modules/swing/src/main/java/common/org/apache/harmony/x/swing/text/html/cssparser/metamodel/RuleSet.java?rev=785958&r1=785957&r2=785958&view=diff
==============================================================================
--- harmony/enhanced/classlib/trunk/modules/swing/src/main/java/common/org/apache/harmony/x/swing/text/html/cssparser/metamodel/RuleSet.java
(original)
+++ harmony/enhanced/classlib/trunk/modules/swing/src/main/java/common/org/apache/harmony/x/swing/text/html/cssparser/metamodel/RuleSet.java
Thu Jun 18 08:46:02 2009
@@ -51,7 +51,7 @@
     }
 
     public String toString() {
-        StringBuffer result = new StringBuffer();
+        StringBuilder result = new StringBuilder();
         result.append("\nselectors:")
               .append(selectors)
               .append('\n')

Modified: harmony/enhanced/classlib/trunk/modules/swing/src/main/java/common/org/apache/harmony/x/swing/text/html/cssparser/metamodel/Sheet.java
URL: http://svn.apache.org/viewvc/harmony/enhanced/classlib/trunk/modules/swing/src/main/java/common/org/apache/harmony/x/swing/text/html/cssparser/metamodel/Sheet.java?rev=785958&r1=785957&r2=785958&view=diff
==============================================================================
--- harmony/enhanced/classlib/trunk/modules/swing/src/main/java/common/org/apache/harmony/x/swing/text/html/cssparser/metamodel/Sheet.java
(original)
+++ harmony/enhanced/classlib/trunk/modules/swing/src/main/java/common/org/apache/harmony/x/swing/text/html/cssparser/metamodel/Sheet.java
Thu Jun 18 08:46:02 2009
@@ -63,7 +63,7 @@
 
 
     public String toString() {
-        StringBuffer result = new StringBuffer();
+        StringBuilder result = new StringBuilder();
         result.append("imports:")
               .append(imports)
               .append("\n")

Modified: harmony/enhanced/classlib/trunk/modules/swing/src/main/java/common/org/apache/harmony/x/swing/text/rtf/ParseException.java
URL: http://svn.apache.org/viewvc/harmony/enhanced/classlib/trunk/modules/swing/src/main/java/common/org/apache/harmony/x/swing/text/rtf/ParseException.java?rev=785958&r1=785957&r2=785958&view=diff
==============================================================================
--- harmony/enhanced/classlib/trunk/modules/swing/src/main/java/common/org/apache/harmony/x/swing/text/rtf/ParseException.java
(original)
+++ harmony/enhanced/classlib/trunk/modules/swing/src/main/java/common/org/apache/harmony/x/swing/text/rtf/ParseException.java
Thu Jun 18 08:46:02 2009
@@ -98,7 +98,7 @@
     if (!specialConstructor) {
       return super.getMessage();
     }
-    StringBuffer expected = new StringBuffer();
+    StringBuilder expected = new StringBuilder();
     int maxSize = 0;
     for (int i = 0; i < expectedTokenSequences.length; i++) {
       if (maxSize < expectedTokenSequences[i].length) {
@@ -145,7 +145,7 @@
    * string literal.
    */
   protected String add_escapes(String str) {
-      StringBuffer retval = new StringBuffer();
+      StringBuilder retval = new StringBuilder();
       char ch;
       for (int i = 0; i < str.length(); i++) {
         switch (str.charAt(i))

Modified: harmony/enhanced/classlib/trunk/modules/swing/src/main/java/common/org/apache/harmony/x/swing/text/rtf/RTFParser.java
URL: http://svn.apache.org/viewvc/harmony/enhanced/classlib/trunk/modules/swing/src/main/java/common/org/apache/harmony/x/swing/text/rtf/RTFParser.java?rev=785958&r1=785957&r2=785958&view=diff
==============================================================================
--- harmony/enhanced/classlib/trunk/modules/swing/src/main/java/common/org/apache/harmony/x/swing/text/rtf/RTFParser.java
(original)
+++ harmony/enhanced/classlib/trunk/modules/swing/src/main/java/common/org/apache/harmony/x/swing/text/rtf/RTFParser.java
Thu Jun 18 08:46:02 2009
@@ -95,7 +95,7 @@
   byte[] bytes;
   String text;
   ByteArrayOutputStream textBytes = new ByteArrayOutputStream();
-  StringBuffer parsedText = new StringBuffer();
+  StringBuilder parsedText = new StringBuilder();
     label_1:
     while (true) {
       switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
@@ -220,7 +220,7 @@
 
   final public String parseUnicodeText() throws ParseException {
   int param;
-  StringBuffer unicodeBuffer = new StringBuffer();
+  StringBuilder unicodeBuffer = new StringBuilder();
     label_3:
     while (true) {
       jj_consume_token(U);

Modified: harmony/enhanced/classlib/trunk/modules/swing/src/main/java/common/org/apache/harmony/x/swing/text/rtf/TokenMgrError.java
URL: http://svn.apache.org/viewvc/harmony/enhanced/classlib/trunk/modules/swing/src/main/java/common/org/apache/harmony/x/swing/text/rtf/TokenMgrError.java?rev=785958&r1=785957&r2=785958&view=diff
==============================================================================
--- harmony/enhanced/classlib/trunk/modules/swing/src/main/java/common/org/apache/harmony/x/swing/text/rtf/TokenMgrError.java
(original)
+++ harmony/enhanced/classlib/trunk/modules/swing/src/main/java/common/org/apache/harmony/x/swing/text/rtf/TokenMgrError.java
Thu Jun 18 08:46:02 2009
@@ -38,7 +38,7 @@
     * equivalents in the given string
     */
    protected static final String addEscapes(String str) {
-      StringBuffer retval = new StringBuffer();
+      StringBuilder retval = new StringBuilder();
       char ch;
       for (int i = 0; i < str.length(); i++) {
         switch (str.charAt(i))



Mime
View raw message