From: Martin F. <mar...@us...> - 2008-02-22 23:25:30
|
Update of /cvsroot/arianne/stendhal/src/games/stendhal/server/actions In directory sc8-pr-cvs11.sourceforge.net:/tmp/cvs-serv23168/src/games/stendhal/server/actions Modified Files: PlayersQuery.java Log Message: replace StringBuffer by the newer, preferred StringBuilder Index: PlayersQuery.java =================================================================== RCS file: /cvsroot/arianne/stendhal/src/games/stendhal/server/actions/PlayersQuery.java,v retrieving revision 1.47 retrieving revision 1.48 diff -C2 -d -r1.47 -r1.48 *** PlayersQuery.java 22 Jan 2008 22:23:22 -0000 1.47 --- PlayersQuery.java 22 Feb 2008 23:25:28 -0000 1.48 *************** *** 56,60 **** public void execute(Player p) { ! StringBuffer text = new StringBuffer(p.getTitle()); if (p.isGhost()) { --- 56,60 ---- public void execute(Player p) { ! StringBuilder text = new StringBuilder(p.getTitle()); if (p.isGhost()) { *************** *** 69,77 **** } }); - } else { rules.getOnlinePlayers().forFilteredPlayersExecute(new Task<Player>() { public void execute(Player p) { ! StringBuffer text = new StringBuffer(p.getTitle()); text.append("("); --- 69,76 ---- } }); } else { rules.getOnlinePlayers().forFilteredPlayersExecute(new Task<Player>() { public void execute(Player p) { ! StringBuilder text = new StringBuilder(p.getTitle()); text.append("("); *************** *** 85,91 **** return !o.isGhost(); } - }); - } --- 84,88 ---- |