From: Astrid S. <ast...@us...> - 2009-03-02 16:07:57
|
Update of /cvsroot/arianne/stendhal/src/games/stendhal/client/gui In directory 23jxhf1.ch3.sourceforge.com:/tmp/cvs-serv2411/src/games/stendhal/client/gui Modified Files: FormatTextParser.java Log Message: exchanging !text.isEmpty() with text.length>0 Index: FormatTextParser.java =================================================================== RCS file: /cvsroot/arianne/stendhal/src/games/stendhal/client/gui/FormatTextParser.java,v retrieving revision 1.8 retrieving revision 1.9 diff -C2 -d -r1.8 -r1.9 *** FormatTextParser.java 2 Mar 2009 14:33:57 -0000 1.8 --- FormatTextParser.java 2 Mar 2009 16:07:39 -0000 1.9 *************** *** 26,30 **** int unquotedIndex, quotedIndex; ! while (!text.isEmpty()) { unquotedIndex = text.indexOf('#', startIndex); if (unquotedIndex == -1) { --- 26,30 ---- int unquotedIndex, quotedIndex; ! while (text.length() > 0) { unquotedIndex = text.indexOf('#', startIndex); if (unquotedIndex == -1) { |