Separation complete

This commit is contained in:
Bruce Eckel 2016-12-07 10:34:41 -08:00
parent 7da525bf37
commit d863e0fffb
30 changed files with 36 additions and 36 deletions

View File

@ -1,4 +1,4 @@
// concurrent/AtomicEvenSupplier.java // lowlevel/AtomicEvenSupplier.java
// (c)2016 MindView LLC: see Copyright.txt // (c)2016 MindView LLC: see Copyright.txt
// We make no guarantees that this code is fit for any purpose. // We make no guarantees that this code is fit for any purpose.
// Visit http://OnJava8.com for more book information. // Visit http://OnJava8.com for more book information.

View File

@ -1,4 +1,4 @@
// concurrent/AtomicIntegerTest.java // lowlevel/AtomicIntegerTest.java
// (c)2016 MindView LLC: see Copyright.txt // (c)2016 MindView LLC: see Copyright.txt
// We make no guarantees that this code is fit for any purpose. // We make no guarantees that this code is fit for any purpose.
// Visit http://OnJava8.com for more book information. // Visit http://OnJava8.com for more book information.

View File

@ -1,4 +1,4 @@
// concurrent/Atomicity.java // lowlevel/Atomicity.java
// (c)2016 MindView LLC: see Copyright.txt // (c)2016 MindView LLC: see Copyright.txt
// We make no guarantees that this code is fit for any purpose. // We make no guarantees that this code is fit for any purpose.
// Visit http://OnJava8.com for more book information. // Visit http://OnJava8.com for more book information.

View File

@ -1,4 +1,4 @@
// concurrent/AtomicityTest.java // lowlevel/AtomicityTest.java
// (c)2016 MindView LLC: see Copyright.txt // (c)2016 MindView LLC: see Copyright.txt
// We make no guarantees that this code is fit for any purpose. // We make no guarantees that this code is fit for any purpose.
// Visit http://OnJava8.com for more book information. // Visit http://OnJava8.com for more book information.

View File

@ -1,4 +1,4 @@
// concurrent/AttemptLocking.java // lowlevel/AttemptLocking.java
// (c)2016 MindView LLC: see Copyright.txt // (c)2016 MindView LLC: see Copyright.txt
// We make no guarantees that this code is fit for any purpose. // We make no guarantees that this code is fit for any purpose.
// Visit http://OnJava8.com for more book information. // Visit http://OnJava8.com for more book information.

View File

@ -1,4 +1,4 @@
// concurrent/CaptureUncaughtException.java // lowlevel/CaptureUncaughtException.java
// (c)2016 MindView LLC: see Copyright.txt // (c)2016 MindView LLC: see Copyright.txt
// We make no guarantees that this code is fit for any purpose. // We make no guarantees that this code is fit for any purpose.
// Visit http://OnJava8.com for more book information. // Visit http://OnJava8.com for more book information.

View File

@ -1,4 +1,4 @@
// concurrent/CriticalSection.java // lowlevel/CriticalSection.java
// (c)2016 MindView LLC: see Copyright.txt // (c)2016 MindView LLC: see Copyright.txt
// We make no guarantees that this code is fit for any purpose. // We make no guarantees that this code is fit for any purpose.
// Visit http://OnJava8.com for more book information. // Visit http://OnJava8.com for more book information.

View File

@ -1,4 +1,4 @@
// concurrent/DelayQueueDemo.java // lowlevel/DelayQueueDemo.java
// (c)2016 MindView LLC: see Copyright.txt // (c)2016 MindView LLC: see Copyright.txt
// We make no guarantees that this code is fit for any purpose. // We make no guarantees that this code is fit for any purpose.
// Visit http://OnJava8.com for more book information. // Visit http://OnJava8.com for more book information.

View File

@ -1,4 +1,4 @@
// concurrent/EvenChecker.java // lowlevel/EvenChecker.java
// (c)2016 MindView LLC: see Copyright.txt // (c)2016 MindView LLC: see Copyright.txt
// We make no guarantees that this code is fit for any purpose. // We make no guarantees that this code is fit for any purpose.
// Visit http://OnJava8.com for more book information. // Visit http://OnJava8.com for more book information.

View File

@ -1,4 +1,4 @@
// concurrent/EvenSupplier.java // lowlevel/EvenSupplier.java
// (c)2016 MindView LLC: see Copyright.txt // (c)2016 MindView LLC: see Copyright.txt
// We make no guarantees that this code is fit for any purpose. // We make no guarantees that this code is fit for any purpose.
// Visit http://OnJava8.com for more book information. // Visit http://OnJava8.com for more book information.

View File

@ -1,4 +1,4 @@
// concurrent/ExceptionThread.java // lowlevel/ExceptionThread.java
// (c)2016 MindView LLC: see Copyright.txt // (c)2016 MindView LLC: see Copyright.txt
// We make no guarantees that this code is fit for any purpose. // We make no guarantees that this code is fit for any purpose.
// Visit http://OnJava8.com for more book information. // Visit http://OnJava8.com for more book information.

