Skip to content

Commit

Permalink
Remove log4j usage (#776)
Browse files Browse the repository at this point in the history
  • Loading branch information
cmahnke authored Jan 9, 2024
1 parent c480b35 commit f692124
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

import static com.onthegomap.planetiler.expression.DataType.GET_TAG;

import com.google.common.base.Joiner;
import com.onthegomap.planetiler.reader.WithGeometryType;
import com.onthegomap.planetiler.reader.WithTags;
import com.onthegomap.planetiler.util.Format;
Expand All @@ -14,7 +15,6 @@
import java.util.regex.Pattern;
import java.util.stream.Collectors;
import java.util.stream.Stream;
import org.apache.logging.log4j.util.Strings;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

Expand Down Expand Up @@ -362,7 +362,7 @@ static MatchAny from(String field, BiFunction<WithTags, String, Object> valueGet

return new MatchAny(field, values,
Set.copyOf(exactMatches),
patterns.isEmpty() ? null : Pattern.compile("(" + Strings.join(patterns, '|') + ")"),
patterns.isEmpty() ? null : Pattern.compile(patterns.stream().collect(Collectors.joining("|", "(", ")"))),
matchWhenMissing,
valueGetter
);
Expand Down

0 comments on commit f692124

Please sign in to comment.