Skip to content

Commit

Permalink
Merging jdk8u332-b09 into release
Browse files Browse the repository at this point in the history
  • Loading branch information
adoptopenjdk-github-bot committed Apr 20, 2022
2 parents e6d2255 + 3d2fe9b commit c2cdb99
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 2 deletions.
1 change: 1 addition & 0 deletions .hgtags
Original file line number Diff line number Diff line change
Expand Up @@ -1133,3 +1133,4 @@ f58fc9077d2274b2832bc00ff16d112fe99d9ace jdk8u332-b04
240124add1e91b41760100a44b579529eab5a634 jdk8u332-b06-aarch32-20220405
429be4b91dd279ec1165794d49efc36ecdbba842 jdk8u332-b07-aarch32-20220420
6d526dbc3432fd9f2db19bdcb2f6b5b8799d88f0 jdk8u332-b07
95b31159fdfd496e521e119aba9ef54acf6b272e jdk8u332-b08
7 changes: 6 additions & 1 deletion jaxp/src/com/sun/java_cup/internal/runtime/lr_parser.java
Original file line number Diff line number Diff line change
Expand Up @@ -389,7 +389,12 @@ public Symbol scan() throws Exception {
}

private boolean contains(final int[] arr, final int key) {
return Arrays.stream(arr).anyMatch(i -> i == key);
for (int i = 0 ; i < arr.length ; ++i) {
if (arr[i] == key) {
return true;
}
}
return false;
}

/*. . . . . . . . . . . . . . . . . . . . . . . . . . . . . .*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,12 @@ public final class Token {
DDOT, DCOLON, ATTR, CHILD};

public static boolean contains(String str) {
return Arrays.stream(OPERATORS).anyMatch(str::equals);
for (String op : OPERATORS) {
if (op.equals(str)) {
return true;
}
}
return false;
}

private Token() {
Expand Down

0 comments on commit c2cdb99

Please sign in to comment.