Add string cache to pool most commonly used Java strings

This commit is contained in:
James Roseborough
2010-04-06 04:55:57 +00:00
parent 8e34f8bf27
commit a8f129b8cf
2 changed files with 29 additions and 4 deletions

View File

@@ -127,7 +127,7 @@ public class UnaryBinaryOperatorsTest extends TestCase {
// objects should be different
assertNotSame(ia, ib);
assertNotSame(sa, sb);
assertSame(sa, sb);
assertNotSame(ia, ic);
assertNotSame(sa, sc);
@@ -148,7 +148,7 @@ public class UnaryBinaryOperatorsTest extends TestCase {
// objects should be different
assertNotSame(da, db);
assertNotSame(sa, sb);
assertSame(sa, sb);
assertNotSame(da, dc);
assertNotSame(sa, sc);