harmony-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From telli...@apache.org
Subject svn commit: r488336 - in /harmony/enhanced/classlib/trunk/modules/luni/src/main/java/java/lang: AbstractStringBuilder.java StringBuffer.java StringBuilder.java
Date Mon, 18 Dec 2006 16:51:08 GMT
Author: tellison
Date: Mon Dec 18 08:51:06 2006
New Revision: 488336

URL: http://svn.apache.org/viewvc?view=rev&rev=488336
Log:
Marking more strings as non-externalizable.

Modified:
    harmony/enhanced/classlib/trunk/modules/luni/src/main/java/java/lang/AbstractStringBuilder.java
    harmony/enhanced/classlib/trunk/modules/luni/src/main/java/java/lang/StringBuffer.java
    harmony/enhanced/classlib/trunk/modules/luni/src/main/java/java/lang/StringBuilder.java

Modified: harmony/enhanced/classlib/trunk/modules/luni/src/main/java/java/lang/AbstractStringBuilder.java
URL: http://svn.apache.org/viewvc/harmony/enhanced/classlib/trunk/modules/luni/src/main/java/java/lang/AbstractStringBuilder.java?view=diff&rev=488336&r1=488335&r2=488336
==============================================================================
--- harmony/enhanced/classlib/trunk/modules/luni/src/main/java/java/lang/AbstractStringBuilder.java (original)
+++ harmony/enhanced/classlib/trunk/modules/luni/src/main/java/java/lang/AbstractStringBuilder.java Mon Dec 18 08:51:06 2006
@@ -63,10 +63,12 @@
      * Restores internal state after deserialization.
      */
     final void set(char[] val, int len) throws InvalidObjectException {
-        if (val == null)
+        if (val == null) {
             val = new char[0];
-        if (val.length < len)
-            throw new InvalidObjectException(Msg.getString("K0199"));
+        }
+        if (val.length < len) {
+            throw new InvalidObjectException(Msg.getString("K0199")); //$NON-NLS-1$
+        }
 
         shared = false;
         value = val;
@@ -78,8 +80,9 @@
     }
 
     AbstractStringBuilder(int capacity) {
-        if (capacity < 0)
+        if (capacity < 0) {
             throw new NegativeArraySizeException();
+        }
         value = new char[capacity];
     }
 
@@ -173,10 +176,12 @@
     }
 
     final void append0(CharSequence s, int start, int end) {
-        if (s == null)
-            s = "null";
-        if (start < 0 || end < 0 || start > end || end > s.length())
+        if (s == null) {
+            s = "null"; //$NON-NLS-1$
+        }
+        if (start < 0 || end < 0 || start > end || end > s.length()) {
             throw new IndexOutOfBoundsException();
+        }
 
         append0(s.subSequence(start, end).toString());
     }
@@ -199,14 +204,17 @@
      * Retrieves the character at the <code>index</code>.
      * </p>
      * 
-     * @param The index of character in this object to retrieve.
+     * @param The
+     *            index of character in this object to retrieve.
      * @return The char value.
