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.