Skip to content

Commit

Permalink
[#1503] allow security manager on Java 18 (beforeClass method must be…
Browse files Browse the repository at this point in the history
… public)
  • Loading branch information
remkop committed Dec 6, 2021
1 parent 207a50b commit 6580efb
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/test/java/picocli/AutoCompleteTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@
// https://apple.stackexchange.com/a/13019
public class AutoCompleteTest {
@BeforeClass
static void beforeClass() {
public static void beforeClass() {
// https://github.com/remkop/picocli/issues/1503
System.setProperty("java.security.manager", "allow");
}
Expand Down
2 changes: 1 addition & 1 deletion src/test/java/picocli/ExecuteLegacyTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@
@SuppressWarnings("deprecation")
public class ExecuteLegacyTest {
@BeforeClass
static void beforeClass() {
public static void beforeClass() {
// https://github.com/remkop/picocli/issues/1503
System.setProperty("java.security.manager", "allow");
}
Expand Down

0 comments on commit 6580efb

Please sign in to comment.