From c597e8dc6afefb5dbbe700047c24612d69ae76b9 Mon Sep 17 00:00:00 2001 From: Ali Dehghani Date: Thu, 16 Jul 2020 10:35:04 +0430 Subject: [PATCH] Added Javadoc Hint --- jmh/src/main/java/com/baeldung/falsesharing/LongAdder.java | 2 ++ jmh/src/main/java/com/baeldung/falsesharing/Striped64.java | 2 ++ 2 files changed, 4 insertions(+) diff --git a/jmh/src/main/java/com/baeldung/falsesharing/LongAdder.java b/jmh/src/main/java/com/baeldung/falsesharing/LongAdder.java index 06365ee3d2..39f9f981ab 100644 --- a/jmh/src/main/java/com/baeldung/falsesharing/LongAdder.java +++ b/jmh/src/main/java/com/baeldung/falsesharing/LongAdder.java @@ -4,6 +4,8 @@ import java.io.Serializable; import java.util.concurrent.atomic.AtomicLong; /** + * Copy-pasted from {@link java.util.concurrent.atomic.LongAdder} + * * One or more variables that together maintain an initially zero * {@code long} sum. When updates (method {@link #add}) are contended * across threads, the set of variables may grow dynamically to reduce diff --git a/jmh/src/main/java/com/baeldung/falsesharing/Striped64.java b/jmh/src/main/java/com/baeldung/falsesharing/Striped64.java index 284e62bc65..71c34a9de3 100644 --- a/jmh/src/main/java/com/baeldung/falsesharing/Striped64.java +++ b/jmh/src/main/java/com/baeldung/falsesharing/Striped64.java @@ -8,6 +8,8 @@ import java.util.function.DoubleBinaryOperator; import java.util.concurrent.ThreadLocalRandom; /** + * Copy-pasted from {@code java.util.concurrent.atomic.Striped64} class. + * * A package-local class holding common representation and mechanics * for classes supporting dynamic striping on 64bit values. The class * extends Number so that concrete subclasses must publicly do so.