From 0c9eab0150b7a1915d6fad53832c3ad67c5a069b Mon Sep 17 00:00:00 2001 From: Peter Lawrey Date: Tue, 22 Jun 2021 10:15:08 +0100 Subject: [PATCH] Improved Java 11 javadoc --- .../chronicle/hash/impl/stage/entry/SegmentStages.java | 2 +- .../openhft/chronicle/hash/impl/util/math/Precision.java | 2 +- .../net/openhft/chronicle/map/ConcurrentMap8Test.java | 6 +++--- .../openhft/chronicle/map/ReplicatedChronicleMapTest.java | 8 ++++---- .../chronicle/map/jsr166/map/ChronicleMapTest.java | 8 ++++---- .../chronicle/map/utility/ProcessInstanceLimiter.java | 2 +- 6 files changed, 14 insertions(+), 14 deletions(-) diff --git a/src/main/java/net/openhft/chronicle/hash/impl/stage/entry/SegmentStages.java b/src/main/java/net/openhft/chronicle/hash/impl/stage/entry/SegmentStages.java index dd507540e..bad6ebe10 100644 --- a/src/main/java/net/openhft/chronicle/hash/impl/stage/entry/SegmentStages.java +++ b/src/main/java/net/openhft/chronicle/hash/impl/stage/entry/SegmentStages.java @@ -71,7 +71,7 @@ public abstract class SegmentStages implements SegmentLock, LocksInterface { /** * See the ChMap Ops spec, considerations of nested same-thread concurrent contexts. * Once context enters the segment, and observes concurrent same-thread context, - * it sets nestedContextsLockedOnSameSegment = true for itself and that concurrent context. + * it sets nestedContextsLockedOnSameSegment = true for itself and that concurrent context. * This flag is not dropped on exit of one of these contexts, because between calls of * this context, nested one could be initialized, does some changes that break our thread-local * assumptions _and exit_, that is why on exit concurrent context should remain "dirty". diff --git a/src/main/java/net/openhft/chronicle/hash/impl/util/math/Precision.java b/src/main/java/net/openhft/chronicle/hash/impl/util/math/Precision.java index b06f29359..41d5d1735 100644 --- a/src/main/java/net/openhft/chronicle/hash/impl/util/math/Precision.java +++ b/src/main/java/net/openhft/chronicle/hash/impl/util/math/Precision.java @@ -49,7 +49,7 @@ class Precision { } /** - * Returns true if both arguments are equal or within the range of allowed + * Returns true if both arguments are equal or within the range of allowed * error (inclusive). *

* Two float numbers are considered equal if there are {@code (maxUlps - 1)} diff --git a/src/test/java/net/openhft/chronicle/map/ConcurrentMap8Test.java b/src/test/java/net/openhft/chronicle/map/ConcurrentMap8Test.java index 5c51aadb9..df2e19843 100644 --- a/src/test/java/net/openhft/chronicle/map/ConcurrentMap8Test.java +++ b/src/test/java/net/openhft/chronicle/map/ConcurrentMap8Test.java @@ -379,7 +379,7 @@ public class ConcurrentMap8Test extends JSR166TestCase { } *//** - * keyset.contains returns true for added elements + * keyset.contains returns true for added elements *//* @Test public void testContains() { @@ -408,7 +408,7 @@ public class ConcurrentMap8Test extends JSR166TestCase { } *//** - * KeySet.containsAll returns true for collections with subset of elements + * KeySet.containsAll returns true for collections with subset of elements *//* @Test public void testContainsAll() { @@ -422,7 +422,7 @@ public class ConcurrentMap8Test extends JSR166TestCase { } *//** - * KeySet.isEmpty is true when empty, else false + * KeySet.isEmpty is true when empty, else false *//* @Test public void testIsEmpty() { diff --git a/src/test/java/net/openhft/chronicle/map/ReplicatedChronicleMapTest.java b/src/test/java/net/openhft/chronicle/map/ReplicatedChronicleMapTest.java index 0ad3206e9..5c4bf2cb1 100644 --- a/src/test/java/net/openhft/chronicle/map/ReplicatedChronicleMapTest.java +++ b/src/test/java/net/openhft/chronicle/map/ReplicatedChronicleMapTest.java @@ -93,7 +93,7 @@ public class ReplicatedChronicleMapTest extends JSR166TestCase { } /** - * contains returns true for contained value + * contains returns true for contained value */ @Test public void testContains() throws IOException { @@ -103,7 +103,7 @@ public class ReplicatedChronicleMapTest extends JSR166TestCase { } /** - * containsKey returns true for contained key + * containsKey returns true for contained key */ @Test public void testContainsKey() throws IOException { @@ -113,7 +113,7 @@ public class ReplicatedChronicleMapTest extends JSR166TestCase { } /** - * containsValue returns true for held values + * containsValue returns true for held values */ @Test public void testContainsValue() throws IOException { @@ -194,7 +194,7 @@ public class ReplicatedChronicleMapTest extends JSR166TestCase { } /** - * isEmpty is true of empty map and false for non-empty + * isEmpty is true of empty map and false for non-empty */ @Test public void testIsEmpty() throws IOException { diff --git a/src/test/java/net/openhft/chronicle/map/jsr166/map/ChronicleMapTest.java b/src/test/java/net/openhft/chronicle/map/jsr166/map/ChronicleMapTest.java index ef6e49ab7..0fef3e630 100644 --- a/src/test/java/net/openhft/chronicle/map/jsr166/map/ChronicleMapTest.java +++ b/src/test/java/net/openhft/chronicle/map/jsr166/map/ChronicleMapTest.java @@ -78,7 +78,7 @@ public class ChronicleMapTest extends JSR166TestCase { } /** - * contains returns true for contained value + * contains returns true for contained value */ @Test(timeout = 5000) public void testContains() throws IOException { @@ -89,7 +89,7 @@ public class ChronicleMapTest extends JSR166TestCase { } /** - * containsKey returns true for contained key + * containsKey returns true for contained key */ @Test(timeout = 5000) public void testContainsKey() throws IOException { @@ -100,7 +100,7 @@ public class ChronicleMapTest extends JSR166TestCase { } /** - * containsValue returns true for held values + * containsValue returns true for held values */ @Test(timeout = 5000) public void testContainsValue() throws IOException { @@ -124,7 +124,7 @@ public class ChronicleMapTest extends JSR166TestCase { } /** - * isEmpty is true of empty map and false for non-empty + * isEmpty is true of empty map and false for non-empty */ @Test(timeout = 5000) public void testIsEmpty() throws IOException { diff --git a/src/test/java/net/openhft/chronicle/map/utility/ProcessInstanceLimiter.java b/src/test/java/net/openhft/chronicle/map/utility/ProcessInstanceLimiter.java index 2ef703eb3..fff0a0a44 100644 --- a/src/test/java/net/openhft/chronicle/map/utility/ProcessInstanceLimiter.java +++ b/src/test/java/net/openhft/chronicle/map/utility/ProcessInstanceLimiter.java @@ -421,7 +421,7 @@ public class ProcessInstanceLimiter implements Runnable { /** * Assumes that the data object is non-null and already locked - * If true is returned, the update has been applied, otherwise + * If true is returned, the update has been applied, otherwise * this slot is conflicted */ private boolean updateTheSharedMap(String processType, int index, Data data) {