Skip to content

Commit 6d0a187

Browse files
committed
Minor Javadoc improvements
1 parent f4362e1 commit 6d0a187

File tree

1 file changed

+3
-9
lines changed

1 file changed

+3
-9
lines changed

src/main/java/net/openhft/smoothie/SmoothieMap.java

Lines changed: 3 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -463,10 +463,6 @@ private void initSegments(int segments, int segmentsTier, int upFrontScale) {
463463
* OK to override this method just returning {@code false}: <pre><code>
464464
* class IdentitySmoothieMap&lt;K, V&gt; extends SmoothieMap&lt;K, V&gt; {
465465
*
466-
* public IdentitySmoothieMap(long expectedSize) {
467-
* super(expectedSize);
468-
* }
469-
*
470466
* &#064;Override
471467
* protected boolean keysEqual(&#064;NotNull Object queriedKey, &#064;Nullable K keyInMap) {
472468
* return false;
@@ -483,6 +479,7 @@ private void initSegments(int segments, int segmentsTier, int upFrontScale) {
483479
* If you want to subclass parameterized {@code SmoothieMap}, you should cast the arguments to
484480
* the key parameter class yourself, e. g.: <pre><code>
485481
* class DomainToIpMap extends SmoothieMap&lt;String, Integer&gt; {
482+
*
486483
* &#064;Override
487484
* protected boolean keysEqual(&#064;NotNull Object queriedDomain,
488485
* &#064;Nullable String domainInMap) {
@@ -491,7 +488,7 @@ private void initSegments(int segments, int segmentsTier, int upFrontScale) {
491488
*
492489
* &#064;Override
493490
* protected long keyHashCode(&#064;Nullable Object domain) {
494-
* return LongHashFunctions.xx_r39().hashChars(((String) domain).toLowerCase());
491+
* return LongHashFunction.xx_r39().hashChars(((String) domain).toLowerCase());
495492
* }
496493
* }</code></pre>
497494
*
@@ -529,10 +526,6 @@ protected boolean keysEqual(@NotNull Object queriedKey, @Nullable K keyInMap) {
529526
* occasionally, you could skip {@code null} checks in this method: <pre><code>
530527
* class NonNullKeysSmoothieMap&lt;K, V&gt; extends SmoothieMap&lt;K, V&gt; {
531528
*
532-
* public NonNullKeysSmoothieMap(long expectedSize) {
533-
* super(expectedSize);
534-
* }
535-
*
536529
* &#064;Override
537530
* protected long keyHashCode(Object key) {
538531
* // throws NullPointerException if the key is null
@@ -568,6 +561,7 @@ protected long keyHashCode(@Nullable Object key) {
568561
* ClassCastException}. If you want to subclass parameterized {@code SmoothieMap}, you should
569562
* cast the arguments to the value parameter class yourself, e. g.: <pre><code>
570563
* class IpToDomainMap extends SmoothieMap&lt;Integer, String&gt; {
564+
*
571565
* &#064;Override
572566
* protected boolean valuesEqual(&#064;NotNull Object d1, &#064;Nullable String d2) {
573567
* return ((String) d1).equalsIgnoreCase(d2);

0 commit comments

Comments
 (0)