From: <kp...@us...> - 2007-12-30 11:34:47
|
Revision: 11482 http://jedit.svn.sourceforge.net/jedit/?rev=11482&view=rev Author: kpouer Date: 2007-12-30 03:34:46 -0800 (Sun, 30 Dec 2007) Log Message: ----------- removed an unneeded toString() call Modified Paths: -------------- jEdit/trunk/org/gjt/sp/util/StringList.java Modified: jEdit/trunk/org/gjt/sp/util/StringList.java =================================================================== --- jEdit/trunk/org/gjt/sp/util/StringList.java 2007-12-30 11:32:32 UTC (rev 11481) +++ jEdit/trunk/org/gjt/sp/util/StringList.java 2007-12-30 11:34:46 UTC (rev 11482) @@ -74,6 +74,7 @@ * @return a joined string representation of this, * with the newline (\n) as delimiter. */ + @Override public String toString() { return join("\n"); @@ -81,6 +82,7 @@ // {{{ toArray() /** @return an array of String */ + @Override public String[] toArray() { int siz = size(); @@ -131,7 +133,7 @@ if (s < 1) return ""; if (s == 1) - return get(0).toString(); + return get(0); else { StringBuffer retval = new StringBuffer(); @@ -148,7 +150,7 @@ { String teststr = "a,b,c,d,e,f"; StringList sl = StringList.split(teststr, ","); - String joinstr = sl.join(","); + //String joinstr = sl.join(","); // assert(teststr.equals(joinstr)); System.out.println("Test Passed"); This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |