diff --git a/concurrent/AtomicEvenSupplier.java b/lowlevel/AtomicEvenSupplier.java similarity index 94% rename from concurrent/AtomicEvenSupplier.java rename to lowlevel/AtomicEvenSupplier.java index 84104c8f..36648608 100644 --- a/concurrent/AtomicEvenSupplier.java +++ b/lowlevel/AtomicEvenSupplier.java @@ -1,4 +1,4 @@ -// concurrent/AtomicEvenSupplier.java +// lowlevel/AtomicEvenSupplier.java // (c)2016 MindView LLC: see Copyright.txt // We make no guarantees that this code is fit for any purpose. // Visit http://OnJava8.com for more book information. diff --git a/concurrent/AtomicIntegerTest.java b/lowlevel/AtomicIntegerTest.java similarity index 96% rename from concurrent/AtomicIntegerTest.java rename to lowlevel/AtomicIntegerTest.java index 600cd7cf..b3f6cc51 100644 --- a/concurrent/AtomicIntegerTest.java +++ b/lowlevel/AtomicIntegerTest.java @@ -1,4 +1,4 @@ -// concurrent/AtomicIntegerTest.java +// lowlevel/AtomicIntegerTest.java // (c)2016 MindView LLC: see Copyright.txt // We make no guarantees that this code is fit for any purpose. // Visit http://OnJava8.com for more book information. diff --git a/concurrent/Atomicity.java b/lowlevel/Atomicity.java similarity index 97% rename from concurrent/Atomicity.java rename to lowlevel/Atomicity.java index 25ac917b..5ebfbccb 100644 --- a/concurrent/Atomicity.java +++ b/lowlevel/Atomicity.java @@ -1,4 +1,4 @@ -// concurrent/Atomicity.java +// lowlevel/Atomicity.java // (c)2016 MindView LLC: see Copyright.txt // We make no guarantees that this code is fit for any purpose. // Visit http://OnJava8.com for more book information. diff --git a/concurrent/AtomicityTest.java b/lowlevel/AtomicityTest.java similarity index 96% rename from concurrent/AtomicityTest.java rename to lowlevel/AtomicityTest.java index 0f4577f8..fea1594d 100644 --- a/concurrent/AtomicityTest.java +++ b/lowlevel/AtomicityTest.java @@ -1,4 +1,4 @@ -// concurrent/AtomicityTest.java +// lowlevel/AtomicityTest.java // (c)2016 MindView LLC: see Copyright.txt // We make no guarantees that this code is fit for any purpose. // Visit http://OnJava8.com for more book information. diff --git a/concurrent/AttemptLocking.java b/lowlevel/AttemptLocking.java similarity index 97% rename from concurrent/AttemptLocking.java rename to lowlevel/AttemptLocking.java index bcc2f276..08165a6d 100644 --- a/concurrent/AttemptLocking.java +++ b/lowlevel/AttemptLocking.java @@ -1,4 +1,4 @@ -// concurrent/AttemptLocking.java +// lowlevel/AttemptLocking.java // (c)2016 MindView LLC: see Copyright.txt // We make no guarantees that this code is fit for any purpose. // Visit http://OnJava8.com for more book information. diff --git a/concurrent/CaptureUncaughtException.java b/lowlevel/CaptureUncaughtException.java similarity index 97% rename from concurrent/CaptureUncaughtException.java rename to lowlevel/CaptureUncaughtException.java index 32b2fd70..76f36a76 100644 --- a/concurrent/CaptureUncaughtException.java +++ b/lowlevel/CaptureUncaughtException.java @@ -1,4 +1,4 @@ -// concurrent/CaptureUncaughtException.java +// lowlevel/CaptureUncaughtException.java // (c)2016 MindView LLC: see Copyright.txt // We make no guarantees that this code is fit for any purpose. // Visit http://OnJava8.com for more book information. diff --git a/concurrent/CriticalSection.java b/lowlevel/CriticalSection.java similarity index 99% rename from concurrent/CriticalSection.java rename to lowlevel/CriticalSection.java index dba1b9e0..a88c46ba 100644 --- a/concurrent/CriticalSection.java +++ b/lowlevel/CriticalSection.java @@ -1,4 +1,4 @@ -// concurrent/CriticalSection.java +// lowlevel/CriticalSection.java // (c)2016 MindView LLC: see Copyright.txt // We make no guarantees that this code is fit for any purpose. // Visit http://OnJava8.com for more book information. diff --git a/concurrent/DelayQueueDemo.java b/lowlevel/DelayQueueDemo.java similarity index 98% rename from concurrent/DelayQueueDemo.java rename to lowlevel/DelayQueueDemo.java index 9ae60b14..485f235c 100644 --- a/concurrent/DelayQueueDemo.java +++ b/lowlevel/DelayQueueDemo.java @@ -1,4 +1,4 @@ -// concurrent/DelayQueueDemo.java +// lowlevel/DelayQueueDemo.java // (c)2016 MindView LLC: see Copyright.txt // We make no guarantees that this code is fit for any purpose. // Visit http://OnJava8.com for more book information. diff --git a/concurrent/EvenChecker.java b/lowlevel/EvenChecker.java similarity index 97% rename from concurrent/EvenChecker.java rename to lowlevel/EvenChecker.java index 74af645c..1010473f 100644 --- a/concurrent/EvenChecker.java +++ b/lowlevel/EvenChecker.java @@ -1,4 +1,4 @@ -// concurrent/EvenChecker.java +// lowlevel/EvenChecker.java // (c)2016 MindView LLC: see Copyright.txt // We make no guarantees that this code is fit for any purpose. // Visit http://OnJava8.com for more book information. diff --git a/concurrent/EvenSupplier.java b/lowlevel/EvenSupplier.java similarity index 95% rename from concurrent/EvenSupplier.java rename to lowlevel/EvenSupplier.java index 38a92d2d..490f4104 100644 --- a/concurrent/EvenSupplier.java +++ b/lowlevel/EvenSupplier.java @@ -1,4 +1,4 @@ -// concurrent/EvenSupplier.java +// lowlevel/EvenSupplier.java // (c)2016 MindView LLC: see Copyright.txt // We make no guarantees that this code is fit for any purpose. // Visit http://OnJava8.com for more book information. diff --git a/concurrent/ExceptionThread.java b/lowlevel/ExceptionThread.java similarity index 93% rename from concurrent/ExceptionThread.java rename to lowlevel/ExceptionThread.java index 938c1038..67593951 100644 --- a/concurrent/ExceptionThread.java +++ b/lowlevel/ExceptionThread.java @@ -1,4 +1,4 @@ -// concurrent/ExceptionThread.java +// lowlevel/ExceptionThread.java // (c)2016 MindView LLC: see Copyright.txt // We make no guarantees that this code is fit for any purpose. // Visit http://OnJava8.com for more book information. diff --git a/concurrent/ExplicitCriticalSection.java b/lowlevel/ExplicitCriticalSection.java similarity index 98% rename from concurrent/ExplicitCriticalSection.java rename to lowlevel/ExplicitCriticalSection.java index adcd2ea0..1f31556b 100644 --- a/concurrent/ExplicitCriticalSection.java +++ b/lowlevel/ExplicitCriticalSection.java @@ -1,4 +1,4 @@ -// concurrent/ExplicitCriticalSection.java +// lowlevel/ExplicitCriticalSection.java // (c)2016 MindView LLC: see Copyright.txt // We make no guarantees that this code is fit for any purpose. // Visit http://OnJava8.com for more book information. diff --git a/concurrent/GreenhouseScheduler.java b/lowlevel/GreenhouseScheduler.java similarity index 99% rename from concurrent/GreenhouseScheduler.java rename to lowlevel/GreenhouseScheduler.java index 1d52a01a..a7535df3 100644 --- a/concurrent/GreenhouseScheduler.java +++ b/lowlevel/GreenhouseScheduler.java @@ -1,4 +1,4 @@ -// concurrent/GreenhouseScheduler.java +// lowlevel/GreenhouseScheduler.java // (c)2016 MindView LLC: see Copyright.txt // We make no guarantees that this code is fit for any purpose. // Visit http://OnJava8.com for more book information. diff --git a/concurrent/HorseRace.java b/lowlevel/HorseRace.java similarity index 99% rename from concurrent/HorseRace.java rename to lowlevel/HorseRace.java index de84f25d..2f95336e 100644 --- a/concurrent/HorseRace.java +++ b/lowlevel/HorseRace.java @@ -1,4 +1,4 @@ -// concurrent/HorseRace.java +// lowlevel/HorseRace.java // (c)2016 MindView LLC: see Copyright.txt // We make no guarantees that this code is fit for any purpose. // Visit http://OnJava8.com for more book information. diff --git a/concurrent/IntSupplier.java b/lowlevel/IntSupplier.java similarity index 92% rename from concurrent/IntSupplier.java rename to lowlevel/IntSupplier.java index 6c0be8d2..0eb84a2c 100644 --- a/concurrent/IntSupplier.java +++ b/lowlevel/IntSupplier.java @@ -1,4 +1,4 @@ -// concurrent/IntSupplier.java +// lowlevel/IntSupplier.java // (c)2016 MindView LLC: see Copyright.txt // We make no guarantees that this code is fit for any purpose. // Visit http://OnJava8.com for more book information. diff --git a/concurrent/MutexEvenSupplier.java b/lowlevel/MutexEvenSupplier.java similarity index 95% rename from concurrent/MutexEvenSupplier.java rename to lowlevel/MutexEvenSupplier.java index db4c62c9..688c9b3e 100644 --- a/concurrent/MutexEvenSupplier.java +++ b/lowlevel/MutexEvenSupplier.java @@ -1,4 +1,4 @@ -// concurrent/MutexEvenSupplier.java +// lowlevel/MutexEvenSupplier.java // (c)2016 MindView LLC: see Copyright.txt // We make no guarantees that this code is fit for any purpose. // Visit http://OnJava8.com for more book information. diff --git a/concurrent/NaiveExceptionHandling.java b/lowlevel/NaiveExceptionHandling.java similarity index 93% rename from concurrent/NaiveExceptionHandling.java rename to lowlevel/NaiveExceptionHandling.java index 56cf32a1..a247edaf 100644 --- a/concurrent/NaiveExceptionHandling.java +++ b/lowlevel/NaiveExceptionHandling.java @@ -1,4 +1,4 @@ -// concurrent/NaiveExceptionHandling.java +// lowlevel/NaiveExceptionHandling.java // (c)2016 MindView LLC: see Copyright.txt // We make no guarantees that this code is fit for any purpose. // Visit http://OnJava8.com for more book information. diff --git a/concurrent/NumberOfProcessors.java b/lowlevel/NumberOfProcessors.java similarity index 89% rename from concurrent/NumberOfProcessors.java rename to lowlevel/NumberOfProcessors.java index 8acf272f..6728fcd5 100644 --- a/concurrent/NumberOfProcessors.java +++ b/lowlevel/NumberOfProcessors.java @@ -1,4 +1,4 @@ -// concurrent/NumberOfProcessors.java +// lowlevel/NumberOfProcessors.java // (c)2016 MindView LLC: see Copyright.txt // We make no guarantees that this code is fit for any purpose. // Visit http://OnJava8.com for more book information. diff --git a/concurrent/PriorityBlockingQueueDemo.java b/lowlevel/PriorityBlockingQueueDemo.java similarity index 98% rename from concurrent/PriorityBlockingQueueDemo.java rename to lowlevel/PriorityBlockingQueueDemo.java index aa45515b..d7f8648e 100644 --- a/concurrent/PriorityBlockingQueueDemo.java +++ b/lowlevel/PriorityBlockingQueueDemo.java @@ -1,4 +1,4 @@ -// concurrent/PriorityBlockingQueueDemo.java +// lowlevel/PriorityBlockingQueueDemo.java // (c)2016 MindView LLC: see Copyright.txt // We make no guarantees that this code is fit for any purpose. // Visit http://OnJava8.com for more book information. diff --git a/concurrent/QuittableTask.java b/lowlevel/QuittableTask.java similarity index 94% rename from concurrent/QuittableTask.java rename to lowlevel/QuittableTask.java index bd7e80d9..b671bdaf 100644 --- a/concurrent/QuittableTask.java +++ b/lowlevel/QuittableTask.java @@ -1,4 +1,4 @@ -// concurrent/QuittableTask.java +// lowlevel/QuittableTask.java // (c)2016 MindView LLC: see Copyright.txt // We make no guarantees that this code is fit for any purpose. // Visit http://OnJava8.com for more book information. diff --git a/concurrent/QuittingTasks.java b/lowlevel/QuittingTasks.java similarity index 96% rename from concurrent/QuittingTasks.java rename to lowlevel/QuittingTasks.java index 78289266..456b831f 100644 --- a/concurrent/QuittingTasks.java +++ b/lowlevel/QuittingTasks.java @@ -1,4 +1,4 @@ -// concurrent/QuittingTasks.java +// lowlevel/QuittingTasks.java // (c)2016 MindView LLC: see Copyright.txt // We make no guarantees that this code is fit for any purpose. // Visit http://OnJava8.com for more book information. diff --git a/concurrent/SerialNumberChecker.java b/lowlevel/SerialNumberChecker.java similarity index 97% rename from concurrent/SerialNumberChecker.java rename to lowlevel/SerialNumberChecker.java index 0be31b5e..b269e9ec 100644 --- a/concurrent/SerialNumberChecker.java +++ b/lowlevel/SerialNumberChecker.java @@ -1,4 +1,4 @@ -// concurrent/SerialNumberChecker.java +// lowlevel/SerialNumberChecker.java // (c)2016 MindView LLC: see Copyright.txt // We make no guarantees that this code is fit for any purpose. // Visit http://OnJava8.com for more book information. diff --git a/concurrent/SerialNumberSupplier.java b/lowlevel/SerialNumberSupplier.java similarity index 89% rename from concurrent/SerialNumberSupplier.java rename to lowlevel/SerialNumberSupplier.java index 53137d5f..4a170f85 100644 --- a/concurrent/SerialNumberSupplier.java +++ b/lowlevel/SerialNumberSupplier.java @@ -1,4 +1,4 @@ -// concurrent/SerialNumberSupplier.java +// lowlevel/SerialNumberSupplier.java // (c)2016 MindView LLC: see Copyright.txt // We make no guarantees that this code is fit for any purpose. // Visit http://OnJava8.com for more book information. diff --git a/concurrent/SettingDefaultHandler.java b/lowlevel/SettingDefaultHandler.java similarity index 92% rename from concurrent/SettingDefaultHandler.java rename to lowlevel/SettingDefaultHandler.java index a2a71015..17588d6a 100644 --- a/concurrent/SettingDefaultHandler.java +++ b/lowlevel/SettingDefaultHandler.java @@ -1,4 +1,4 @@ -// concurrent/SettingDefaultHandler.java +// lowlevel/SettingDefaultHandler.java // (c)2016 MindView LLC: see Copyright.txt // We make no guarantees that this code is fit for any purpose. // Visit http://OnJava8.com for more book information. diff --git a/concurrent/SwallowedException.java b/lowlevel/SwallowedException.java similarity index 92% rename from concurrent/SwallowedException.java rename to lowlevel/SwallowedException.java index b03015c9..d062d2a1 100644 --- a/concurrent/SwallowedException.java +++ b/lowlevel/SwallowedException.java @@ -1,4 +1,4 @@ -// concurrent/SwallowedException.java +// lowlevel/SwallowedException.java // (c)2016 MindView LLC: see Copyright.txt // We make no guarantees that this code is fit for any purpose. // Visit http://OnJava8.com for more book information. diff --git a/concurrent/SyncObject.java b/lowlevel/SyncObject.java similarity index 96% rename from concurrent/SyncObject.java rename to lowlevel/SyncObject.java index c5f59b33..02104002 100644 --- a/concurrent/SyncObject.java +++ b/lowlevel/SyncObject.java @@ -1,4 +1,4 @@ -// concurrent/SyncObject.java +// lowlevel/SyncObject.java // (c)2016 MindView LLC: see Copyright.txt // We make no guarantees that this code is fit for any purpose. // Visit http://OnJava8.com for more book information. diff --git a/concurrent/SynchronizedEvenSupplier.java b/lowlevel/SynchronizedEvenSupplier.java similarity index 93% rename from concurrent/SynchronizedEvenSupplier.java rename to lowlevel/SynchronizedEvenSupplier.java index 99c6f55f..10b375a1 100644 --- a/concurrent/SynchronizedEvenSupplier.java +++ b/lowlevel/SynchronizedEvenSupplier.java @@ -1,4 +1,4 @@ -// concurrent/SynchronizedEvenSupplier.java +// lowlevel/SynchronizedEvenSupplier.java // (c)2016 MindView LLC: see Copyright.txt // We make no guarantees that this code is fit for any purpose. // Visit http://OnJava8.com for more book information. diff --git a/concurrent/ThreadSize.java b/lowlevel/ThreadSize.java similarity index 96% rename from concurrent/ThreadSize.java rename to lowlevel/ThreadSize.java index 550fe103..c726fcca 100644 --- a/concurrent/ThreadSize.java +++ b/lowlevel/ThreadSize.java @@ -1,4 +1,4 @@ -// concurrent/ThreadSize.java +// lowlevel/ThreadSize.java // (c)2016 MindView LLC: see Copyright.txt // We make no guarantees that this code is fit for any purpose. // Visit http://OnJava8.com for more book information. diff --git a/concurrent/WorkStealingPool.java b/lowlevel/WorkStealingPool.java similarity index 96% rename from concurrent/WorkStealingPool.java rename to lowlevel/WorkStealingPool.java index 0cb922e7..93b6f4b9 100644 --- a/concurrent/WorkStealingPool.java +++ b/lowlevel/WorkStealingPool.java @@ -1,4 +1,4 @@ -// concurrent/WorkStealingPool.java +// lowlevel/WorkStealingPool.java // (c)2016 MindView LLC: see Copyright.txt // We make no guarantees that this code is fit for any purpose. // Visit http://OnJava8.com for more book information. diff --git a/operators/AllOps.java b/operators/AllOps.java index 59fb13dc..65bfef8d 100644 --- a/operators/AllOps.java +++ b/operators/AllOps.java @@ -67,8 +67,8 @@ public class AllOps { x = (char)(x - y); x++; x--; - x = (char)+y; - x = (char)-y; + x = (char) + y; + x = (char) - y; // Relational and logical: f(x > y); f(x >= y); @@ -117,8 +117,8 @@ public class AllOps { x = (byte)(x - y); x++; x--; - x = (byte)+ y; - x = (byte)- y; + x = (byte) + y; + x = (byte) - y; // Relational and logical: f(x > y); f(x >= y); @@ -167,8 +167,8 @@ public class AllOps { x = (short)(x - y); x++; x--; - x = (short)+y; - x = (short)-y; + x = (short) + y; + x = (short) - y; // Relational and logical: f(x > y); f(x >= y); @@ -180,7 +180,7 @@ public class AllOps { //- f(x && y); //- f(x || y); // Bitwise operators: - x = (short)~y; + x = (short) ~ y; x = (short)(x & y); x = (short)(x | y); x = (short)(x ^ y);