Skip to content

Commit

Permalink
refactor: minor change function to static
Browse files Browse the repository at this point in the history
  • Loading branch information
minh committed Jun 27, 2024
1 parent 7dd718d commit 1090628
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 7 deletions.
2 changes: 1 addition & 1 deletion src/main/java/org/nqm/Gis.java
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ public int handleExecutionException(Exception e, CommandLine commandLine, ParseR
};

@Option(names = "-v", description = "Show more details information.", scope = ScopeType.INHERIT)
public void setVerbose(boolean verbose) {
public static void setVerbose(boolean verbose) {
GisLog.setIsDebugEnabled(verbose);
}

Expand Down
7 changes: 1 addition & 6 deletions src/test/java/org/nqm/GisTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -7,15 +7,10 @@

class GisTest extends StdBaseTest {

private Gis gis;

@Test
void setVerbose_OK() {
// given:
gis = new Gis();

// when:
gis.setVerbose(true);
Gis.setVerbose(true);
GisLog.debug("eee");

// then:
Expand Down

0 comments on commit 1090628

Please sign in to comment.