mirror of
https://gitee.com/dromara/hutool.git
synced 2025-04-24 18:04:54 +08:00
fix code
This commit is contained in:
parent
2959e1798d
commit
d1e8b89bda
@ -60,9 +60,8 @@ public class HttpUtil {
|
||||
* @param method 方法枚举{@link Method}
|
||||
* @param url 请求的URL,可以使HTTP或者HTTPS
|
||||
* @return {@link Request}
|
||||
* @since 3.0.9
|
||||
*/
|
||||
public static Request createRequest(String url, Method method) {
|
||||
public static Request createRequest(final String url, final Method method) {
|
||||
return Request.of(url).method(method);
|
||||
}
|
||||
|
||||
@ -71,9 +70,8 @@ public class HttpUtil {
|
||||
*
|
||||
* @param url 请求的URL,可以使HTTP或者HTTPS
|
||||
* @return {@link Request}
|
||||
* @since 3.2.0
|
||||
*/
|
||||
public static Request createGet(String url) {
|
||||
public static Request createGet(final String url) {
|
||||
return createRequest(url, Method.GET);
|
||||
}
|
||||
|
||||
@ -82,9 +80,8 @@ public class HttpUtil {
|
||||
*
|
||||
* @param url 请求的URL,可以使HTTP或者HTTPS
|
||||
* @return {@link Request}
|
||||
* @since 3.2.0
|
||||
*/
|
||||
public static Request createPost(String url) {
|
||||
public static Request createPost(final String url) {
|
||||
return createRequest(url, Method.POST);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user