Skip to content
This repository was archived by the owner on Feb 8, 2019. It is now read-only.

Commit ee420a9

Browse files
committed
tweak: remove some synchronization
1 parent 57a3d2a commit ee420a9

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/com/danga/MemCached/MemCachedClient.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -408,7 +408,7 @@ public boolean delete( String key, Integer hashCode, Date expiry ) {
408408
return false;
409409

410410
// build command
411-
StringBuffer command = new StringBuffer( "delete " ).append( key );
411+
StringBuilder command = new StringBuilder( "delete " ).append( key );
412412
if ( expiry != null )
413413
command.append( " " + expiry.getTime() / 1000 );
414414

@@ -1074,7 +1074,7 @@ private long incrdecr( String cmdname, String key, long inc, Integer hashCode )
10741074
// get SockIO obj for given cache key
10751075
SockIOPool.SockIO sock = SockIOPool.getInstance( poolName ).getSock(key, hashCode);
10761076

1077-
if (sock == null)
1077+
if ( sock == null )
10781078
return -1;
10791079

10801080
try {

0 commit comments

Comments
 (0)