Skip to content

Commit c81fbc1

Browse files
committed
change setInstance method to static
Signed-off-by: zane-neo <zaniu@amazon.com>
1 parent 763609e commit c81fbc1

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

distribution/tools/keystore-cli/src/test/java/org/opensearch/bootstrap/BootstrapTests.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -150,7 +150,7 @@ public void testInitExecutionOrder() throws Exception {
150150

151151
LogConfigurator.registerErrorListener();
152152
Bootstrap testBootstrap = new Bootstrap(mockThread, mockNode);
153-
testBootstrap.setInstance(testBootstrap);
153+
Bootstrap.setInstance(testBootstrap);
154154

155155
Bootstrap.startInstance(testBootstrap);
156156

server/src/main/java/org/opensearch/bootstrap/Bootstrap.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ final class Bootstrap {
9494
private final Spawner spawner = new Spawner();
9595

9696
// For testing purpose
97-
void setInstance(Bootstrap bootstrap) {
97+
static void setInstance(Bootstrap bootstrap) {
9898
INSTANCE = bootstrap;
9999
}
100100

0 commit comments

Comments
 (0)