Skip to content

Commit

Permalink
Replaced log4j usage with guava, see #773 (reply in thread)
Browse files Browse the repository at this point in the history
  • Loading branch information
cmahnke committed Jan 8, 2024
1 parent c480b35 commit de8ec8d
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("(" + Joiner.on('|').join(patterns) + ")"),
matchWhenMissing,
valueGetter
);
Expand Down

0 comments on commit de8ec8d

Please sign in to comment.