Make use of StringBuilder for commonly used toString methods.

This commit is contained in:
MobiusDevelopment
2022-09-27 23:38:13 +00:00
parent 463c15f650
commit 237155859e
188 changed files with 2290 additions and 1079 deletions

View File

@@ -682,6 +682,13 @@ public abstract class WorldObject
@Override
public String toString()
{
return getClass().getSimpleName() + ":" + _name + "[" + _objectId + "]";
final StringBuilder sb = new StringBuilder();
sb.append(getClass().getSimpleName());
sb.append(":");
sb.append(_name);
sb.append("[");
sb.append(_objectId);
sb.append("]");
return sb.toString();
}
}