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 -1
View File
@@ -1,5 +1,5 @@
//
// $Id: Log.java,v 1.6 2004/08/27 02:20:16 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: ClientAdapter.java,v 1.5 2004/08/27 02:20:17 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: InvocationDecoder.java,v 1.2 2004/08/27 02:20:18 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: LoggingListener.java,v 1.3 2004/08/27 02:20:18 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: PresentsPrefs.java,v 1.2 2004/08/27 02:20:18 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: SessionObserver.java,v 1.4 2004/08/27 02:20:18 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: ConMgrStats.java,v 1.5 2004/08/27 02:20:19 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: InvocationCodes.java,v 1.2 2004/08/27 02:20:19 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: TimeBaseCodes.java,v 1.3 2004/08/27 02:20:19 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: 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
@@ -1,5 +1,5 @@
//
// $Id: AuthRequest.java,v 1.12 2004/08/27 02:20:21 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: BootstrapNotification.java,v 1.7 2004/08/27 02:20:22 mdb Exp $
// $Id$
//
// Narya library - tools for developing networked games
// Copyright (C) 2002-2004 Three Rings Design, Inc., All Rights Reserved
@@ -87,7 +87,7 @@ public abstract class Credentials implements Streamable
*/
public String toString ()
{
StringBuffer buf = new StringBuffer("[");
StringBuilder buf = new StringBuilder("[");
toString(buf);
return buf.append("]").toString();
}
@@ -96,7 +96,7 @@ public abstract class Credentials implements Streamable
* An easily extensible method via which derived classes can add to
* {@link #toString()}'s output.
*/
protected void toString (StringBuffer buf)
protected void toString (StringBuilder buf)
{
buf.append("username=").append(_username);
}
@@ -1,5 +1,5 @@
//
// $Id: EventNotification.java,v 1.14 2004/08/27 02:20:22 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: FailureResponse.java,v 1.11 2004/08/27 02:20:22 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: ForwardEventRequest.java,v 1.13 2004/08/27 02:20:22 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: LogoffRequest.java,v 1.7 2004/08/27 02:20:22 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: ObjectResponse.java,v 1.15 2004/08/27 02:20:22 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: PingRequest.java,v 1.10 2004/08/27 02:20:22 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: PongResponse.java,v 1.10 2004/08/27 02:20:22 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: SubscribeRequest.java,v 1.9 2004/08/27 02:20:22 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: UnsubscribeRequest.java,v 1.10 2004/08/27 02:20:22 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: UnsubscribeResponse.java,v 1.2 2004/08/27 02:20:22 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: UsernamePasswordCreds.java,v 1.14 2004/08/27 02:20:22 mdb Exp $
// $Id$
//
// Narya library - tools for developing networked games
// Copyright (C) 2002-2004 Three Rings Design, Inc., All Rights Reserved
@@ -66,7 +66,7 @@ public class UsernamePasswordCreds extends Credentials
}
// documentation inherited
protected void toString (StringBuffer buf)
protected void toString (StringBuilder buf)
{
super.toString(buf);
buf.append(", password=").append(_password);
@@ -386,7 +386,7 @@ public class ClientManager
}
// documentation inherited from interface PresentsServer.Reporter
public void appendReport (StringBuffer report, long now, long sinceLast)
public void appendReport (StringBuilder report, long now, long sinceLast)
{
report.append("* presents.ClientManager:\n");
report.append("- Sessions: ");
@@ -1,5 +1,5 @@
//
// $Id: ClientResolutionListener.java,v 1.4 2004/08/27 02:20:23 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: InvocationDispatcher.java,v 1.2 2004/08/27 02:20:23 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: InvocationException.java,v 1.3 2004/08/27 02:20:23 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: InvocationProvider.java,v 1.9 2004/08/27 02:20:23 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: InvocationSender.java,v 1.4 2004/08/27 02:20:23 mdb Exp $
// $Id$
//
// Narya library - tools for developing networked games
// Copyright (C) 2002-2004 Three Rings Design, Inc., All Rights Reserved
@@ -835,7 +835,7 @@ public class PresentsClient
*/
public String toString ()
{
StringBuffer buf = new StringBuffer("[");
StringBuilder buf = new StringBuilder("[");
toString(buf);
return buf.append("]").toString();
}
@@ -843,7 +843,7 @@ public class PresentsClient
/**
* Derived classes override this to augment stringification.
*/
protected void toString (StringBuffer buf)
protected void toString (StringBuilder buf)
{
buf.append("username=").append(_username);
buf.append(", conn=").append(_conn);
@@ -725,7 +725,7 @@ public class PresentsDObjectMgr
}
// documentation inherited from interface PresentsServer.Reporter
public void appendReport (StringBuffer report, long now, long sinceLast)
public void appendReport (StringBuilder report, long now, long sinceLast)
{
report.append("* presents.PresentsDObjectMgr:\n");
@@ -69,7 +69,7 @@ public class PresentsInvoker extends Invoker
}
// documentation inherited from interface
public void appendReport (StringBuffer buffer, long now, long sinceLast)
public void appendReport (StringBuilder buffer, long now, long sinceLast)
{
buffer.append("* presents.util.Invoker:\n");
buffer.append("- Units executed: ").append(_unitsRun).append("\n");
@@ -63,7 +63,7 @@ public class PresentsServer
* generated a report.
*/
public void appendReport (
StringBuffer buffer, long now, long sinceLast);
StringBuilder buffer, long now, long sinceLast);
}
/** Implementers of this interface will be notified when the server is
@@ -208,7 +208,7 @@ public class PresentsServer
{
long sinceLast = now - _lastReportStamp;
long uptime = now - _serverStartTime;
StringBuffer report = new StringBuffer("State of server report:\n");
StringBuilder report = new StringBuilder("State of server report:\n");
report.append("- Uptime: ");
report.append(StringUtil.intervalToString(uptime)).append(", ");
@@ -1,5 +1,5 @@
//
// $Id: TimeBaseProvider.java,v 1.3 2004/08/27 02:20:23 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: AuthingConnection.java,v 1.10 2004/08/27 02:20:24 mdb Exp $
// $Id$
//
// Narya library - tools for developing networked games
// Copyright (C) 2002-2004 Three Rings Design, Inc., All Rights Reserved
@@ -202,7 +202,7 @@ public class ConnectionManager extends LoopingThread
}
// documentation inherited from interface PresentsServer.Reporter
public void appendReport (StringBuffer report, long now, long sinceLast)
public void appendReport (StringBuilder report, long now, long sinceLast)
{
long bytesIn, bytesOut, msgsIn, msgsOut;
synchronized (this) {
@@ -1,5 +1,5 @@
//
// $Id: ConnectionObserver.java,v 1.7 2004/08/27 02:20:24 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: MessageHandler.java,v 1.3 2004/08/27 02:20:24 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: NetEventHandler.java,v 1.7 2004/08/27 02:20:24 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: RunningConnection.java,v 1.13 2004/08/27 02:20:24 mdb Exp $
// $Id$
//
// Narya library - tools for developing networked games
// Copyright (C) 2002-2004 Three Rings Design, Inc., All Rights Reserved
@@ -246,8 +246,8 @@ public class GenDObjectTask extends Task
}
// generate our fields section and our methods section
StringBuffer fsection = new StringBuffer();
StringBuffer msection = new StringBuffer();
StringBuilder fsection = new StringBuilder();
StringBuilder msection = new StringBuilder();
for (int ii = 0; ii < flist.size(); ii++) {
Field f = (Field)flist.get(ii);
Class ftype = f.getType();
@@ -131,7 +131,7 @@ public abstract class InvocationTask extends Task
public String getArgList (boolean skipFirst)
{
StringBuffer buf = new StringBuffer();
StringBuilder buf = new StringBuilder();
Class[] args = method.getParameterTypes();
for (int ii = skipFirst ? 1 : 0; ii < args.length; ii++) {
if (buf.length() > 0) {
@@ -145,7 +145,7 @@ public abstract class InvocationTask extends Task
public String getWrappedArgList (boolean skipFirst)
{
StringBuffer buf = new StringBuffer();
StringBuilder buf = new StringBuilder();
Class[] args = method.getParameterTypes();
for (int ii = (skipFirst ? 1 : 0); ii < args.length; ii++) {
if (buf.length() > 0) {
@@ -168,7 +168,7 @@ public abstract class InvocationTask extends Task
public String getUnwrappedArgList (boolean listenerMode)
{
StringBuffer buf = new StringBuffer();
StringBuilder buf = new StringBuilder();
Class[] args = method.getParameterTypes();
for (int ii = (listenerMode ? 0 : 1); ii < args.length; ii++) {
if (buf.length() > 0) {
@@ -1,5 +1,5 @@
//
// $Id: ClassUtil.java,v 1.6 2004/08/27 02:20:26 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: PresentsContext.java,v 1.7 2004/08/27 02:20:26 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: SafeSubscriber.java,v 1.6 2004/08/27 02:20:26 mdb Exp $
// $Id$
//
// Narya library - tools for developing networked games
// Copyright (C) 2002-2004 Three Rings Design, Inc., All Rights Reserved