Skip to content

Commit

Permalink
Merge pull request #453 from steven-aerts/whitelist-strip
Browse files Browse the repository at this point in the history
Adapt generic-whitelist to handle addition of String#stripIndent method in Java 15
  • Loading branch information
dwnusbaum authored Sep 16, 2022
2 parents c42a4d0 + 4a821ae commit 774b0b0
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -267,6 +267,7 @@ method java.lang.String split java.lang.String
method java.lang.String split java.lang.String int
method java.lang.String startsWith java.lang.String
method java.lang.String startsWith java.lang.String int
method java.lang.String stripIndent
method java.lang.String substring int
method java.lang.String substring int int
method java.lang.String toCharArray
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -120,8 +120,9 @@ static void sanity(URL definition) throws Exception {
"java.util.Iterator", "groovy.lang.Closure"),
// Overrides CharSequence.isEmpty in Java 15+.
new MethodSignature(String.class, "isEmpty"),
// Does not exist until Java 15.
// Do not exist until Java 15.
new MethodSignature(CharSequence.class, "isEmpty"),
new MethodSignature(String.class, "stripIndent"),
// Override the corresponding RandomGenerator methods in Java 17+.
new MethodSignature(Random.class, "nextBoolean"),
new MethodSignature(Random.class, "nextBytes", byte[].class),
Expand Down

0 comments on commit 774b0b0

Please sign in to comment.