Skip to content

Commit

Permalink
change setInstance method to static
Browse files Browse the repository at this point in the history
Signed-off-by: zane-neo <zaniu@amazon.com>
  • Loading branch information
zane-neo committed Oct 16, 2024
1 parent 2b3cd47 commit af9d70d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,7 @@ public void testInitExecutionOrder() throws Exception {

LogConfigurator.registerErrorListener();
Bootstrap testBootstrap = new Bootstrap(mockThread, mockNode);
testBootstrap.setInstance(testBootstrap);
Bootstrap.setInstance(testBootstrap);

Bootstrap.startInstance(testBootstrap);

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ final class Bootstrap {
private final Spawner spawner = new Spawner();

// For testing purpose
void setInstance(Bootstrap bootstrap) {
static void setInstance(Bootstrap bootstrap) {
INSTANCE = bootstrap;
}

Expand Down

0 comments on commit af9d70d

Please sign in to comment.