Loading src/main/java/ch15/TestSyncTest.java +2 −3 Changes for src/main/java/ch15/TestSyncTest.java: 2 added lines, 3 removed lines. Original line number Diff line number Diff line Loading @@ -14,7 +14,7 @@ public class TestSyncTest { pool.shutdown(); // make sure the pool has finished running all the updates before printing the output if (pool.awaitTermination(1, TimeUnit.MINUTES)) { System.out.println("balance.balance = " + balance.balance); System.out.println("balance = " + balance.balance); } } Loading @@ -27,8 +27,7 @@ class Balance { int balance = 0; public void increment() { int i = balance; balance = i + 1; balance++; } } Loading
src/main/java/ch15/TestSyncTest.java +2 −3 Changes for src/main/java/ch15/TestSyncTest.java: 2 added lines, 3 removed lines. Original line number Diff line number Diff line Loading @@ -14,7 +14,7 @@ public class TestSyncTest { pool.shutdown(); // make sure the pool has finished running all the updates before printing the output if (pool.awaitTermination(1, TimeUnit.MINUTES)) { System.out.println("balance.balance = " + balance.balance); System.out.println("balance = " + balance.balance); } } Loading @@ -27,8 +27,7 @@ class Balance { int balance = 0; public void increment() { int i = balance; balance = i + 1; balance++; } }