From 180c8db3b25a81fb8e1a8eb31a33a73b263ee8f7 Mon Sep 17 00:00:00 2001 From: Mariano Barrios Date: Wed, 18 Oct 2023 00:08:14 +0200 Subject: [PATCH] Remove warning --- src/main/java/dregex/impl/RegexParser.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/java/dregex/impl/RegexParser.java b/src/main/java/dregex/impl/RegexParser.java index 851ec83..6d68a21 100644 --- a/src/main/java/dregex/impl/RegexParser.java +++ b/src/main/java/dregex/impl/RegexParser.java @@ -485,7 +485,7 @@ private Parser charWildcard() { }); } - private final Parser regexAtom = or( + private final Parser regexAtom = or(List.of( quotedLiteral, charLit, charWildcard(), @@ -495,7 +495,7 @@ private Parser charWildcard() { shorthandCharSet(), specialCharSet(), group, - namedGroup); + namedGroup)); private final Parser predefQuantifier = or(litChar('+'), litChar('*'), litChar('?')).map(ch -> { switch (ch.intValue()) {