feat: 使用 jdk instanceof 新特性

This commit is contained in:
xingyu4j
2025-08-28 15:10:52 +08:00
parent 495ef72a39
commit 224980aa1a
7 changed files with 12 additions and 20 deletions

View File

@@ -77,8 +77,8 @@ public class AuthRequestFactory {
extendList = extend.getConfig()
.keySet()
.stream()
.filter(x -> names.contains(x.toUpperCase()))
.map(String::toUpperCase)
.filter(names::contains)
.collect(Collectors.toList());
}
@@ -318,4 +318,4 @@ public class AuthRequestFactory {
.proxy(new Proxy(Proxy.Type.valueOf(proxyConfig.getType()), new InetSocketAddress(proxyConfig.getHostname(), proxyConfig.getPort())))
.build());
}
}
}