This is an automated email from the ASF dual-hosted git repository.
liuhongyu pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/shenyu.git
The following commit(s) were added to refs/heads/master by this push:
new 87e0fe8604 fix: replace Collections.EMPTY_MAP with
Collections.emptyMap() (#6299)
87e0fe8604 is described below
commit 87e0fe8604ec07eb0bb0ca243d92844eb4e8a51c
Author: Senrian <[email protected]>
AuthorDate: Sat Mar 28 15:23:53 2026 +0800
fix: replace Collections.EMPTY_MAP with Collections.emptyMap() (#6299)
Replace deprecated Collections.EMPTY_MAP with Collections.emptyMap() to
avoid raw type warnings and improve type safety.
Co-authored-by: Senrian <[email protected]>
Co-authored-by: aias00 <[email protected]>
---
.../shenyu/admin/service/manager/impl/PullSwaggerDocServiceImpl.java | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git
a/shenyu-admin/src/main/java/org/apache/shenyu/admin/service/manager/impl/PullSwaggerDocServiceImpl.java
b/shenyu-admin/src/main/java/org/apache/shenyu/admin/service/manager/impl/PullSwaggerDocServiceImpl.java
index dec7c930e6..f71db31bc3 100644
---
a/shenyu-admin/src/main/java/org/apache/shenyu/admin/service/manager/impl/PullSwaggerDocServiceImpl.java
+++
b/shenyu-admin/src/main/java/org/apache/shenyu/admin/service/manager/impl/PullSwaggerDocServiceImpl.java
@@ -94,7 +94,7 @@ public class PullSwaggerDocServiceImpl implements
PullSwaggerDocService {
TagDO.TagExt tagExt = tagVO.getTagExt();
long newRefreshTime = System.currentTimeMillis();
String url = getSwaggerRequestUrl(instance);
- try (Response response = HTTP_UTILS.requestForResponse(url,
Collections.EMPTY_MAP, Collections.EMPTY_MAP, HttpUtils.HTTPMethod.GET)) {
+ try (Response response = HTTP_UTILS.requestForResponse(url,
Collections.emptyMap(), Collections.emptyMap(), HttpUtils.HTTPMethod.GET)) {
if (response.code() == HttpStatus.SC_NOT_FOUND) {
LOG.warn("add api document not found. clusterName={} url={}",
instance.getClusterName(), url);
return;