diff --git a/server/src/main/java/org/opensearch/extensions/DiscoveryExtension.java b/server/src/main/java/org/opensearch/extensions/DiscoveryExtension.java index 72c3537cba11e..e0e5fe360ef46 100644 --- a/server/src/main/java/org/opensearch/extensions/DiscoveryExtension.java +++ b/server/src/main/java/org/opensearch/extensions/DiscoveryExtension.java @@ -48,7 +48,7 @@ public DiscoveryExtension( ) { super(name, id, ephemeralId, hostName, hostAddress, address, attributes, DiscoveryNodeRole.BUILT_IN_ROLES, version); this.pluginInfo = pluginInfo; - this.dependencies = dependencies; + this.dependencies = dependencies; } @Override @@ -56,7 +56,7 @@ public void writeTo(StreamOutput out) throws IOException { super.writeTo(out); pluginInfo.writeTo(out); out.writeVInt(dependencies.size()); - for(ExtensionDependency result : dependencies){ + for (ExtensionDependency result : dependencies) { result.writeTo(out); } } @@ -72,7 +72,7 @@ public DiscoveryExtension(final StreamInput in) throws IOException { this.pluginInfo = new PluginInfo(in); int size = in.readVInt(); dependencies = new ArrayList<>(size); - for(int i = 0; i < size; i++){ + for (int i = 0; i < size; i++) { dependencies.add(new ExtensionDependency(in)); } } diff --git a/server/src/main/java/org/opensearch/extensions/ExtensionDependency.java b/server/src/main/java/org/opensearch/extensions/ExtensionDependency.java index 24a849a742a08..cd39fe261082f 100644 --- a/server/src/main/java/org/opensearch/extensions/ExtensionDependency.java +++ b/server/src/main/java/org/opensearch/extensions/ExtensionDependency.java @@ -17,7 +17,7 @@ import org.opensearch.common.io.stream.Writeable; /** - * The extension dependency information + * The extension dependency information * * @opensearch.internal */ @@ -25,7 +25,7 @@ public class ExtensionDependency implements Writeable { private String uniqueId; private String version; - public ExtensionDependency(String uniqueId, String version){ + public ExtensionDependency(String uniqueId, String version) { this.uniqueId = uniqueId; this.version = version; } @@ -51,7 +51,7 @@ public void writeTo(StreamOutput out) throws IOException { * * @return the extension uniqueId */ - public String getUniqueId(){ + public String getUniqueId() { return uniqueId; } @@ -60,10 +60,10 @@ public String getUniqueId(){ * * @return the extension version */ - public String getVersion(){ + public String getVersion() { return version; } - + public String toString() { return "ExtensionDependency:{uniqueId=" + uniqueId + ", version=" + version + "}"; } diff --git a/server/src/main/java/org/opensearch/extensions/ExtensionsOrchestrator.java b/server/src/main/java/org/opensearch/extensions/ExtensionsOrchestrator.java index 5f6de4fa200dd..45224fe4dda7f 100644 --- a/server/src/main/java/org/opensearch/extensions/ExtensionsOrchestrator.java +++ b/server/src/main/java/org/opensearch/extensions/ExtensionsOrchestrator.java @@ -15,7 +15,6 @@ import java.nio.file.Files; import java.nio.file.Path; import java.util.ArrayList; -import java.util.Collections; import java.util.HashMap; import java.util.List; import java.util.Map;