Skip to content

Commit

Permalink
Fixed javaDocs check
Browse files Browse the repository at this point in the history
Signed-off-by: Ketan Verma <ketan9495@gmail.com>
  • Loading branch information
ketanv3 committed Jul 20, 2023
1 parent 8afa9ab commit f3ee896
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
import org.opensearch.core.common.util.ByteArray;

/**
* Specialized hash table implementation that maps a BytesRef key to a long ordinal.
* Specialized hash table implementation that maps a {@link BytesRef} key to a long ordinal.
*
* <p>
* It uses a compact byte-packing strategy to encode the ordinal and fingerprint information
Expand Down Expand Up @@ -44,7 +44,7 @@ public class CompactBytesRefHash implements Releasable {
private final float loadFactor;

/**
* Calculates the hash of a BytesRef key.
* Calculates the hash of a {@link BytesRef} key.
*/
private final Hasher hasher;

Expand Down Expand Up @@ -271,6 +271,9 @@ public void close() {
Releasables.close(table, offsets, keys);
}

Check warning on line 272 in server/src/main/java/org/opensearch/common/util/CompactBytesRefHash.java

View check run for this annotation

Codecov / codecov/patch

server/src/main/java/org/opensearch/common/util/CompactBytesRefHash.java#L271-L272

Added lines #L271 - L272 were not covered by tests

/**
* Hasher calculates the hash of a {@link BytesRef} key.
*/
@FunctionalInterface
public interface Hasher {
long hash(BytesRef key);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
import org.opensearch.core.common.util.ByteArray;

/**
* Specialized hash table implementation that maps a BytesRef key to a long ordinal.
* Specialized hash table implementation that maps a {@link BytesRef} key to a long ordinal.
*
* <p>
* It organizes itself by moving keys around dynamically in order to reduce the
Expand Down Expand Up @@ -47,7 +47,7 @@ public class ReorganizingBytesRefHash implements Releasable {
private final float loadFactor;

/**
* Calculates the hash of a BytesRef key.
* Calculates the hash of a {@link BytesRef} key.
*/
private final Hasher hasher;

Expand Down Expand Up @@ -278,6 +278,9 @@ public void close() {
Releasables.close(table, offsets, keys);
}

Check warning on line 279 in server/src/main/java/org/opensearch/common/util/ReorganizingBytesRefHash.java

View check run for this annotation

Codecov / codecov/patch

server/src/main/java/org/opensearch/common/util/ReorganizingBytesRefHash.java#L278-L279

Added lines #L278 - L279 were not covered by tests

/**
* Hasher calculates the hash of a {@link BytesRef} key.
*/
@FunctionalInterface
public interface Hasher {
long hash(BytesRef key);
Expand Down

0 comments on commit f3ee896

Please sign in to comment.