Skip to content

Commit d3ca481

Browse files
author
Bruce Eckel
committed
Fixed packaging so jmh build works
1 parent 5ec9f9b commit d3ca481

6 files changed

Lines changed: 11 additions & 8 deletions

File tree

collectiontopics/References.java

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -37,15 +37,17 @@ public static void main(String[] args) {
3737
for(int i = 0; i < size; i++) {
3838
sa.add(new SoftReference<>(
3939
new VeryBig("Soft " + i), rq));
40-
System.out.println("Just created: " + sa.getLast());
40+
System.out.println(
41+
"Just created: " + sa.getLast());
4142
checkQueue();
4243
}
4344
LinkedList<WeakReference<VeryBig>> wa =
4445
new LinkedList<>();
4546
for(int i = 0; i < size; i++) {
4647
wa.add(new WeakReference<>(
4748
new VeryBig("Weak " + i), rq));
48-
System.out.println("Just created: " + wa.getLast());
49+
System.out.println(
50+
"Just created: " + wa.getLast());
4951
checkQueue();
5052
}
5153
SoftReference<VeryBig> s =
@@ -58,7 +60,8 @@ public static void main(String[] args) {
5860
for(int i = 0; i < size; i++) {
5961
pa.add(new PhantomReference<>(
6062
new VeryBig("Phantom " + i), rq));
61-
System.out.println("Just created: " + pa.getLast());
63+
System.out.println(
64+
"Just created: " + pa.getLast());
6265
checkQueue();
6366
}
6467
}

collectiontopics/jmh/Deques.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
// We make no guarantees that this code is fit for any purpose.
44
// Visit http://OnJava8.com for more book information.
55
// Performance differences between Deques
6-
package understandingcollections.jmh;
6+
package collectiontopics.jmh;
77
import org.openjdk.jmh.annotations.*;
88
import java.util.concurrent.TimeUnit;
99
import java.util.*;

collectiontopics/jmh/Lists.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
// We make no guarantees that this code is fit for any purpose.
44
// Visit http://OnJava8.com for more book information.
55
// Performance differences between Lists
6-
package understandingcollections.jmh;
6+
package collectiontopics.jmh;
77
import org.openjdk.jmh.annotations.*;
88
import java.util.*;
99
import java.util.concurrent.*;

collectiontopics/jmh/Maps.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
// We make no guarantees that this code is fit for any purpose.
44
// Visit http://OnJava8.com for more book information.
55
// Performance differences between Maps
6-
package understandingcollections.jmh;
6+
package collectiontopics.jmh;
77
import org.openjdk.jmh.annotations.*;
88
import org.openjdk.jmh.infra.Blackhole;
99
import java.util.*;

collectiontopics/jmh/Queues.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
// We make no guarantees that this code is fit for any purpose.
44
// Visit http://OnJava8.com for more book information.
55
// Performance differences between Queues
6-
package understandingcollections.jmh;
6+
package collectiontopics.jmh;
77
import org.openjdk.jmh.annotations.*;
88
import java.util.*;
99
import java.util.concurrent.*;

collectiontopics/jmh/Sets.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
// We make no guarantees that this code is fit for any purpose.
44
// Visit http://OnJava8.com for more book information.
55
// Demonstrates performance differences in Sets
6-
package understandingcollections.jmh;
6+
package collectiontopics.jmh;
77
import org.openjdk.jmh.annotations.*;
88
import org.openjdk.jmh.infra.Blackhole;
99
import java.util.*;

0 commit comments

Comments
 (0)