summaryrefslogtreecommitdiff
path: root/gnu/java
diff options
context:
space:
mode:
authorAndrew John Hughes <gnu_andrew@member.fsf.org>2008-05-05 22:21:11 +0000
committerAndrew John Hughes <gnu_andrew@member.fsf.org>2008-05-05 22:21:11 +0000
commit6adf82b1031640fe3e37ab9f4b62026ae68e2cc1 (patch)
treedcbfdfae2c165502f09b132b343471f1f1cb8646 /gnu/java
parent05018cfd0d57d14336c66e04768f272e6531f9b7 (diff)
downloadclasspath-6adf82b1031640fe3e37ab9f4b62026ae68e2cc1.tar.gz
2008-05-05 Andrew John Hughes <gnu_andrew@member.fsf.org>
PR classpath/21869 * gnu/java/lang/CPStringBuilder.java: (substring(int)): Added. * gnu/javax/naming/giop/CorbalocParser.java, * gnu/javax/naming/giop/GiopNamingServiceFactory.java, * gnu/javax/naming/giop/ListBindingsEnumeration.java, * gnu/javax/naming/giop/ListEnumeration.java, * gnu/javax/naming/ictxImpl/trans/GnuName.java, * gnu/javax/net/ssl/PrivateCredentials.java, * gnu/javax/net/ssl/Session.java, * gnu/javax/net/ssl/provider/HelloRequest.java, * gnu/javax/net/ssl/provider/Util.java, * gnu/javax/print/ipp/attribute/RequestedAttributes.java, * gnu/javax/rmi/CORBA/RmiUtilities.java, * gnu/javax/security/auth/callback/AWTCallbackHandler.java, * gnu/javax/security/auth/login/ConfigFileTokenizer.java, * gnu/javax/sound/sampled/gstreamer/io/GstAudioFileReader.java: Swap use of StringBuffer for CPStringBuilder,
Diffstat (limited to 'gnu/java')
-rw-r--r--gnu/java/lang/CPStringBuilder.java18
1 files changed, 16 insertions, 2 deletions
diff --git a/gnu/java/lang/CPStringBuilder.java b/gnu/java/lang/CPStringBuilder.java
index d6ddca2c5..5d60991cf 100644
--- a/gnu/java/lang/CPStringBuilder.java
+++ b/gnu/java/lang/CPStringBuilder.java
@@ -1079,7 +1079,21 @@ public final class CPStringBuilder
}
/**
- * Creates a substring of this StringBuilder, starting at a specified index
+ * Creates a substring of this CPStringBuilder, starting at a specified index
+ * and ending at the end of this StringBuilder.
+ *
+ * @param beginIndex index to start substring (base 0)
+ * @return new String which is a substring of this StringBuilder
+ * @throws StringIndexOutOfBoundsException if beginIndex is out of bounds
+ * @see #substring(int, int)
+ */
+ public String substring(int beginIndex)
+ {
+ return substring(beginIndex, count);
+ }
+
+ /**
+ * Creates a substring of this CPStringBuilder, starting at a specified index
* and ending at one character before a specified index.
*
* @param beginIndex index to start at (inclusive, base 0)
@@ -1099,7 +1113,7 @@ public final class CPStringBuilder
}
/**
- * Convert this <code>StringBuilder</code> to a <code>String</code>. The
+ * Convert this <code>CPStringBuilder</code> to a <code>String</code>. The
* String is composed of the characters currently in this StringBuilder. Note
* that the result is not a copy, so future modifications to this buffer
* do affect the String.