diff --git a/bus-base/src/main/java/org/aoju/bus/base/spring/BaseController.java b/bus-base/src/main/java/org/aoju/bus/base/spring/BaseController.java index 1e17831510..79d62f1b3d 100644 --- a/bus-base/src/main/java/org/aoju/bus/base/spring/BaseController.java +++ b/bus-base/src/main/java/org/aoju/bus/base/spring/BaseController.java @@ -25,9 +25,7 @@ import io.swagger.annotations.ApiOperation; import org.aoju.bus.base.consts.ErrorCode; -import org.aoju.bus.base.entity.Message; import org.aoju.bus.base.service.BaseService; -import org.aoju.bus.core.utils.StringUtils; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.web.bind.annotation.RequestMapping; import org.springframework.web.bind.annotation.RequestMethod; @@ -55,7 +53,7 @@ public class BaseController, T> extends Controlle @ApiOperation(value = "通用:添加数据", httpMethod = "POST") @ResponseBody public Object add(T entity) { - return write(ErrorCode.EM_SUCCESS,service.insertSelective(entity)); + return write(ErrorCode.EM_SUCCESS, service.insertSelective(entity)); } /** @@ -82,7 +80,7 @@ public Object remove(T entity) { @ApiOperation(value = "通用:主键更新", httpMethod = "POST") @ResponseBody public Object update(T entity) { - return write(ErrorCode.EM_SUCCESS,service.updateSelectiveById(entity)); + return write(ErrorCode.EM_SUCCESS, service.updateSelectiveById(entity)); } /** diff --git a/bus-http/src/main/java/org/aoju/bus/http/internal/http/second/Hpack.java b/bus-http/src/main/java/org/aoju/bus/http/internal/http/second/Hpack.java index 6361d8dfbc..739e93947c 100644 --- a/bus-http/src/main/java/org/aoju/bus/http/internal/http/second/Hpack.java +++ b/bus-http/src/main/java/org/aoju/bus/http/internal/http/second/Hpack.java @@ -144,7 +144,7 @@ static ByteString checkLowercase(ByteString name) throws IOException { return name; } - static final class Reader { + static final class Reader { private final List
headerList = new ArrayList<>(); private final BufferSource source; diff --git a/bus-limiter/src/main/java/org/aoju/bus/limiter/metadata/AbstractLimitedResourceMetadata.java b/bus-limiter/src/main/java/org/aoju/bus/limiter/metadata/AbstractLimitedResourceMetadata.java index f999892675..e9e3e9fe6d 100644 --- a/bus-limiter/src/main/java/org/aoju/bus/limiter/metadata/AbstractLimitedResourceMetadata.java +++ b/bus-limiter/src/main/java/org/aoju/bus/limiter/metadata/AbstractLimitedResourceMetadata.java @@ -24,10 +24,10 @@ package org.aoju.bus.limiter.metadata; import org.aoju.bus.core.utils.CollUtils; -import org.aoju.bus.limiter.Injector; import org.aoju.bus.limiter.Handler; -import org.aoju.bus.limiter.Resolver; +import org.aoju.bus.limiter.Injector; import org.aoju.bus.limiter.Limiter; +import org.aoju.bus.limiter.Resolver; import org.aoju.bus.limiter.annotation.LimiterParameter; import org.aoju.bus.limiter.resource.LimitedResource; import org.springframework.beans.factory.BeanFactory; diff --git a/bus-limiter/src/main/java/org/aoju/bus/limiter/metadata/LimitedResourceMetadata.java b/bus-limiter/src/main/java/org/aoju/bus/limiter/metadata/LimitedResourceMetadata.java index 7f979336f6..54d5067564 100644 --- a/bus-limiter/src/main/java/org/aoju/bus/limiter/metadata/LimitedResourceMetadata.java +++ b/bus-limiter/src/main/java/org/aoju/bus/limiter/metadata/LimitedResourceMetadata.java @@ -23,10 +23,10 @@ */ package org.aoju.bus.limiter.metadata; -import org.aoju.bus.limiter.Injector; import org.aoju.bus.limiter.Handler; -import org.aoju.bus.limiter.Resolver; +import org.aoju.bus.limiter.Injector; import org.aoju.bus.limiter.Limiter; +import org.aoju.bus.limiter.Resolver; import org.aoju.bus.limiter.resource.LimitedResource; import java.lang.reflect.Method; diff --git a/bus-limiter/src/main/java/org/aoju/bus/limiter/resource/LimitedResourceSource.java b/bus-limiter/src/main/java/org/aoju/bus/limiter/resource/LimitedResourceSource.java index d17bd203b9..5be876be57 100644 --- a/bus-limiter/src/main/java/org/aoju/bus/limiter/resource/LimitedResourceSource.java +++ b/bus-limiter/src/main/java/org/aoju/bus/limiter/resource/LimitedResourceSource.java @@ -23,8 +23,6 @@ */ package org.aoju.bus.limiter.resource; -import org.aoju.bus.limiter.resource.LimitedResource; - import java.lang.reflect.Method; import java.util.Collection; diff --git a/bus-limiter/src/main/java/org/aoju/bus/limiter/support/lock/LockAnnotationParser.java b/bus-limiter/src/main/java/org/aoju/bus/limiter/support/lock/LockAnnotationParser.java index 2702a8063f..6b9ef7ac40 100644 --- a/bus-limiter/src/main/java/org/aoju/bus/limiter/support/lock/LockAnnotationParser.java +++ b/bus-limiter/src/main/java/org/aoju/bus/limiter/support/lock/LockAnnotationParser.java @@ -23,9 +23,9 @@ */ package org.aoju.bus.limiter.support.lock; -import org.aoju.bus.limiter.support.rate.AbstractParser; import org.aoju.bus.limiter.annotation.Lock; import org.aoju.bus.limiter.resource.LimitedResource; +import org.aoju.bus.limiter.support.rate.AbstractParser; import org.springframework.core.annotation.AnnotationAttributes; /** diff --git a/bus-limiter/src/main/java/org/aoju/bus/limiter/support/peak/PeakLimiterAnnotationParser.java b/bus-limiter/src/main/java/org/aoju/bus/limiter/support/peak/PeakLimiterAnnotationParser.java index e71f229bda..53b081fb18 100644 --- a/bus-limiter/src/main/java/org/aoju/bus/limiter/support/peak/PeakLimiterAnnotationParser.java +++ b/bus-limiter/src/main/java/org/aoju/bus/limiter/support/peak/PeakLimiterAnnotationParser.java @@ -23,9 +23,9 @@ */ package org.aoju.bus.limiter.support.peak; -import org.aoju.bus.limiter.support.rate.AbstractParser; import org.aoju.bus.limiter.annotation.Peak; import org.aoju.bus.limiter.resource.LimitedResource; +import org.aoju.bus.limiter.support.rate.AbstractParser; import org.springframework.core.annotation.AnnotationAttributes; /** diff --git a/bus-oauth/src/main/java/org/aoju/bus/oauth/provider/DefaultProvider.java b/bus-oauth/src/main/java/org/aoju/bus/oauth/provider/DefaultProvider.java index 4f397f49f4..46ef5e3472 100644 --- a/bus-oauth/src/main/java/org/aoju/bus/oauth/provider/DefaultProvider.java +++ b/bus-oauth/src/main/java/org/aoju/bus/oauth/provider/DefaultProvider.java @@ -274,7 +274,7 @@ private static String md5(String str) { * 是否支持第三方登录 * * @param context context - * @param source source + * @param source source * @return true or false * @since 1.6.2 */ @@ -296,7 +296,7 @@ public static boolean isSupportedAuth(Context context, Complex source) { * 检查配置合法性。针对部分平台, 对redirect uri有特定要求。一般来说redirect uri都是http://,而对于facebook平台, redirect uri 必须是https的链接 * * @param context context - * @param source source + * @param source source * @since 1.6.2 */ public static void checkcontext(Context context, Complex source) { @@ -319,7 +319,7 @@ public static void checkcontext(Context context, Complex source) { *

* {@code v1.10.0}版本中改为传入{@code source}和{@code callback},对于不同平台使用不同参数接受code的情况统一做处理 * - * @param complex 当前授权平台 + * @param complex 当前授权平台 * @param callback 从第三方授权回调回来时传入的参数集合 * @since 1.8.0 */ diff --git a/bus-oauth/src/main/java/org/aoju/bus/oauth/provider/QqProvider.java b/bus-oauth/src/main/java/org/aoju/bus/oauth/provider/QqProvider.java index ba3e00c4d6..8841d7083f 100644 --- a/bus-oauth/src/main/java/org/aoju/bus/oauth/provider/QqProvider.java +++ b/bus-oauth/src/main/java/org/aoju/bus/oauth/provider/QqProvider.java @@ -47,7 +47,7 @@ * @since JDK 1.8+ */ public class QqProvider extends DefaultProvider { - + public QqProvider(Context context) { super(context, Registry.QQ); }