Skip to content

Commit

Permalink
Removed suspicious getClass() call on Class
Browse files Browse the repository at this point in the history
  • Loading branch information
dk2k committed Aug 22, 2024
1 parent abb1041 commit 5b5b8c1
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ public static <R extends Reader<?>> void registerReader(final byte ordinal, fina

public static void registerClassAlias(final Class<?> classInstance, final Class<?> classGeneric) {
if (WRITER_CUSTOM_CLASS_MAP.putIfAbsent(classInstance, classGeneric) != null) {
throw new IllegalArgumentException("Streamable custom class already registered [" + classInstance.getClass() + "]");
throw new IllegalArgumentException("Streamable custom class already registered [" + classInstance + "]");

Check warning on line 86 in libs/core/src/main/java/org/opensearch/core/common/io/stream/Writeable.java

View check run for this annotation

Codecov / codecov/patch

libs/core/src/main/java/org/opensearch/core/common/io/stream/Writeable.java#L86

Added line #L86 was not covered by tests
}
}

Expand Down

0 comments on commit 5b5b8c1

Please sign in to comment.