From d3ca481bdbb3742d601ab0ae5f42bed2ae2265d9 Mon Sep 17 00:00:00 2001 From: Bruce Eckel Date: Wed, 11 Jan 2017 09:11:59 -0800 Subject: [PATCH] Fixed packaging so jmh build works --- collectiontopics/References.java | 9 ++++++--- collectiontopics/jmh/Deques.java | 2 +- collectiontopics/jmh/Lists.java | 2 +- collectiontopics/jmh/Maps.java | 2 +- collectiontopics/jmh/Queues.java | 2 +- collectiontopics/jmh/Sets.java | 2 +- 6 files changed, 11 insertions(+), 8 deletions(-) diff --git a/collectiontopics/References.java b/collectiontopics/References.java index c7885fb2..68e9ec52 100644 --- a/collectiontopics/References.java +++ b/collectiontopics/References.java @@ -37,7 +37,8 @@ public class References { for(int i = 0; i < size; i++) { sa.add(new SoftReference<>( new VeryBig("Soft " + i), rq)); - System.out.println("Just created: " + sa.getLast()); + System.out.println( + "Just created: " + sa.getLast()); checkQueue(); } LinkedList> wa = @@ -45,7 +46,8 @@ public class References { for(int i = 0; i < size; i++) { wa.add(new WeakReference<>( new VeryBig("Weak " + i), rq)); - System.out.println("Just created: " + wa.getLast()); + System.out.println( + "Just created: " + wa.getLast()); checkQueue(); } SoftReference s = @@ -58,7 +60,8 @@ public class References { for(int i = 0; i < size; i++) { pa.add(new PhantomReference<>( new VeryBig("Phantom " + i), rq)); - System.out.println("Just created: " + pa.getLast()); + System.out.println( + "Just created: " + pa.getLast()); checkQueue(); } } diff --git a/collectiontopics/jmh/Deques.java b/collectiontopics/jmh/Deques.java index 379349b7..1a16b81b 100644 --- a/collectiontopics/jmh/Deques.java +++ b/collectiontopics/jmh/Deques.java @@ -3,7 +3,7 @@ // We make no guarantees that this code is fit for any purpose. // Visit http://OnJava8.com for more book information. // Performance differences between Deques -package understandingcollections.jmh; +package collectiontopics.jmh; import org.openjdk.jmh.annotations.*; import java.util.concurrent.TimeUnit; import java.util.*; diff --git a/collectiontopics/jmh/Lists.java b/collectiontopics/jmh/Lists.java index 9369335e..86ee291a 100644 --- a/collectiontopics/jmh/Lists.java +++ b/collectiontopics/jmh/Lists.java @@ -3,7 +3,7 @@ // We make no guarantees that this code is fit for any purpose. // Visit http://OnJava8.com for more book information. // Performance differences between Lists -package understandingcollections.jmh; +package collectiontopics.jmh; import org.openjdk.jmh.annotations.*; import java.util.*; import java.util.concurrent.*; diff --git a/collectiontopics/jmh/Maps.java b/collectiontopics/jmh/Maps.java index 5a8ef73a..bb2ef5e9 100644 --- a/collectiontopics/jmh/Maps.java +++ b/collectiontopics/jmh/Maps.java @@ -3,7 +3,7 @@ // We make no guarantees that this code is fit for any purpose. // Visit http://OnJava8.com for more book information. // Performance differences between Maps -package understandingcollections.jmh; +package collectiontopics.jmh; import org.openjdk.jmh.annotations.*; import org.openjdk.jmh.infra.Blackhole; import java.util.*; diff --git a/collectiontopics/jmh/Queues.java b/collectiontopics/jmh/Queues.java index fdb1d59e..5f300f5d 100644 --- a/collectiontopics/jmh/Queues.java +++ b/collectiontopics/jmh/Queues.java @@ -3,7 +3,7 @@ // We make no guarantees that this code is fit for any purpose. // Visit http://OnJava8.com for more book information. // Performance differences between Queues -package understandingcollections.jmh; +package collectiontopics.jmh; import org.openjdk.jmh.annotations.*; import java.util.*; import java.util.concurrent.*; diff --git a/collectiontopics/jmh/Sets.java b/collectiontopics/jmh/Sets.java index c9913d1b..3ab4f68e 100644 --- a/collectiontopics/jmh/Sets.java +++ b/collectiontopics/jmh/Sets.java @@ -3,7 +3,7 @@ // We make no guarantees that this code is fit for any purpose. // Visit http://OnJava8.com for more book information. // Demonstrates performance differences in Sets -package understandingcollections.jmh; +package collectiontopics.jmh; import org.openjdk.jmh.annotations.*; import org.openjdk.jmh.infra.Blackhole; import java.util.*;