Remove log4j usage (#776)

pull/779/head
cmahnke 2024-01-09 11:04:44 +01:00 zatwierdzone przez GitHub
rodzic c480b35f1c
commit f692124168
Nie znaleziono w bazie danych klucza dla tego podpisu
ID klucza GPG: 4AEE18F83AFDEB23
1 zmienionych plików z 2 dodań i 2 usunięć

Wyświetl plik

@ -2,6 +2,7 @@ package com.onthegomap.planetiler.expression;
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;
@ -14,7 +15,6 @@ import java.util.function.Predicate;
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;
@ -362,7 +362,7 @@ public interface Expression extends Simplifiable<Expression> {
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
);