Skip to content

Commit

Permalink
Use getCanonicalName
Browse files Browse the repository at this point in the history
Signed-off-by: Craig Perkins <[email protected]>
  • Loading branch information
cwperks committed Jun 12, 2024
1 parent 4f90099 commit a497483
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions server/src/main/java/org/opensearch/node/Node.java
Original file line number Diff line number Diff line change
Expand Up @@ -967,7 +967,7 @@ protected Node(
systemIndexPlugins.stream()
.collect(
Collectors.toMap(
plugin -> plugin.getClass().getSimpleName(),
plugin -> plugin.getClass().getCanonicalName(),
plugin -> plugin.getSystemIndexDescriptors(settings)
.stream()
.map(SystemIndexDescriptor::getIndexPattern)
Expand All @@ -980,7 +980,7 @@ protected Node(
for (SystemIndexPlugin plugin : systemIndexPlugins) {
Consumer<Map<String, Set<String>>> newOnSystemIndex = plugin.onSystemIndices();
if (newOnSystemIndex != null) {
logger.debug("Using onSystemIndex from plugin " + plugin.getClass().getName());
logger.debug("Using onSystemIndex from plugin " + plugin.getClass().getCanonicalName());
if (onSystemIndex != null) {
throw new IllegalArgumentException("Cannot have more than one plugin implementing onSystemIndex");
}
Expand Down

0 comments on commit a497483

Please sign in to comment.