-     * @throws IndexOutOfBoundsException if <code>index</code> is negative or
-     *         greater than or equal to the current {@link #length()}.
+     * @throws IndexOutOfBoundsException
+     *             if <code>index</code> is negative or greater than or equal
+     *             to the current {@link #length()}.
      */
     public char charAt(int index) {
-        if (index < 0 || index >= count)
+        if (index < 0 || index >= count) {
             throw new StringIndexOutOfBoundsException(index);
+        }
         return value[index];
     }
 
@@ -239,8 +247,9 @@
     }
 
     final void deleteCharAt0(int location) {
-        if (0 > location || location >= count)
+        if (0 > location || location >= count) {
             throw new StringIndexOutOfBoundsException(location);
+        }
         int length = count - location - 1;
         if (length > 0) {
             if (!shared) {
@@ -269,7 +278,8 @@
      * there is no guarantee that the capacity will change.
      * </p>
      * 
-     * @param minimumCapacity The new minimum capacity to set.
+     * @param minimumCapacity
+     *            The new minimum capacity to set.
      */
     public void ensureCapacity(int min) {
         if (min > value.length) {
@@ -283,19 +293,24 @@
      * <code>char[]</code> passed.
      * </p>
      * 
-     * @param start The inclusive start index of the characters to copy from
-     *        this object.
-     * @param end The exclusive end index of the characters to copy from this
-     *        object.
-     * @param dest The <code>char[]</code> to copy the characters to.
-     * @param destStart The inclusive start index of the <code>dest</code>
-     *        parameter to begin copying to.
-     * @throws IndexOutOfBoundsException if the <code>start</code> is
-     *         negative, the <code>destStart</code> is negative, the
-     *         <code>start</code> is greater than <code>end</code>, the
-     *         <code>end</code> is greater than the current {@link #length()}
-     *         or <code>destStart + end - begin</code> is greater than
-     *         <code>dest.length</code>.
+     * @param start
+     *            The inclusive start index of the characters to copy from this
+     *            object.
+     * @param end
+     *            The exclusive end index of the characters to copy from this
+     *            object.
+     * @param dest
+     *            The <code>char[]</code> to copy the characters to.
+     * @param destStart
+     *            The inclusive start index of the <code>dest</code> parameter
+     *            to begin copying to.
+     * @throws IndexOutOfBoundsException
+     *             if the <code>start</code> is negative, the
+     *             <code>destStart</code> is negative, the <code>start</code>
+     *             is greater than <code>end</code>, the <code>end</code>
+     *             is greater than the current {@link #length()} or
+     *             <code>destStart + end - begin</code> is greater than
+     *             <code>dest.length</code>.
      */
     public void getChars(int start, int end, char[] dest, int destStart) {
         if (start > count || end > count || start > end) {
@@ -326,7 +341,8 @@
                 }
                 return;
             }
-            throw new StringIndexOutOfBoundsException("offset " + start + ", len " + length + ", array.length " + chars.length);
+            throw new StringIndexOutOfBoundsException("offset " + start
+                    + ", len " + length + ", array.length " + chars.length);
         }
         throw new StringIndexOutOfBoundsException(index);
     }
@@ -343,8 +359,9 @@
 
     final void insert0(int index, String string) {
         if (0 <= index && index <= count) {
-            if (string == null)
-                string = "null";
+            if (string == null) {
+                string = "null"; //$NON-NLS-1$
+            }
             int min = string.length();
             if (min != 0) {
                 move(min, index);
@@ -357,11 +374,13 @@
     }
 
     final void insert0(int index, CharSequence s, int start, int end) {
-        if (s == null)
-            s = "null";
+        if (s == null) {
+            s = "null"; //$NON-NLS-1$
+        }
         if (index < 0 || index > count || start < 0 || end < 0 || start > end
-                || end > s.length())
+                || end > s.length()) {
             throw new IndexOutOfBoundsException();
+        }
         insert0(index, s.subSequence(start, end).toString());
     }
 
@@ -400,8 +419,9 @@
 
     final void replace0(int start, int end, String string) {
         if (start >= 0) {
-            if (end > count)
+            if (end > count) {
                 end = count;
+            }
             if (end > start) {
                 int stringLength = string.length();
                 int diff = end - start - stringLength;
@@ -431,8 +451,9 @@
                 return;
             }
             if (start == end) {
-                if (string == null)
+                if (string == null) {
                     throw new NullPointerException();
+                }
                 insert0(start, string);
                 return;
             }
@@ -465,10 +486,13 @@
      * Sets the character at the <code>index</code> in this object.
      * </p>
      * 
-     * @param index the zero-based index of the character to replace.
-     * @param ch the character to set.
-     * @throws IndexOutOfBoundsException if <code>index</code> is negative or
-     *         greater than or equal to the current {@link #length()}.
+     * @param index
+     *            the zero-based index of the character to replace.
+     * @param ch
+     *            the character to set.
+     * @throws IndexOutOfBoundsException
+     *             if <code>index</code> is negative or greater than or equal
+     *             to the current {@link #length()}.
      */
     public void setCharAt(int index, char ch) {
         if (0 > index || index >= count) {
@@ -488,15 +512,18 @@
      * will contain the <code>char</code> value of <code>\u0000</code>.
      * </p>
      * 
-     * @param length the new length of this StringBuffer
+     * @param length
+     *            the new length of this StringBuffer
      * 
-     * @exception IndexOutOfBoundsException when <code>length < 0</code>
+     * @exception IndexOutOfBoundsException
+     *                when <code>length < 0</code>
      * 
      * @see #length
      */
     public void setLength(int length) {
-        if (length < 0)
+        if (length < 0) {
             throw new StringIndexOutOfBoundsException(length);
+        }
         if (count < length) {
             if (length > value.length) {
                 enlargeBuffer(length);
@@ -520,15 +547,18 @@
      * <code>start</code> index to the current end.
      * </p>
      * 
-     * @param start The inclusive start index to begin the subsequence.
+     * @param start
+     *            The inclusive start index to begin the subsequence.
      * @return A String containing the subsequence.
-     * @throws StringIndexOutOfBoundsException if <code>start</code> is
-     *         negative or greater than the current {@link #length()}.
+     * @throws StringIndexOutOfBoundsException
+     *             if <code>start</code> is negative or greater than the
+     *             current {@link #length()}.
      */
     public String substring(int start) {
         if (0 <= start && start <= count) {
-            if (start == count)
-                return "";
+            if (start == count) {
+                return ""; //$NON-NLS-1$
+            }
 
             shared = true;
             return new String(start, count - start, value);
@@ -542,17 +572,20 @@
      * <code>start</code> index to the <code>start</code> index.
      * </p>
      * 
-     * @param start The inclusive start index to begin the subsequence.
-     * @param end The exclusive end index to end the subsequence.
+     * @param start
+     *            The inclusive start index to begin the subsequence.
+     * @param end
+     *            The exclusive end index to end the subsequence.
      * @return A String containing the subsequence.
-     * @throws StringIndexOutOfBoundsException if <code>start</code> is
-     *         negative, greater than the current {@link #length()} or greater
-     *         than <code>end</code>.
+     * @throws StringIndexOutOfBoundsException
+     *             if <code>start</code> is negative, greater than the current
+     *             {@link #length()} or greater than <code>end</code>.
      */
     public String substring(int start, int end) {
         if (0 <= start && start <= end && end <= count) {
-            if (start == end)
-                return "";
+            if (start == end) {
+                return ""; //$NON-NLS-1$
+            }
 
             shared = true;
             return new String(value, start, end - start);
@@ -569,11 +602,13 @@
      */
     @Override
     public String toString() {
-        if (count == 0)
-            return "";
+        if (count == 0) {
+            return ""; //$NON-NLS-1$
+        }
 
-        if (count >= 256 && count <= (value.length >> 1))
+        if (count >= 256 && count <= (value.length >> 1)) {
             return new String(value, 0, count);
+        }
         shared = true;
         return new String(0, count, value);
     }
@@ -584,12 +619,14 @@
      * from the <code>start</code> index to the <code>start</code> index.
      * </p>
      * 
-     * @param start The inclusive start index to begin the subsequence.
-     * @param end The exclusive end index to end the subsequence.
+     * @param start
+     *            The inclusive start index to begin the subsequence.
+     * @param end
+     *            The exclusive end index to end the subsequence.
      * @return A CharSequence containing the subsequence.
-     * @throws IndexOutOfBoundsException if <code>start</code> is negative,
-     *         greater than the current {@link #length()} or greater than
-     *         <code>end</code>.
+     * @throws IndexOutOfBoundsException
+     *             if <code>start</code> is negative, greater than the current
+     *             {@link #length()} or greater than <code>end</code>.
      * 
      * @since 1.4
      */
@@ -603,7 +640,8 @@
      * towards the end.
      * 
      * 
-     * @param string the string to find
+     * @param string
+     *            the string to find
      * @return the index in this StringBuffer of the specified character, -1 if
      *         the character isn't found
      * 
@@ -620,8 +658,10 @@
      * The search for the character starts at the specified offset and moves
      * towards the end.
      * 
-     * @param subString the string to find
-     * @param start the starting offset
+     * @param subString
+     *            the string to find
+     * @param start
+     *            the starting offset
      * @return the index in this StringBuffer of the specified character, -1 if
      *         the character isn't found
      * 
@@ -630,30 +670,35 @@
      * @since 1.4
      */
     public int indexOf(String subString, int start) {
-        if (start < 0)
+        if (start < 0) {
             start = 0;
+        }
         int subCount = subString.length();
         if (subCount > 0) {
-            if (subCount + start > count)
+            if (subCount + start > count) {
                 return -1;
+            }
             // TODO optimize charAt to direct array access
             char firstChar = subString.charAt(0);
             while (true) {
                 int i = start;
                 boolean found = false;
-                for (; i < count; i++)
+                for (; i < count; i++) {
                     if (value[i] == firstChar) {
                         found = true;
                         break;
                     }
-                if (!found || subCount + i > count)
+                }
+                if (!found || subCount + i > count) {
                     return -1; // handles subCount > count || start >= count
+                }
                 int o1 = i, o2 = 0;
                 while (++o2 < subCount && value[++o1] == subString.charAt(o2)) {
                     // Intentionally empty
                 }
-                if (o2 == subCount)
+                if (o2 == subCount) {
                     return i;
+                }
                 start = i + 1;
             }
         }
@@ -665,11 +710,12 @@
      * character. The search for the character starts at the end and moves
      * towards the beginning.
      * 
-     * @param string the string to find
+     * @param string
+     *            the string to find
      * @return the index in this StringBuffer of the specified character, -1 if
      *         the character isn't found
-     * @throws NullPointerException if the <code>string</code> parameter is
-     *         <code>null</code>.
+     * @throws NullPointerException
+     *             if the <code>string</code> parameter is <code>null</code>.
      * 
      * @see String#lastIndexOf(java.lang.String)
      * 
@@ -684,12 +730,15 @@
      * The search for the character starts at the specified offset and moves
      * towards the beginning.
      * 
-     * @param subString the string to find
-     * @param start the starting offset
+     * @param subString
+     *            the string to find
+     * @param start
+     *            the starting offset
      * @return the index in this StringBuffer of the specified character, -1 if
      *         the character isn't found
-     * @throws NullPointerException if the <code>subString</code> parameter is
-     *         <code>null</code>.
+     * @throws NullPointerException
+     *             if the <code>subString</code> parameter is
+     *             <code>null</code>.
      * @see String#lastIndexOf(java.lang.String,int)
      * @since 1.4
      */
@@ -697,28 +746,32 @@
         int subCount = subString.length();
         if (subCount <= count && start >= 0) {
             if (subCount > 0) {
-                if (start > count - subCount)
+                if (start > count - subCount) {
                     start = count - subCount; // count and subCount are both
+                }
                 // >= 1
                 // TODO optimize charAt to direct array access
                 char firstChar = subString.charAt(0);
                 while (true) {
                     int i = start;
                     boolean found = false;
-                    for (; i >= 0; --i)
+                    for (; i >= 0; --i) {
                         if (value[i] == firstChar) {
                             found = true;
                             break;
                         }
-                    if (!found)
+                    }
+                    if (!found) {
                         return -1;
+                    }
                     int o1 = i, o2 = 0;
                     while (++o2 < subCount
                             && value[++o1] == subString.charAt(o2)) {
                         // Intentionally empty
                     }
-                    if (o2 == subCount)
+                    if (o2 == subCount) {
                         return i;
+                    }
                     start = i - 1;
                 }
             }
@@ -749,18 +802,21 @@
      * Retrieves the Unicode code point value at the <code>index</code>.
      * </p>
      * 
-     * @param index The index to the <code>char</code> code unit within this
-     *        object.
+     * @param index
+     *            The index to the <code>char</code> code unit within this
+     *            object.
      * @return The Unicode code point value.
-     * @throws IndexOutOfBoundsException if <code>index</code> is negative or
-     *         greater than or equal to {@link #length()}.
+     * @throws IndexOutOfBoundsException
+     *             if <code>index</code> is negative or greater than or equal
+     *             to {@link #length()}.
      * @see Character
      * @see Character#codePointAt(char[], int, int)
      * @since 1.5
      */
     public int codePointAt(int index) {
-        if (index < 0 || index >= count)
+        if (index < 0 || index >= count) {
             throw new StringIndexOutOfBoundsException(index);
+        }
         return Character.codePointAt(value, index, count);
     }
 
@@ -770,18 +826,21 @@
      * <code>index</code>.
      * </p>
      * 
-     * @param index The index to the <code>char</code> code unit within this
-     *        object.
+     * @param index
+     *            The index to the <code>char</code> code unit within this
+     *            object.
      * @return The Unicode code point value.
-     * @throws IndexOutOfBoundsException if <code>index</code> is less than 1
-     *         or greater than {@link #length()}.
+     * @throws IndexOutOfBoundsException
+     *             if <code>index</code> is less than 1 or greater than
+     *             {@link #length()}.
      * @see Character
      * @see Character#codePointBefore(char[], int, int)
      * @since 1.5
      */
     public int codePointBefore(int index) {
-        if (index < 1 || index > count)
+        if (index < 1 || index > count) {
             throw new StringIndexOutOfBoundsException(index);
+        }
         return Character.codePointBefore(value, index);
     }
 
@@ -791,17 +850,21 @@
      * <code>beginIndex</code> and <code>endIndex</code>.
      * </p>
      * 
-     * @param beginIndex The inclusive beginning index of the subsequence.
-     * @param endIndex The exclusive end index of the subsequence.
+     * @param beginIndex
+     *            The inclusive beginning index of the subsequence.
+     * @param endIndex
+     *            The exclusive end index of the subsequence.
      * @return The number of Unicode code points in the subsequence.
-     * @throws IndexOutOfBoundsException if <code>beginIndex</code> is
-     *         negative or greater than <code>endIndex</code> or
-     *         <code>endIndex</code> is greater than {@link #length()}.
+     * @throws IndexOutOfBoundsException
+     *             if <code>beginIndex</code> is negative or greater than
+     *             <code>endIndex</code> or <code>endIndex</code> is greater
+     *             than {@link #length()}.
      * @since 1.5
      */
     public int codePointCount(int beginIndex, int endIndex) {
-        if (beginIndex < 0 || endIndex > count || beginIndex > endIndex)
+        if (beginIndex < 0 || endIndex > count || beginIndex > endIndex) {
             throw new StringIndexOutOfBoundsException();
+        }
         return Character.codePointCount(value, beginIndex, endIndex
                 - beginIndex);
     }
@@ -812,13 +875,16 @@
      * <code>index</code> by <code>codePointOffset</code> code points.
      * </p>
      * 
-     * @param index The index within this object to calculate the offset from.
-     * @param codePointOffset The number of code points to count.
+     * @param index
+     *            The index within this object to calculate the offset from.
+     * @param codePointOffset
+     *            The number of code points to count.
      * @return The index within this object that is the offset.
-     * @throws IndexOutOfBoundsException if <code>index</code> is negative or
-     *         greater than {@link #length()} or if there aren't enough code
-     *         points before or after <code>index</code> to match
-     *         <code>codePointOffset</code>.
+     * @throws IndexOutOfBoundsException
+     *             if <code>index</code> is negative or greater than
+     *             {@link #length()} or if there aren't enough code points
+     *             before or after <code>index</code> to match
+     *             <code>codePointOffset</code>.
      * @since 1.5
      */
     public int offsetByCodePoints(int index, int codePointOffset) {

Modified: harmony/enhanced/classlib/trunk/modules/luni/src/main/java/java/lang/StringBuffer.java
URL: http://svn.apache.org/viewvc/harmony/enhanced/classlib/trunk/modules/luni/src/main/java/java/lang/StringBuffer.java?view=diff&rev=488336&r1=488335&r2=488336
==============================================================================
--- harmony/enhanced/classlib/trunk/modules/luni/src/main/java/java/lang/StringBuffer.java (original)
+++ harmony/enhanced/classlib/trunk/modules/luni/src/main/java/java/lang/StringBuffer.java Mon Dec 18 08:51:06 2006
@@ -47,9 +47,9 @@
     private static final long serialVersionUID = 3388685877147921107L;
 
     private static final ObjectStreamField serialPersistentFields[] = {
-            new ObjectStreamField("count", int.class),
-            new ObjectStreamField("shared", boolean.class),
-            new ObjectStreamField("value", char[].class), };
+            new ObjectStreamField("count", int.class), //$NON-NLS-1$
+            new ObjectStreamField("shared", boolean.class), //$NON-NLS-1$
+            new ObjectStreamField("value", char[].class), }; //$NON-NLS-1$
 
     /**
      * Constructs a new StringBuffer using the default capacity.
@@ -61,7 +61,8 @@
     /**
      * Constructs a new StringBuffer using the specified capacity.
      * 
-     * @param capacity the initial capacity
+     * @param capacity
+     *            the initial capacity
      */
     public StringBuffer(int capacity) {
         super(capacity);
@@ -71,10 +72,12 @@
      * Constructs a new StringBuffer containing the characters in the specified
      * string and the default capacity.
      * 
-     * @param string the string content with which to initialize the new
-     *        <code>StringBuffer</code> instance
-     * @throws NullPointerException on supplying a <code>null</code> value of
-     *         <code>string</code>
+     * @param string
+     *            the string content with which to initialize the new
+     *            <code>StringBuffer</code> instance
+     * @throws NullPointerException
+     *             on supplying a <code>null</code> value of
+     *             <code>string</code>
      */
     public StringBuffer(String string) {
         super(string);
@@ -86,9 +89,10 @@
      * <code>CharSequence</code>.
      * </p>
      * 
-     * @param cs The <code>CharSequence</code> to initialize the instance.
-     * @throws NullPointerException if the <code>cs</code> parameter is
-     *         <code>null</code>.
+     * @param cs
+     *            The <code>CharSequence</code> to initialize the instance.
+     * @throws NullPointerException
+     *             if the <code>cs</code> parameter is <code>null</code>.
      * @since 1.5
      */
     public StringBuffer(CharSequence cs) {
@@ -99,17 +103,19 @@
      * Adds the string representation of the specified boolean to the end of
      * this StringBuffer.
      * 
-     * @param b the boolean
+     * @param b
+     *            the boolean
      * @return this StringBuffer
      */
     public StringBuffer append(boolean b) {
-        return append(b ? "true" : "false");
+        return append(b ? "true" : "false"); //$NON-NLS-1$//$NON-NLS-2$
     }
 
     /**
      * Adds the specified character to the end of this StringBuffer.
      * 
-     * @param ch a character
+     * @param ch
+     *            a character
      * @return this StringBuffer
      */
     public synchronized StringBuffer append(char ch) {
@@ -121,7 +127,8 @@
      * Adds the string representation of the specified double to the end of this
      * StringBuffer.
      * 
-     * @param d the double
+     * @param d
+     *            the double
      * @return this StringBuffer
      */
     public StringBuffer append(double d) {
@@ -132,7 +139,8 @@
      * Adds the string representation of the specified float to the end of this
      * StringBuffer.
      * 
-     * @param f the float
+     * @param f
+     *            the float
      * @return this StringBuffer
      */
     public StringBuffer append(float f) {
@@ -143,7 +151,8 @@
      * Adds the string representation of the specified integer to the end of
      * this StringBuffer.
      * 
-     * @param value the integer
+     * @param value
+     *            the integer
      * @return this StringBuffer
      */
     public StringBuffer append(int i) {
@@ -154,7 +163,8 @@
      * Adds the string representation of the specified long to the end of this
      * StringBuffer.
      * 
-     * @param l the long
+     * @param l
+     *            the long
      * @return this StringBuffer
      */
     public StringBuffer append(long l) {
@@ -165,7 +175,8 @@
      * Adds the string representation of the specified object to the end of this
      * StringBuffer.
      * 
-     * @param obj the object
+     * @param obj
+     *            the object
      * @return this StringBuffer
      */
     public synchronized StringBuffer append(Object obj) {
@@ -180,7 +191,8 @@
     /**
      * Adds the specified string to the end of this StringBuffer.
      * 
-     * @param string the string
+     * @param string
+     *            the string
      * @return this StringBuffer
      */
     public synchronized StringBuffer append(String string) {
@@ -191,7 +203,8 @@
     /**
      * Adds the specified StringBuffer to the end of this StringBuffer.
      * 
-     * @param sbuffer the StringBuffer
+     * @param sbuffer
+     *            the StringBuffer
      * @return this StringBuffer
      * 
      * @since 1.4
@@ -210,10 +223,12 @@
     /**
      * Adds the character array to the end of this StringBuffer.
      * 
-     * @param chars the character array
+     * @param chars
+     *            the character array
      * @return this StringBuffer
      * 
-     * @throws NullPointerException when chars is null
+     * @throws NullPointerException
+     *             when chars is null
      */
     public synchronized StringBuffer append(char chars[]) {
         append0(chars);
@@ -224,15 +239,19 @@
      * Adds the specified sequence of characters to the end of this
      * StringBuffer.
      * 
-     * @param chars a character array
-     * @param start the starting offset
-     * @param length the number of characters
+     * @param chars
+     *            a character array
+     * @param start
+     *            the starting offset
+     * @param length
+     *            the number of characters
      * @return this StringBuffer
      * 
-     * @throws ArrayIndexOutOfBoundsException when
-     *         <code>length < 0, start < 0</code> or
-     *         <code>start + length > chars.length</code>
-     * @throws NullPointerException when chars is null
+     * @throws ArrayIndexOutOfBoundsException
+     *             when <code>length < 0, start < 0</code> or
+     *             <code>start + length > chars.length</code>
+     * @throws NullPointerException
+     *             when chars is null
      */
     public synchronized StringBuffer append(char chars[], int start, int length) {
         append0(chars, start, length);
@@ -246,7 +265,8 @@
      * <code>"null"</code> is appended.
      * </p>
      * 
-     * @param s The <code>CharSequence</code> to append.
+     * @param s
+     *            The <code>CharSequence</code> to append.
      * @return A reference to this object.
      * @since 1.5
      */
@@ -266,17 +286,21 @@
      * the string <code>"null"</code> is used to extract a subsequence.
      * </p>
      * 
-     * @param s The <code>CharSequence</code> to append.
-     * @param start The inclusive start index of the subsequence of the
-     *        <code>CharSequence</code>.
-     * @param end The exclusive end index of the subsequence of the
-     *        <code>CharSequence</code>.
+     * @param s
+     *            The <code>CharSequence</code> to append.
+     * @param start
+     *            The inclusive start index of the subsequence of the
+     *            <code>CharSequence</code>.
+     * @param end
+     *            The exclusive end index of the subsequence of the
+     *            <code>CharSequence</code>.
      * @return A reference to this object.
      * @since 1.5
-     * @throws IndexOutOfBoundsException if <code>start</code> or
-     *         <code>end</code> are negative, <code>start</code> is greater
-     *         than <code>end</code> or <code>end</code> is greater than the
-     *         length of <code>s</code>.
+     * @throws IndexOutOfBoundsException
+     *             if <code>start</code> or <code>end</code> are negative,
+     *             <code>start</code> is greater than <code>end</code> or
+     *             <code>end</code> is greater than the length of
+     *             <code>s</code>.
      */
     public synchronized StringBuffer append(CharSequence s, int start, int end) {
         append0(s, start, end);
@@ -290,7 +314,8 @@
      * {@link Character#toChars(int)}.
      * </p>
      * 
-     * @param codePoint The Unicode code point to encode and append.
+     * @param codePoint
+     *            The Unicode code point to encode and append.
      * @return A reference to this object.
      * @see Character#toChars(int)
      * @since 1.5
@@ -302,11 +327,13 @@
     /**
      * Answers the character at the specified offset in this StringBuffer.
      * 
-     * @param index the zero-based index in this StringBuffer
+     * @param index
+     *            the zero-based index in this StringBuffer
      * @return the character at the index
      * 
-     * @throws IndexOutOfBoundsException when <code>index < 0</code> or
-     *         <code>index >= length()</code>
+     * @throws IndexOutOfBoundsException
+     *             when <code>index < 0</code> or
+     *             <code>index >= length()</code>
      */
     @Override
     public synchronized char charAt(int index) {
@@ -318,11 +345,13 @@
      * Retrieves the Unicode code point value at the <code>index</code>.
      * </p>
      * 
-     * @param index The index to the <code>char</code> code unit within this
-     *        object.
+     * @param index
+     *            The index to the <code>char</code> code unit within this
+     *            object.
      * @return The Unicode code point value.
-     * @throws IndexOutOfBoundsException if <code>index</code> is negative or
-     *         greater than or equal to {@link #length()}.
+     * @throws IndexOutOfBoundsException
+     *             if <code>index</code> is negative or greater than or equal
+     *             to {@link #length()}.
      * @see Character
      * @see Character#codePointAt(char[], int, int)
      * @since 1.5
@@ -338,11 +367,13 @@
      * <code>index</code>.
      * </p>
      * 
-     * @param index The index to the <code>char</code> code unit within this
-     *        object.
+     * @param index
+     *            The index to the <code>char</code> code unit within this
+     *            object.
      * @return The Unicode code point value.
-     * @throws IndexOutOfBoundsException if <code>index</code> is less than 1
-     *         or greater than {@link #length()}.
+     * @throws IndexOutOfBoundsException
+     *             if <code>index</code> is less than 1 or greater than
+     *             {@link #length()}.
      * @see Character
      * @see Character#codePointBefore(char[], int, int)
      * @since 1.5
@@ -358,12 +389,15 @@
      * <code>beginIndex</code> and <code>endIndex</code>.
      * </p>
      * 
-     * @param beginIndex The inclusive beginning index of the subsequence.
-     * @param endIndex The exclusive end index of the subsequence.
+     * @param beginIndex
+     *            The inclusive beginning index of the subsequence.
+     * @param endIndex
+     *            The exclusive end index of the subsequence.
      * @return The number of Unicode code points in the subsequence.
-     * @throws IndexOutOfBoundsException if <code>beginIndex</code> is
-     *         negative or greater than <code>endIndex</code> or
-     *         <code>endIndex</code> is greater than {@link #length()}.
+     * @throws IndexOutOfBoundsException
+     *             if <code>beginIndex</code> is negative or greater than
+     *             <code>endIndex</code> or <code>endIndex</code> is greater
+     *             than {@link #length()}.
      * @since 1.5
      */
     @Override
@@ -374,13 +408,15 @@
     /**
      * Deletes a range of characters.
      * 
-     * @param start the offset of the first character
-     * @param end the offset one past the last character
+     * @param start
+     *            the offset of the first character
+     * @param end
+     *            the offset one past the last character
      * @return this StringBuffer
      * 
-     * @throws StringIndexOutOfBoundsException when
-     *         <code>start < 0, start > end</code> or
-     *         <code>end > length()</code>
+     * @throws StringIndexOutOfBoundsException
+     *             when <code>start < 0, start > end</code> or
+     *             <code>end > length()</code>
      */
     public synchronized StringBuffer delete(int start, int end) {
         delete0(start, end);
@@ -390,11 +426,13 @@
     /**
      * Deletes a single character
      * 
-     * @param location the offset of the character to delete
+     * @param location
+     *            the offset of the character to delete
      * @return this StringBuffer
      * 
-     * @throws StringIndexOutOfBoundsException when <code>location < 0</code>
-     *         or <code>location >= length()</code>
+     * @throws StringIndexOutOfBoundsException
+     *             when <code>location < 0</code> or
+     *             <code>location >= length()</code>
      */
     public synchronized StringBuffer deleteCharAt(int location) {
         deleteCharAt0(location);
@@ -405,8 +443,9 @@
      * Ensures that this StringBuffer can hold the specified number of
      * characters without growing.
      * 
-     * @param min the minimum number of elements that this StringBuffer will
-     *        hold before growing
+     * @param min
+     *            the minimum number of elements that this StringBuffer will
+     *            hold before growing
      */
     @Override
     public synchronized void ensureCapacity(int min) {
@@ -417,14 +456,20 @@
      * Copies the specified characters in this StringBuffer to the character
      * array starting at the specified offset in the character array.
      * 
-     * @param start the starting offset of characters to copy
-     * @param end the ending offset of characters to copy
-     * @param buffer the destination character array
-     * @param index the starting offset in the character array
+     * @param start
+     *            the starting offset of characters to copy
+     * @param end
+     *            the ending offset of characters to copy
+     * @param buffer
+     *            the destination character array
+     * @param index
+     *            the starting offset in the character array
      * 
-     * @throws IndexOutOfBoundsException when <code>start < 0, end > length(),
+     * @throws IndexOutOfBoundsException
+     *             when <code>start < 0, end > length(),
      *				start > end, index < 0, end - start > buffer.length - index</code>
-     * @throws NullPointerException when buffer is null
+     * @throws NullPointerException
+     *             when buffer is null
      */
     @Override
     public synchronized void getChars(int start, int end, char[] buffer, int idx) {
@@ -436,8 +481,10 @@
      * The search for the character starts at the specified offset and moves
      * towards the end.
      * 
-     * @param subString the string to find
-     * @param start the starting offset
+     * @param subString
+     *            the string to find
+     * @param start
+     *            the starting offset
      * @return the index in this StringBuffer of the specified character, -1 if
      *         the character isn't found
      * 
@@ -453,12 +500,15 @@
     /**
      * Inserts the character at the specified offset in this StringBuffer.
      * 
-     * @param index the index at which to insert
-     * @param ch the character to insert
+     * @param index
+     *            the index at which to insert
+     * @param ch
+     *            the character to insert
      * @return this StringBuffer
      * 
-     * @throws ArrayIndexOutOfBoundsException when <code>index < 0</code> or
-     *         <code>index > length()</code>
+     * @throws ArrayIndexOutOfBoundsException
+     *             when <code>index < 0</code> or
+     *             <code>index > length()</code>
      */
     public synchronized StringBuffer insert(int index, char ch) {
         insert0(index, ch);
@@ -469,27 +519,33 @@
      * Inserts the string representation of the specified boolean at the
      * specified offset in this StringBuffer.
      * 
-     * @param index the index at which to insert
-     * @param b the boolean to insert
+     * @param index
+     *            the index at which to insert
+     * @param b
+     *            the boolean to insert
      * @return this StringBuffer
      * 
-     * @throws StringIndexOutOfBoundsException when <code>index < 0</code> or
-     *         <code>index > length()</code>
+     * @throws StringIndexOutOfBoundsException
+     *             when <code>index < 0</code> or
+     *             <code>index > length()</code>
      */
     public StringBuffer insert(int index, boolean b) {
-        return insert(index, b ? "true" : "false");
+        return insert(index, b ? "true" : "false"); //$NON-NLS-1$ //$NON-NLS-2$
     }
 
     /**
      * Inserts the string representation of the specified integer at the
      * specified offset in this StringBuffer.
      * 
-     * @param index the index at which to insert
-     * @param i the integer to insert
+     * @param index
+     *            the index at which to insert
+     * @param i
+     *            the integer to insert
      * @return this StringBuffer
      * 
-     * @throws StringIndexOutOfBoundsException when <code>index < 0</code> or
-     *         <code>index > length()</code>
+     * @throws StringIndexOutOfBoundsException
+     *             when <code>index < 0</code> or
+     *             <code>index > length()</code>
      */
     public StringBuffer insert(int index, int i) {
         return insert(index, Integer.toString(i));
@@ -499,12 +555,15 @@
      * Inserts the string representation of the specified long at the specified
      * offset in this StringBuffer.
      * 
-     * @param index the index at which to insert
-     * @param l the long to insert
+     * @param index
+     *            the index at which to insert
+     * @param l
+     *            the long to insert
      * @return this StringBuffer
      * 
-     * @throws StringIndexOutOfBoundsException when <code>index < 0</code> or
-     *         <code>index > length()</code>
+     * @throws StringIndexOutOfBoundsException
+     *             when <code>index < 0</code> or
+     *             <code>index > length()</code>
      */
     public StringBuffer insert(int index, long l) {
         return insert(index, Long.toString(l));
@@ -514,12 +573,15 @@
      * Inserts the string representation of the specified double at the
      * specified offset in this StringBuffer.
      * 
-     * @param index the index at which to insert
-     * @param d the double to insert
+     * @param index
+     *            the index at which to insert
+     * @param d
+     *            the double to insert
      * @return this StringBuffer
      * 
-     * @throws StringIndexOutOfBoundsException when <code>index < 0</code> or
-     *         <code>index > length()</code>
+     * @throws StringIndexOutOfBoundsException
+     *             when <code>index < 0</code> or
+     *             <code>index > length()</code>
      */
     public StringBuffer insert(int index, double d) {
         return insert(index, Double.toString(d));
@@ -529,12 +591,15 @@
      * Inserts the string representation of the specified float at the specified
      * offset in this StringBuffer.
      * 
-     * @param index the index at which to insert
-     * @param f the float to insert
+     * @param index
+     *            the index at which to insert
+     * @param f
+     *            the float to insert
      * @return this StringBuffer
      * 
-     * @throws StringIndexOutOfBoundsException when <code>index < 0</code> or
-     *         <code>index > length()</code>
+     * @throws StringIndexOutOfBoundsException
+     *             when <code>index < 0</code> or
+     *             <code>index > length()</code>
      */
     public StringBuffer insert(int index, float f) {
         return insert(index, Float.toString(f));
@@ -544,26 +609,32 @@
      * Inserts the string representation of the specified object at the
      * specified offset in this StringBuffer.
      * 
-     * @param index the index at which to insert
-     * @param obj the object to insert
+     * @param index
+     *            the index at which to insert
+     * @param obj
+     *            the object to insert
      * @return this StringBuffer
      * 
-     * @throws StringIndexOutOfBoundsException when <code>index < 0</code> or
-     *         <code>index > length()</code>
+     * @throws StringIndexOutOfBoundsException
+     *             when <code>index < 0</code> or
+     *             <code>index > length()</code>
      */
     public StringBuffer insert(int index, Object obj) {
-        return insert(index, obj == null ? "null" : obj.toString());
+        return insert(index, obj == null ? "null" : obj.toString()); //$NON-NLS-1$
     }
 
     /**
      * Inserts the string at the specified offset in this StringBuffer.
      * 
-     * @param index the index at which to insert
-     * @param string the string to insert
+     * @param index
+     *            the index at which to insert
+     * @param string
+     *            the string to insert
      * @return this StringBuffer
      * 
-     * @throws StringIndexOutOfBoundsException when <code>index < 0</code> or
-     *         <code>index > length()</code>
+     * @throws StringIndexOutOfBoundsException
+     *             when <code>index < 0</code> or
+     *             <code>index > length()</code>
      */
     public synchronized StringBuffer insert(int index, String string) {
         insert0(index, string);
@@ -573,13 +644,17 @@
     /**
      * Inserts the character array at the specified offset in this StringBuffer.
      * 
-     * @param index the index at which to insert
-     * @param chars the character array to insert
+     * @param index
+     *            the index at which to insert
+     * @param chars
+     *            the character array to insert
      * @return this StringBuffer
      * 
-     * @throws StringIndexOutOfBoundsException when <code>index < 0</code> or
-     *         <code>index > length()</code>
-     * @throws NullPointerException when chars is null
+     * @throws StringIndexOutOfBoundsException
+     *             when <code>index < 0</code> or
+     *             <code>index > length()</code>
+     * @throws NullPointerException
+     *             when chars is null
      */
     public synchronized StringBuffer insert(int index, char[] chars) {
         insert0(index, chars);
@@ -590,17 +665,22 @@
      * Inserts the specified sequence of characters at the specified offset in
      * this StringBuffer.
      * 
-     * @param index the index at which to insert
-     * @param chars a character array
-     * @param start the starting offset
-     * @param length the number of characters
+     * @param index
+     *            the index at which to insert
+     * @param chars
+     *            a character array
+     * @param start
+     *            the starting offset
+     * @param length
+     *            the number of characters
      * @return this StringBuffer
      * 
-     * @throws StringIndexOutOfBoundsException when
-     *         <code>length < 0, start < 0,</code>
+     * @throws StringIndexOutOfBoundsException
+     *             when <code>length < 0, start < 0,</code>
      *				<code>start + length > chars.length, index < 0</code>
-     *         or <code>index > length()</code>
-     * @throws NullPointerException when chars is null
+     *             or <code>index > length()</code>
+     * @throws NullPointerException
+     *             when chars is null
      */
     public synchronized StringBuffer insert(int index, char chars[], int start,
             int length) {
@@ -615,14 +695,17 @@
      * <code>null</code>, then the string <code>"null"</code> is inserted.
      * </p>
      * 
-     * @param index The index of this buffer to insert the sequence.
-     * @param s The <code>CharSequence</code> to insert.
+     * @param index
+     *            The index of this buffer to insert the sequence.
+     * @param s
+     *            The <code>CharSequence</code> to insert.
      * @return A reference to this object.
      * @since 1.5
-     * @throws IndexOutOfBoundsException if the index is invalid.
+     * @throws IndexOutOfBoundsException
+     *             if the index is invalid.
      */
     public synchronized StringBuffer insert(int index, CharSequence s) {
-        insert0(index, s == null ? "null" : s.toString());
+        insert0(index, s == null ? "null" : s.toString()); //$NON-NLS-1$
         return this;
     }
 
@@ -633,19 +716,24 @@
      * <code>null</code>, then the string <code>"null"</code> is inserted.
      * </p>
      * 
-     * @param index The index of this buffer to insert the sequence.
-     * @param s The <code>CharSequence</code> to insert.
-     * @param start The inclusive start index of the subsequence of the
-     *        <code>CharSequence</code>.
-     * @param end The exclusive end index of the subsequence of the
-     *        <code>CharSequence</code>.
+     * @param index
+     *            The index of this buffer to insert the sequence.
+     * @param s
+     *            The <code>CharSequence</code> to insert.
+     * @param start
+     *            The inclusive start index of the subsequence of the
+     *            <code>CharSequence</code>.
+     * @param end
+     *            The exclusive end index of the subsequence of the
+     *            <code>CharSequence</code>.
      * @return A reference to this object.
      * @since 1.5
-     * @throws IndexOutOfBoundsException if <code>index</code> is negative or
-     *         greater than the current length, <code>start</code> or
-     *         <code>end</code> are negative, <code>start</code> is greater
-     *         than <code>end</code> or <code>end</code> is greater than the
-     *         length of <code>s</code>.
+     * @throws IndexOutOfBoundsException
+     *             if <code>index</code> is negative or greater than the
+     *             current length, <code>start</code> or <code>end</code>
+     *             are negative, <code>start</code> is greater than
+     *             <code>end</code> or <code>end</code> is greater than the
+     *             length of <code>s</code>.
      */
     public synchronized StringBuffer insert(int index, CharSequence s,
             int start, int end) {
@@ -658,8 +746,10 @@
      * The search for the character starts at the specified offset and moves
      * towards the beginning.
      * 
-     * @param subString the string to find
-     * @param start the starting offset
+     * @param subString
+     *            the string to find
+     * @param start
+     *            the starting offset
      * @return the index in this StringBuffer of the specified character, -1 if
      *         the character isn't found
      * 
@@ -678,13 +768,16 @@
      * <code>index</code> by <code>codePointOffset</code> code points.
      * </p>
      * 
-     * @param index The index within this object to calculate the offset from.
-     * @param codePointOffset The number of code points to count.
+     * @param index
+     *            The index within this object to calculate the offset from.
+     * @param codePointOffset
+     *            The number of code points to count.
      * @return The index within this object that is the offset.
-     * @throws IndexOutOfBoundsException if <code>index</code> is negative or
-     *         greater than {@link #length()} or if there aren't enough code
-     *         points before or after <code>index</code> to match
-     *         <code>codePointOffset</code>.
+     * @throws IndexOutOfBoundsException
+     *             if <code>index</code> is negative or greater than
+     *             {@link #length()} or if there aren't enough code points
+     *             before or after <code>index</code> to match
+     *             <code>codePointOffset</code>.
      * @since 1.5
      */
     @Override
@@ -696,13 +789,16 @@
      * Replace a range of characters with the characters in the specified
      * String.
      * 
-     * @param start the offset of the first character
-     * @param end the offset one past the last character
-     * @param string a String
+     * @param start
+     *            the offset of the first character
+     * @param end
+     *            the offset one past the last character
+     * @param string
+     *            a String
      * @return this StringBuffer
      * 
-     * @throws StringIndexOutOfBoundsException when <code>start < 0</code> or
-     *         <code>start > end</code>
+     * @throws StringIndexOutOfBoundsException
+     *             when <code>start < 0</code> or <code>start > end</code>
      */
     public synchronized StringBuffer replace(int start, int end, String string) {
         replace0(start, end, string);
@@ -722,11 +818,14 @@
     /**
      * Sets the character at the specified offset in this StringBuffer.
      * 
-     * @param index the zero-based index in this StringBuffer
-     * @param ch the character
-     * 
-     * @throws IndexOutOfBoundsException when <code>index < 0</code> or
-     *         <code>index >= length()</code>
+     * @param index
+     *            the zero-based index in this StringBuffer
+     * @param ch
+     *            the character
+     * 
+     * @throws IndexOutOfBoundsException
+     *             when <code>index < 0</code> or
+     *             <code>index >= length()</code>
      */
     @Override
     public synchronized void setCharAt(int index, char ch) {
@@ -739,9 +838,11 @@
      * end are lost. If there are less than length characters in the
      * StringBuffer, the additional characters are set to <code>\\u0000</code>.
      * 
-     * @param length the new length of this StringBuffer
+     * @param length
+     *            the new length of this StringBuffer
      * 
-     * @throws IndexOutOfBoundsException when <code>length < 0</code>
+     * @throws IndexOutOfBoundsException
+     *             when <code>length < 0</code>
      * 
      * @see #length
      */
@@ -753,13 +854,15 @@
     /**
      * Copies a range of characters into a new String.
      * 
-     * @param start the offset of the first character
-     * @param end the offset one past the last character
+     * @param start
+     *            the offset of the first character
+     * @param end
+     *            the offset one past the last character
      * @return a new String containing the characters from start to end - 1
      * 
-     * @throws IndexOutOfBoundsException when
-     *         <code>start < 0, start > end</code> or
-     *         <code>end > length()</code>
+     * @throws IndexOutOfBoundsException
+     *             when <code>start < 0, start > end</code> or
+     *             <code>end > length()</code>
      * 
      * @since 1.4
      */
@@ -771,12 +874,14 @@
     /**
      * Copies a range of characters into a new String.
      * 
-     * @param start the offset of the first character
+     * @param start
+     *            the offset of the first character
      * @return a new String containing the characters from start to the end of
      *         the string
      * 
-     * @throws StringIndexOutOfBoundsException when <code>start < 0</code> or
-     *         <code>start > length()</code>
+     * @throws StringIndexOutOfBoundsException
+     *             when <code>start < 0</code> or
+     *             <code>start > length()</code>
      */
     @Override
     public synchronized String substring(int start) {
@@ -786,13 +891,15 @@
     /**
      * Copies a range of characters into a new String.
      * 
-     * @param start the offset of the first character
-     * @param end the offset one past the last character
+     * @param start
+     *            the offset of the first character
+     * @param end
+     *            the offset one past the last character
      * @return a new String containing the characters from start to end - 1
      * 
-     * @throws StringIndexOutOfBoundsException when
-     *         <code>start < 0, start > end</code> or
-     *         <code>end > length()</code>
+     * @throws StringIndexOutOfBoundsException
+     *             when <code>start < 0, start > end</code> or
+     *             <code>end > length()</code>
      */
     @Override
     public synchronized String substring(int start, int end) {
@@ -826,17 +933,17 @@
     private synchronized void writeObject(ObjectOutputStream out)
             throws IOException {
         ObjectOutputStream.PutField fields = out.putFields();
-        fields.put("count", length());
-        fields.put("shared", false);
-        fields.put("value", getValue());
+        fields.put("count", length()); //$NON-NLS-1$
+        fields.put("shared", false); //$NON-NLS-1$
+        fields.put("value", getValue()); //$NON-NLS-1$
         out.writeFields();
     }
 
     private void readObject(ObjectInputStream in) throws IOException,
             ClassNotFoundException {
         ObjectInputStream.GetField fields = in.readFields();
-        int count = fields.get("count", 0);
-        char[] value = (char[]) fields.get("value", null);
+        int count = fields.get("count", 0); //$NON-NLS-1$
+        char[] value = (char[]) fields.get("value", null); //$NON-NLS-1$
         set(value, count);
     }
 }

Modified: harmony/enhanced/classlib/trunk/modules/luni/src/main/java/java/lang/StringBuilder.java
URL: http://svn.apache.org/viewvc/harmony/enhanced/classlib/trunk/modules/luni/src/main/java/java/lang/StringBuilder.java?view=diff&rev=488336&r1=488335&r2=488336
==============================================================================
--- harmony/enhanced/classlib/trunk/modules/luni/src/main/java/java/lang/StringBuilder.java (original)
+++ harmony/enhanced/classlib/trunk/modules/luni/src/main/java/java/lang/StringBuilder.java Mon Dec 18 08:51:06 2006
@@ -119,7 +119,7 @@
      * @see String#valueOf(boolean)
      */
     public StringBuilder append(boolean b) {
-        append0(b ? "true" : "false");
+        append0(b ? "true" : "false"); //$NON-NLS-1$ //$NON-NLS-2$
         return this;
     }
 
@@ -408,7 +408,7 @@
      * @see String#valueOf(boolean)
      */
     public StringBuilder insert(int offset, boolean b) {
-        insert0(offset, b ? "true" : "false");
+        insert0(offset, b ? "true" : "false"); //$NON-NLS-1$ //$NON-NLS-2$
         return this;
     }
 
@@ -540,7 +540,7 @@
      * @see String#valueOf(Object)
      */
     public StringBuilder insert(int offset, Object obj) {
-        insert0(offset, obj == null ? "null" : obj.toString());
+        insert0(offset, obj == null ? "null" : obj.toString()); //$NON-NLS-1$
         return this;
     }
 
@@ -633,7 +633,7 @@
      * @see CharSequence#toString()
      */
     public StringBuilder insert(int offset, CharSequence s) {
-        insert0(offset, s == null ? "null" : s.toString());
+        insert0(offset, s == null ? "null" : s.toString()); //$NON-NLS-1$
         return this;
     }
 



Mime
View raw message