Skip to content

Commit

Permalink
Remove warning
Browse files Browse the repository at this point in the history
  • Loading branch information
marianobarrios committed Oct 17, 2023
1 parent 41e602a commit 180c8db
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/main/java/dregex/impl/RegexParser.java
Original file line number Diff line number Diff line change
Expand Up @@ -485,7 +485,7 @@ private Parser<Node> charWildcard() {
});
}

private final Parser<Node> regexAtom = or(
private final Parser<Node> regexAtom = or(List.of(
quotedLiteral,
charLit,
charWildcard(),
Expand All @@ -495,7 +495,7 @@ private Parser<Node> charWildcard() {
shorthandCharSet(),
specialCharSet(),
group,
namedGroup);
namedGroup));

private final Parser<Quantification> predefQuantifier = or(litChar('+'), litChar('*'), litChar('?')).map(ch -> {
switch (ch.intValue()) {
Expand Down

0 comments on commit 180c8db

Please sign in to comment.