1.1 --- a/samples/gc/test/org/apidesign/gc/CompilerSurprisesTest.java Wed Oct 15 21:39:35 2008 +0200
1.2 +++ b/samples/gc/test/org/apidesign/gc/CompilerSurprisesTest.java Wed Oct 15 21:48:18 2008 +0200
1.3 @@ -20,7 +20,8 @@
1.4 public void checkThatTheValueCanDisapper() {
1.5 String retValue = factory();
1.6 retValue = null;
1.7 - assertGC("Nobody holds the string value anymore. It can be GCed.", cache);
1.8 + assertGC("Nobody holds the string value anymore." +
1.9 + "It can be GCed.", cache);
1.10 }
1.11 // FINISH: compiler.surprises.intro
1.12
1.13 @@ -29,7 +30,8 @@
1.14 public void obviouslyWithoutClearingTheReferenceItCannotBeGCed() {
1.15 String retValue = factory();
1.16 // commented out: retValue = null;
1.17 - assertNotGC("The reference is still on stack. It cannot be GCed.", cache);
1.18 + assertNotGC("The reference is still on stack." +
1.19 + "It cannot be GCed.", cache);
1.20 }
1.21 // END: compiler.surprises.error
1.22