diff --git a/hutool-core/src/main/java/cn/hutool/core/collection/CollUtil.java b/hutool-core/src/main/java/cn/hutool/core/collection/CollUtil.java index b80714da4..b2f3a74f6 100644 --- a/hutool-core/src/main/java/cn/hutool/core/collection/CollUtil.java +++ b/hutool-core/src/main/java/cn/hutool/core/collection/CollUtil.java @@ -2572,8 +2572,9 @@ public class CollUtil { * 4. List * * - * @param 元素类型 - * @param 集合类型 + * @param 元素类型 + * @param 集合类型 + * @param collectionClass 集合类型 * @return 空集合 * @since 5.3.1 */ diff --git a/hutool-core/src/main/java/cn/hutool/core/net/url/UrlPath.java b/hutool-core/src/main/java/cn/hutool/core/net/url/UrlPath.java index 01708765a..bf11b0837 100644 --- a/hutool-core/src/main/java/cn/hutool/core/net/url/UrlPath.java +++ b/hutool-core/src/main/java/cn/hutool/core/net/url/UrlPath.java @@ -35,10 +35,11 @@ public class UrlPath { /** * 是否path的末尾加 / + * * @param withEngTag 是否path的末尾加 / * @return this */ - public UrlPath setWithEndTag(boolean withEngTag){ + public UrlPath setWithEndTag(boolean withEngTag) { this.withEngTag = withEngTag; return this; } @@ -67,6 +68,9 @@ public class UrlPath { /** * 添加到path最后面 + * + * @param segment Path节点 + * @return this */ public UrlPath add(CharSequence segment) { add(segment, false); @@ -75,6 +79,9 @@ public class UrlPath { /** * 添加到path最前面 + * + * @param segment Path节点 + * @return this */ public UrlPath addBefore(CharSequence segment) { add(segment, true); @@ -118,7 +125,7 @@ public class UrlPath { for (String segment : segments) { builder.append(CharUtil.SLASH).append(URLUtil.encodeAll(segment, charset)); } - if(withEngTag || StrUtil.isEmpty(builder)){ + if (withEngTag || StrUtil.isEmpty(builder)) { builder.append(CharUtil.SLASH); } return builder.toString(); @@ -154,6 +161,7 @@ public class UrlPath { /** * 修正节点,包括去掉前后的/,去掉空白符 + * * @param segment 节点 * @return 修正后的节点 */ diff --git a/hutool-http/src/main/java/cn/hutool/http/server/action/Action.java b/hutool-http/src/main/java/cn/hutool/http/server/action/Action.java index 5e3604b80..a905fd5df 100644 --- a/hutool-http/src/main/java/cn/hutool/http/server/action/Action.java +++ b/hutool-http/src/main/java/cn/hutool/http/server/action/Action.java @@ -19,6 +19,7 @@ public interface Action { * * @param request 请求对象 * @param response 响应对象 + * @throws IOException IO异常 */ void doAction(HttpServerRequest request, HttpServerResponse response) throws IOException; }