diff --git a/hutool-extra/src/main/java/cn/hutool/extra/emoji/package-info.java b/hutool-extra/src/main/java/cn/hutool/extra/emoji/package-info.java
index dd352241d..44fb83c6d 100644
--- a/hutool-extra/src/main/java/cn/hutool/extra/emoji/package-info.java
+++ b/hutool-extra/src/main/java/cn/hutool/extra/emoji/package-info.java
@@ -1,5 +1,5 @@
/**
- * 基于emoji-java的Emoji表情工具类
+ * 基于https://github.com/vdurmont/emoji-java的Emoji表情工具类
*
* @author looly
*
diff --git a/hutool-extra/src/main/java/cn/hutool/extra/servlet/multipart/MultipartRequestInputStream.java b/hutool-extra/src/main/java/cn/hutool/extra/servlet/multipart/MultipartRequestInputStream.java
index e0c4ebe44..4351e8d0f 100644
--- a/hutool-extra/src/main/java/cn/hutool/extra/servlet/multipart/MultipartRequestInputStream.java
+++ b/hutool-extra/src/main/java/cn/hutool/extra/servlet/multipart/MultipartRequestInputStream.java
@@ -36,6 +36,7 @@ public class MultipartRequestInputStream extends BufferedInputStream {
* 跳过指定位数的 bytes.
*
* @param i 跳过的byte数
+ * @throws IOException IO异常
*/
public void skipBytes(int i) throws IOException {
long len = super.skip(i);
diff --git a/hutool-extra/src/main/java/cn/hutool/extra/servlet/multipart/UploadFile.java b/hutool-extra/src/main/java/cn/hutool/extra/servlet/multipart/UploadFile.java
index 414397b5d..43f4f3884 100644
--- a/hutool-extra/src/main/java/cn/hutool/extra/servlet/multipart/UploadFile.java
+++ b/hutool-extra/src/main/java/cn/hutool/extra/servlet/multipart/UploadFile.java
@@ -83,6 +83,7 @@ public class UploadFile {
*
* @param destination 目标文件
* @return 目标文件
+ * @throws IOException IO异常
*/
public File write(File destination) throws IOException {
assertValid();
diff --git a/hutool-http/src/main/java/cn/hutool/http/ContentType.java b/hutool-http/src/main/java/cn/hutool/http/ContentType.java
index c8ce33725..759cd7d92 100644
--- a/hutool-http/src/main/java/cn/hutool/http/ContentType.java
+++ b/hutool-http/src/main/java/cn/hutool/http/ContentType.java
@@ -1,29 +1,40 @@
package cn.hutool.http;
-import java.nio.charset.Charset;
-
import cn.hutool.core.util.StrUtil;
+import java.nio.charset.Charset;
+
/**
* 常用Content-Type类型枚举
- *
+ *
* @author looly
* @since 4.0.11
*/
public enum ContentType {
-
- /** 标准表单编码,当action为get时候,浏览器用x-www-form-urlencoded的编码方式把form数据转换成一个字串(name1=value1&name2=value2…)*/
+
+ /**
+ * 标准表单编码,当action为get时候,浏览器用x-www-form-urlencoded的编码方式把form数据转换成一个字串(name1=value1&name2=value2…)
+ */
FORM_URLENCODED("application/x-www-form-urlencoded"),
- /** 文件上传编码,浏览器会把整个表单以控件为单位分割,并为每个部分加上Content-Disposition,并加上分割符(boundary) */
+ /**
+ * 文件上传编码,浏览器会把整个表单以控件为单位分割,并为每个部分加上Content-Disposition,并加上分割符(boundary)
+ */
MULTIPART("multipart/form-data"),
- /** Rest请求JSON编码 */
+ /**
+ * Rest请求JSON编码
+ */
JSON("application/json"),
- /** Rest请求XML编码 */
+ /**
+ * Rest请求XML编码
+ */
XML("application/xml"),
- /** Rest请求text/xml编码 */
+ /**
+ * Rest请求text/xml编码
+ */
TEXT_XML("text/xml");
private String value;
+
ContentType(String value) {
this.value = value;
}
@@ -32,19 +43,20 @@ public enum ContentType {
public String toString() {
return value;
}
-
+
/**
* 输出Content-Type字符串,附带编码信息
+ *
* @param charset 编码
* @return Content-Type字符串
*/
public String toString(Charset charset) {
return build(this.value, charset);
}
-
+
/**
* 是否为默认Content-Type,默认包括null
和application/x-www-form-urlencoded
- *
+ *
* @param contentType 内容类型
* @return 是否为默认Content-Type
* @since 4.1.5
@@ -55,7 +67,7 @@ public enum ContentType {
/**
* 是否为application/x-www-form-urlencoded
- *
+ *
* @param contentType 内容类型
* @return 是否为application/x-www-form-urlencoded
*/
@@ -65,12 +77,12 @@ public enum ContentType {
/**
* 从请求参数的body中判断请求的Content-Type类型,支持的类型有:
- *
+ *
*
* 1. application/json * 1. application/xml *- * + * * @param body 请求参数体 * @return Content-Type类型,如果无法判断返回null */ @@ -79,28 +91,28 @@ public enum ContentType { if (StrUtil.isNotBlank(body)) { char firstChar = body.charAt(0); switch (firstChar) { - case '{': - case '[': - // JSON请求体 - contentType = JSON; - break; - case '<': - // XML请求体 - contentType = XML; - break; + case '{': + case '[': + // JSON请求体 + contentType = JSON; + break; + case '<': + // XML请求体 + contentType = XML; + break; - default: - break; + default: + break; } } return contentType; } - + /** * 输出Content-Type字符串,附带编码信息 - * + * * @param contentType Content-Type类型 - * @param charset 编码 + * @param charset 编码 * @return Content-Type字符串 * @since 4.5.4 */ diff --git a/hutool-http/src/main/java/cn/hutool/http/HttpRequest.java b/hutool-http/src/main/java/cn/hutool/http/HttpRequest.java index 6dd97775c..77fb7ae1c 100644 --- a/hutool-http/src/main/java/cn/hutool/http/HttpRequest.java +++ b/hutool-http/src/main/java/cn/hutool/http/HttpRequest.java @@ -261,6 +261,7 @@ public class HttpRequest extends HttpBase
* 需要注意的是,共享样式会共享同一个{@link CellStyle},一个单元格样式改变,全部改变。
- *
+ *
+ * @param style 单元格样式
* @param x X坐标,从0计数,即列号
* @param y Y坐标,从0计数,即行号
* @return this
@@ -1003,7 +1007,7 @@ public class ExcelWriter extends ExcelBase