View File

@ -1,4 +1,4 @@
// concurrent/ExplicitCriticalSection.java // lowlevel/ExplicitCriticalSection.java
// (c)2016 MindView LLC: see Copyright.txt // (c)2016 MindView LLC: see Copyright.txt
// We make no guarantees that this code is fit for any purpose. // We make no guarantees that this code is fit for any purpose.
// Visit http://OnJava8.com for more book information. // Visit http://OnJava8.com for more book information.

View File

@ -1,4 +1,4 @@
// concurrent/GreenhouseScheduler.java // lowlevel/GreenhouseScheduler.java
// (c)2016 MindView LLC: see Copyright.txt // (c)2016 MindView LLC: see Copyright.txt
// We make no guarantees that this code is fit for any purpose. // We make no guarantees that this code is fit for any purpose.
// Visit http://OnJava8.com for more book information. // Visit http://OnJava8.com for more book information.

View File

@ -1,4 +1,4 @@
// concurrent/HorseRace.java // lowlevel/HorseRace.java
// (c)2016 MindView LLC: see Copyright.txt // (c)2016 MindView LLC: see Copyright.txt
// We make no guarantees that this code is fit for any purpose. // We make no guarantees that this code is fit for any purpose.
// Visit http://OnJava8.com for more book information. // Visit http://OnJava8.com for more book information.

View File

@ -1,4 +1,4 @@
// concurrent/IntSupplier.java // lowlevel/IntSupplier.java
// (c)2016 MindView LLC: see Copyright.txt // (c)2016 MindView LLC: see Copyright.txt
// We make no guarantees that this code is fit for any purpose. // We make no guarantees that this code is fit for any purpose.
// Visit http://OnJava8.com for more book information. // Visit http://OnJava8.com for more book information.

View File

@ -1,4 +1,4 @@
// concurrent/MutexEvenSupplier.java // lowlevel/MutexEvenSupplier.java
// (c)2016 MindView LLC: see Copyright.txt // (c)2016 MindView LLC: see Copyright.txt
// We make no guarantees that this code is fit for any purpose. // We make no guarantees that this code is fit for any purpose.
// Visit http://OnJava8.com for more book information. // Visit http://OnJava8.com for more book information.

View File

@ -1,4 +1,4 @@
// concurrent/NaiveExceptionHandling.java // lowlevel/NaiveExceptionHandling.java
// (c)2016 MindView LLC: see Copyright.txt // (c)2016 MindView LLC: see Copyright.txt
// We make no guarantees that this code is fit for any purpose. // We make no guarantees that this code is fit for any purpose.
// Visit http://OnJava8.com for more book information. // Visit http://OnJava8.com for more book information.

View File

@ -1,4 +1,4 @@
// concurrent/NumberOfProcessors.java // lowlevel/NumberOfProcessors.java
// (c)2016 MindView LLC: see Copyright.txt // (c)2016 MindView LLC: see Copyright.txt
// We make no guarantees that this code is fit for any purpose. // We make no guarantees that this code is fit for any purpose.
// Visit http://OnJava8.com for more book information. // Visit http://OnJava8.com for more book information.

View File

@ -1,4 +1,4 @@
// concurrent/PriorityBlockingQueueDemo.java // lowlevel/PriorityBlockingQueueDemo.java
// (c)2016 MindView LLC: see Copyright.txt // (c)2016 MindView LLC: see Copyright.txt
// We make no guarantees that this code is fit for any purpose. // We make no guarantees that this code is fit for any purpose.
// Visit http://OnJava8.com for more book information. // Visit http://OnJava8.com for more book information.

View File

@ -1,4 +1,4 @@
// concurrent/QuittableTask.java // lowlevel/QuittableTask.java
// (c)2016 MindView LLC: see Copyright.txt // (c)2016 MindView LLC: see Copyright.txt
// We make no guarantees that this code is fit for any purpose. // We make no guarantees that this code is fit for any purpose.
// Visit http://OnJava8.com for more book information. // Visit http://OnJava8.com for more book information.

View File

@ -1,4 +1,4 @@
// concurrent/QuittingTasks.java // lowlevel/QuittingTasks.java
// (c)2016 MindView LLC: see Copyright.txt // (c)2016 MindView LLC: see Copyright.txt
// We make no guarantees that this code is fit for any purpose. // We make no guarantees that this code is fit for any purpose.
// Visit http://OnJava8.com for more book information. // Visit http://OnJava8.com for more book information.

View File

