Remove the only String.format() call that could possibly have any effect on performance. Left the others, they're more readable.

pull/307/head
Brett Wooldridge 10 years ago
parent ac8cb59256
commit 5ff480a62e

@ -85,7 +85,9 @@ public abstract class ConnectionProxy implements IHikariConnectionProxy
@Override
public String toString()
{
return String.format("%s(%s) wrapping %s", this.getClass().getSimpleName(), System.identityHashCode(this), delegate);
final StringBuilder sb = new StringBuilder(64);
sb.append(this.getClass().getSimpleName()).append('(').append(System.identityHashCode(this)).append(") wrapping ").append(delegate);
return sb.toString();
}
// ***********************************************************************

Loading…
Cancel
Save