StringBuffer -> StringBuilder.

git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@4191 542714f4-19e9-0310-aa3c-eee0fc999fb1
This commit is contained in:
Ray Greenwell
2006-06-13 22:42:20 +00:00
parent 3e4ff3564d
commit 79c6427c21
341 changed files with 397 additions and 397 deletions
@@ -1,5 +1,5 @@
//
// $Id: AccessController.java,v 1.2 2004/08/27 02:20:20 mdb Exp $
// $Id$
//
// Narya library - tools for developing networked games
// Copyright (C) 2002-2004 Three Rings Design, Inc., All Rights Reserved
@@ -1,5 +1,5 @@
//
// $Id: AttributeChangeListener.java,v 1.3 2004/08/27 02:20:20 mdb Exp $
// $Id$
//
// Narya library - tools for developing networked games
// Copyright (C) 2002-2004 Three Rings Design, Inc., All Rights Reserved
@@ -172,7 +172,7 @@ public class AttributeChangedEvent extends NamedEvent
}
// documentation inherited
protected void toString (StringBuffer buf)
protected void toString (StringBuilder buf)
{
buf.append("CHANGE:");
super.toString(buf);
@@ -1,5 +1,5 @@
//
// $Id: ChangeListener.java,v 1.2 2004/08/27 02:20:20 mdb Exp $
// $Id$
//
// Narya library - tools for developing networked games
// Copyright (C) 2002-2004 Three Rings Design, Inc., All Rights Reserved
@@ -1,5 +1,5 @@
//
// $Id: CompoundEvent.java,v 1.11 2004/08/27 02:20:20 mdb Exp $
// $Id$
//
// Narya library - tools for developing networked games
// Copyright (C) 2002-2004 Three Rings Design, Inc., All Rights Reserved
@@ -149,7 +149,7 @@ public class CompoundEvent extends DEvent
}
// documentation inherited
protected void toString (StringBuffer buf)
protected void toString (StringBuilder buf)
{
buf.append("COMPOUND:");
super.toString(buf);
@@ -1,5 +1,5 @@
//
// $Id: DEvent.java,v 1.15 2004/08/27 02:20:20 mdb Exp $
// $Id$
//
// Narya library - tools for developing networked games
// Copyright (C) 2002-2004 Three Rings Design, Inc., All Rights Reserved
@@ -121,7 +121,7 @@ public abstract class DEvent implements Streamable
*/
public String toString ()
{
StringBuffer buf = new StringBuffer();
StringBuilder buf = new StringBuilder();
buf.append("[");
toString(buf);
buf.append("]");
@@ -133,7 +133,7 @@ public abstract class DEvent implements Streamable
* to call <code>super.toString()</code>) to append the derived class
* specific event information to the string buffer.
*/
protected void toString (StringBuffer buf)
protected void toString (StringBuilder buf)
{
buf.append("targetOid=").append(_toid);
buf.append(", sourceOid=").append(_soid);
@@ -628,7 +628,7 @@ public class DObject
*/
public String which ()
{
StringBuffer buf = new StringBuffer();
StringBuilder buf = new StringBuilder();
which(buf);
return buf.toString();
}
@@ -636,7 +636,7 @@ public class DObject
/**
* Used to briefly describe this distributed object.
*/
protected void which (StringBuffer buf)
protected void which (StringBuilder buf)
{
buf.append(StringUtil.shortClassName(this));
buf.append(":").append(_oid);
@@ -647,7 +647,7 @@ public class DObject
*/
public String toString ()
{
StringBuffer buf = new StringBuffer();
StringBuilder buf = new StringBuilder();
toString(buf);
return buf.append("]").toString();
}
@@ -655,7 +655,7 @@ public class DObject
/**
* Generates a string representation of this object.
*/
protected void toString (StringBuffer buf)
protected void toString (StringBuilder buf)
{
StringUtil.fieldsToString(buf, this, "\n");
if (buf.length() > 0) {
@@ -405,7 +405,7 @@ public class DSet<E extends DSet.Entry>
*/
public String toString ()
{
StringBuffer buf = new StringBuffer("(");
StringBuilder buf = new StringBuilder("(");
String prefix = "";
for (int i = 0; i < _entries.length; i++) {
Entry elem = _entries[i];
@@ -1,5 +1,5 @@
//
// $Id: ElementUpdateListener.java,v 1.2 2004/08/27 02:20:20 mdb Exp $
// $Id$
//
// Narya library - tools for developing networked games
// Copyright (C) 2002-2004 Three Rings Design, Inc., All Rights Reserved
@@ -1,5 +1,5 @@
//
// $Id: ElementUpdatedEvent.java,v 1.9 2004/08/27 02:20:20 mdb Exp $
// $Id$
//
// Narya library - tools for developing networked games
// Copyright (C) 2002-2004 Three Rings Design, Inc., All Rights Reserved
@@ -181,7 +181,7 @@ public class ElementUpdatedEvent extends NamedEvent
}
// documentation inherited
protected void toString (StringBuffer buf)
protected void toString (StringBuilder buf)
{
buf.append("UPDATE:");
super.toString(buf);
@@ -101,7 +101,7 @@ public class EntryAddedEvent extends NamedEvent
}
// documentation inherited
protected void toString (StringBuffer buf)
protected void toString (StringBuilder buf)
{
buf.append("ELADD:");
super.toString(buf);
@@ -105,7 +105,7 @@ public class EntryRemovedEvent extends NamedEvent
}
// documentation inherited
protected void toString (StringBuffer buf)
protected void toString (StringBuilder buf)
{
buf.append("ELREM:");
super.toString(buf);
@@ -107,7 +107,7 @@ public class EntryUpdatedEvent extends NamedEvent
}
// documentation inherited
protected void toString (StringBuffer buf)
protected void toString (StringBuilder buf)
{
buf.append("ELUPD:");
super.toString(buf);
@@ -1,5 +1,5 @@
//
// $Id: EventListener.java,v 1.3 2004/08/27 02:20:20 mdb Exp $
// $Id$
//
// Narya library - tools for developing networked games
// Copyright (C) 2002-2004 Three Rings Design, Inc., All Rights Reserved
@@ -1,5 +1,5 @@
//
// $Id: InvocationNotificationEvent.java,v 1.3 2004/08/27 02:20:20 mdb Exp $
// $Id$
//
// Narya library - tools for developing networked games
// Copyright (C) 2002-2004 Three Rings Design, Inc., All Rights Reserved
@@ -102,7 +102,7 @@ public class InvocationNotificationEvent extends DEvent
}
// documentation inherited
protected void toString (StringBuffer buf)
protected void toString (StringBuilder buf)
{
buf.append("INOT:");
super.toString(buf);
@@ -1,5 +1,5 @@
//
// $Id: InvocationRequestEvent.java,v 1.3 2004/08/27 02:20:20 mdb Exp $
// $Id$
//
// Narya library - tools for developing networked games
// Copyright (C) 2002-2004 Three Rings Design, Inc., All Rights Reserved
@@ -99,7 +99,7 @@ public class InvocationRequestEvent extends DEvent
}
// documentation inherited
protected void toString (StringBuffer buf)
protected void toString (StringBuilder buf)
{
buf.append("IREQ:");
super.toString(buf);
@@ -1,5 +1,5 @@
//
// $Id: InvocationResponseEvent.java,v 1.3 2004/08/27 02:20:20 mdb Exp $
// $Id$
//
// Narya library - tools for developing networked games
// Copyright (C) 2002-2004 Three Rings Design, Inc., All Rights Reserved
@@ -99,7 +99,7 @@ public class InvocationResponseEvent extends DEvent
}
// documentation inherited
protected void toString (StringBuffer buf)
protected void toString (StringBuilder buf)
{
buf.append("IRSP:");
super.toString(buf);
@@ -1,5 +1,5 @@
//
// $Id: MessageEvent.java,v 1.11 2004/08/27 02:20:20 mdb Exp $
// $Id$
//
// Narya library - tools for developing networked games
// Copyright (C) 2002-2004 Three Rings Design, Inc., All Rights Reserved
@@ -95,7 +95,7 @@ public class MessageEvent extends NamedEvent
}
// documentation inherited
protected void toString (StringBuffer buf)
protected void toString (StringBuilder buf)
{
buf.append("MSG:");
super.toString(buf);
@@ -1,5 +1,5 @@
//
// $Id: MessageListener.java,v 1.3 2004/08/27 02:20:20 mdb Exp $
// $Id$
//
// Narya library - tools for developing networked games
// Copyright (C) 2002-2004 Three Rings Design, Inc., All Rights Reserved
@@ -56,7 +56,7 @@ public abstract class NamedEvent extends DEvent
return _name;
}
protected void toString (StringBuffer buf)
protected void toString (StringBuilder buf)
{
super.toString(buf);
buf.append(", name=").append(_name);
@@ -1,5 +1,5 @@
//
// $Id: NoSuchObjectException.java,v 1.3 2004/08/27 02:20:20 mdb Exp $
// $Id$
//
// Narya library - tools for developing networked games
// Copyright (C) 2002-2004 Three Rings Design, Inc., All Rights Reserved
@@ -1,5 +1,5 @@
//
// $Id: ObjectAccessException.java,v 1.6 2004/08/27 02:20:20 mdb Exp $
// $Id$
//
// Narya library - tools for developing networked games
// Copyright (C) 2002-2004 Three Rings Design, Inc., All Rights Reserved
@@ -1,5 +1,5 @@
//
// $Id: ObjectAddedEvent.java,v 1.9 2004/08/27 02:20:20 mdb Exp $
// $Id$
//
// Narya library - tools for developing networked games
// Copyright (C) 2002-2004 Three Rings Design, Inc., All Rights Reserved
@@ -83,7 +83,7 @@ public class ObjectAddedEvent extends NamedEvent
}
// documentation inherited
protected void toString (StringBuffer buf)
protected void toString (StringBuilder buf)
{
buf.append("OBJADD:");
super.toString(buf);
@@ -1,5 +1,5 @@
//
// $Id: ObjectDeathListener.java,v 1.3 2004/08/27 02:20:20 mdb Exp $
// $Id$
//
// Narya library - tools for developing networked games
// Copyright (C) 2002-2004 Three Rings Design, Inc., All Rights Reserved
@@ -1,5 +1,5 @@
//
// $Id: ObjectDestroyedEvent.java,v 1.6 2004/08/27 02:20:20 mdb Exp $
// $Id$
//
// Narya library - tools for developing networked games
// Copyright (C) 2002-2004 Three Rings Design, Inc., All Rights Reserved
@@ -67,7 +67,7 @@ public class ObjectDestroyedEvent extends DEvent
}
// documentation inherited
protected void toString (StringBuffer buf)
protected void toString (StringBuilder buf)
{
buf.append("DESTROY:");
super.toString(buf);
@@ -1,5 +1,5 @@
//
// $Id: ObjectRemovedEvent.java,v 1.9 2004/08/27 02:20:20 mdb Exp $
// $Id$
//
// Narya library - tools for developing networked games
// Copyright (C) 2002-2004 Three Rings Design, Inc., All Rights Reserved
@@ -84,7 +84,7 @@ public class ObjectRemovedEvent extends NamedEvent
}
// documentation inherited
protected void toString (StringBuffer buf)
protected void toString (StringBuilder buf)
{
buf.append("OBJREM:");
super.toString(buf);
@@ -1,5 +1,5 @@
//
// $Id: OidList.java,v 1.7 2004/08/27 02:20:20 mdb Exp $
// $Id$
//
// Narya library - tools for developing networked games
// Copyright (C) 2002-2004 Three Rings Design, Inc., All Rights Reserved
@@ -129,7 +129,7 @@ public class OidList implements Streamable
public String toString ()
{
StringBuffer buf = new StringBuffer();
StringBuilder buf = new StringBuilder();
buf.append("{");
for (int i = 0; i < _size; i++) {
if (i > 0) {
@@ -1,5 +1,5 @@
//
// $Id: OidListListener.java,v 1.3 2004/08/27 02:20:20 mdb Exp $
// $Id$
//
// Narya library - tools for developing networked games
// Copyright (C) 2002-2004 Three Rings Design, Inc., All Rights Reserved
@@ -1,5 +1,5 @@
//
// $Id: ProxySubscriber.java,v 1.2 2004/08/27 02:20:20 mdb Exp $
// $Id$
//
// Narya library - tools for developing networked games
// Copyright (C) 2002-2004 Three Rings Design, Inc., All Rights Reserved
@@ -1,5 +1,5 @@
//
// $Id: ReleaseLockEvent.java,v 1.9 2004/08/27 02:20:20 mdb Exp $
// $Id$
//
// Narya library - tools for developing networked games
// Copyright (C) 2002-2004 Three Rings Design, Inc., All Rights Reserved
@@ -73,7 +73,7 @@ public class ReleaseLockEvent extends NamedEvent
return false;
}
protected void toString (StringBuffer buf)
protected void toString (StringBuilder buf)
{
buf.append("UNLOCK:");
super.toString(buf);
@@ -1,5 +1,5 @@
//
// $Id: RootDObjectManager.java,v 1.2 2004/08/27 02:20:20 mdb Exp $
// $Id$
//
// Narya library - tools for developing networked games
// Copyright (C) 2002-2004 Three Rings Design, Inc., All Rights Reserved
@@ -1,5 +1,5 @@
//
// $Id: SetAdapter.java,v 1.2 2004/08/27 02:20:20 mdb Exp $
// $Id$
//
// Narya library - tools for developing networked games
// Copyright (C) 2002-2004 Three Rings Design, Inc., All Rights Reserved
@@ -1,5 +1,5 @@
//
// $Id: SetListener.java,v 1.4 2004/08/27 02:20:20 mdb Exp $
// $Id$
//
// Narya library - tools for developing networked games
// Copyright (C) 2002-2004 Three Rings Design, Inc., All Rights Reserved