@ -1,4 +1,4 @@
// concurrent/SerialNumberChecker.java // lowlevel/SerialNumberChecker.java
// (c)2016 MindView LLC: see Copyright.txt // (c)2016 MindView LLC: see Copyright.txt
// We make no guarantees that this code is fit for any purpose. // We make no guarantees that this code is fit for any purpose.
// Visit http://OnJava8.com for more book information. // Visit http://OnJava8.com for more book information.

View File

@ -1,4 +1,4 @@
// concurrent/SerialNumberSupplier.java // lowlevel/SerialNumberSupplier.java
// (c)2016 MindView LLC: see Copyright.txt // (c)2016 MindView LLC: see Copyright.txt
// We make no guarantees that this code is fit for any purpose. // We make no guarantees that this code is fit for any purpose.
// Visit http://OnJava8.com for more book information. // Visit http://OnJava8.com for more book information.

View File

@ -1,4 +1,4 @@
// concurrent/SettingDefaultHandler.java // lowlevel/SettingDefaultHandler.java
// (c)2016 MindView LLC: see Copyright.txt // (c)2016 MindView LLC: see Copyright.txt
// We make no guarantees that this code is fit for any purpose. // We make no guarantees that this code is fit for any purpose.
// Visit http://OnJava8.com for more book information. // Visit http://OnJava8.com for more book information.

View File

@ -1,4 +1,4 @@
// concurrent/SwallowedException.java // lowlevel/SwallowedException.java
// (c)2016 MindView LLC: see Copyright.txt // (c)2016 MindView LLC: see Copyright.txt
// We make no guarantees that this code is fit for any purpose. // We make no guarantees that this code is fit for any purpose.
// Visit http://OnJava8.com for more book information. // Visit http://OnJava8.com for more book information.

View File

@ -1,4 +1,4 @@
// concurrent/SyncObject.java // lowlevel/SyncObject.java
// (c)2016 MindView LLC: see Copyright.txt // (c)2016 MindView LLC: see Copyright.txt
// We make no guarantees that this code is fit for any purpose. // We make no guarantees that this code is fit for any purpose.
// Visit http://OnJava8.com for more book information. // Visit http://OnJava8.com for more book information.

View File

@ -1,4 +1,4 @@
// concurrent/SynchronizedEvenSupplier.java // lowlevel/SynchronizedEvenSupplier.java
// (c)2016 MindView LLC: see Copyright.txt // (c)2016 MindView LLC: see Copyright.txt
// We make no guarantees that this code is fit for any purpose. // We make no guarantees that this code is fit for any purpose.
// Visit http://OnJava8.com for more book information. // Visit http://OnJava8.com for more book information.

View File

@ -1,4 +1,4 @@
// concurrent/ThreadSize.java // lowlevel/ThreadSize.java
// (c)2016 MindView LLC: see Copyright.txt // (c)2016 MindView LLC: see Copyright.txt
// We make no guarantees that this code is fit for any purpose. // We make no guarantees that this code is fit for any purpose.
// Visit http://OnJava8.com for more book information. // Visit http://OnJava8.com for more book information.

View File

@ -1,4 +1,4 @@
// concurrent/WorkStealingPool.java // lowlevel/WorkStealingPool.java
// (c)2016 MindView LLC: see Copyright.txt // (c)2016 MindView LLC: see Copyright.txt
// We make no guarantees that this code is fit for any purpose. // We make no guarantees that this code is fit for any purpose.
// Visit http://OnJava8.com for more book information. // Visit http://OnJava8.com for more book information.

View File

@ -67,8 +67,8 @@ public class AllOps {
x = (char)(x - y); x = (char)(x - y);
x++; x++;
x--; x--;
x = (char)+y; x = (char) + y;
x = (char)-y; x = (char) - y;
// Relational and logical: // Relational and logical:
f(x > y); f(x > y);
f(x >= y); f(x >= y);
@ -117,8 +117,8 @@ public class AllOps {
x = (byte)(x - y); x = (byte)(x - y);
x++; x++;
x--; x--;
x = (byte)+ y; x = (byte) + y;
x = (byte)- y; x = (byte) - y;
// Relational and logical: // Relational and logical:
f(x > y); f(x > y);
f(x >= y); f(x >= y);
@ -167,8 +167,8 @@ public class AllOps {
x = (short)(x - y); x = (short)(x - y);
x++; x++;
x--; x--;
x = (short)+y; x = (short) + y;
x = (short)-y; x = (short) - y;
// Relational and logical: // Relational and logical:
f(x > y); f(x > y);
f(x >= y); f(x >= y);
@ -180,7 +180,7 @@ public class AllOps {
//- f(x && y); //- f(x && y);
//- f(x || y); //- f(x || y);
// Bitwise operators: // Bitwise operators:
x = (short)~y; x = (short) ~ y;
x = (short)(x & y); x = (short)(x & y);
x = (short)(x | y); x = (short)(x | y);
x = (short)(x ^ y); x = (short)(x ^ y);