diff --git a/src/test/java/org/jenkinsci/plugins/scriptsecurity/sandbox/whitelists/StaticWhitelistTest.java b/src/test/java/org/jenkinsci/plugins/scriptsecurity/sandbox/whitelists/StaticWhitelistTest.java index 83523ff6..c705694a 100644 --- a/src/test/java/org/jenkinsci/plugins/scriptsecurity/sandbox/whitelists/StaticWhitelistTest.java +++ b/src/test/java/org/jenkinsci/plugins/scriptsecurity/sandbox/whitelists/StaticWhitelistTest.java @@ -147,7 +147,7 @@ static void sanity(URL definition) throws Exception { new MethodSignature(Matcher.class, "end", String.class), new MethodSignature(Matcher.class, "group", String.class), new MethodSignature(Matcher.class, "start", String.class), - // Override MatchResult default methods in Java 20+ (for Java 17 compatibility) + // Do not exist until Java 20. new MethodSignature(MatchResult.class, "end", String.class), new MethodSignature(MatchResult.class, "group", String.class), new MethodSignature(MatchResult.class, "hasMatch"),