From 986b125a813bd2ec1f91ec82d925b09865cfd64a Mon Sep 17 00:00:00 2001 From: KomachiSion Date: Sat, 9 Oct 2021 14:08:04 +0800 Subject: [PATCH] For PMD. --- .../nacos/auth/context/GrpcIdentityContextBuilder.java | 7 ++++++- .../nacos/auth/context/HttpIdentityContextBuilder.java | 7 ++++++- auth/src/main/java/com/alibaba/nacos/auth/model/Page.java | 2 ++ .../embedded/AuthEmbeddedStoragePersistServiceImpl.java | 5 +++++ .../externel/AuthExternalStoragePersistServiceImpl.java | 5 +++++ 5 files changed, 24 insertions(+), 2 deletions(-) diff --git a/auth/src/main/java/com/alibaba/nacos/auth/context/GrpcIdentityContextBuilder.java b/auth/src/main/java/com/alibaba/nacos/auth/context/GrpcIdentityContextBuilder.java index 56c16bddd..ecc5897cc 100644 --- a/auth/src/main/java/com/alibaba/nacos/auth/context/GrpcIdentityContextBuilder.java +++ b/auth/src/main/java/com/alibaba/nacos/auth/context/GrpcIdentityContextBuilder.java @@ -24,6 +24,11 @@ import java.util.HashSet; import java.util.Map; import java.util.Set; +/** + * Identity context builder for Grpc. + * + * @author Nacos + */ public class GrpcIdentityContextBuilder implements IdentityContextBuilder { AuthConfigs authConfigs; @@ -53,4 +58,4 @@ public class GrpcIdentityContextBuilder implements IdentityContextBuilder { private AuthConfigs authConfigs; @@ -71,4 +76,4 @@ public class HttpIdentityContextBuilder implements IdentityContextBuilder implements Serializable { diff --git a/auth/src/main/java/com/alibaba/nacos/auth/persist/repository/embedded/AuthEmbeddedStoragePersistServiceImpl.java b/auth/src/main/java/com/alibaba/nacos/auth/persist/repository/embedded/AuthEmbeddedStoragePersistServiceImpl.java index 5b76ea926..18acb15e7 100644 --- a/auth/src/main/java/com/alibaba/nacos/auth/persist/repository/embedded/AuthEmbeddedStoragePersistServiceImpl.java +++ b/auth/src/main/java/com/alibaba/nacos/auth/persist/repository/embedded/AuthEmbeddedStoragePersistServiceImpl.java @@ -10,6 +10,11 @@ import org.springframework.stereotype.Component; import javax.annotation.PostConstruct; +/** + * Auth persist service for embedded storage. + * + * @author Nacos + */ @Conditional(value = ConditionOnEmbeddedStorage.class) @Component public class AuthEmbeddedStoragePersistServiceImpl { diff --git a/auth/src/main/java/com/alibaba/nacos/auth/persist/repository/externel/AuthExternalStoragePersistServiceImpl.java b/auth/src/main/java/com/alibaba/nacos/auth/persist/repository/externel/AuthExternalStoragePersistServiceImpl.java index 2432db937..f681867eb 100644 --- a/auth/src/main/java/com/alibaba/nacos/auth/persist/repository/externel/AuthExternalStoragePersistServiceImpl.java +++ b/auth/src/main/java/com/alibaba/nacos/auth/persist/repository/externel/AuthExternalStoragePersistServiceImpl.java @@ -26,6 +26,11 @@ import org.springframework.stereotype.Component; import javax.annotation.PostConstruct; +/** + * Auth persist service for external storage. + * + * @author Nacos + */ @SuppressWarnings(value = {"PMD.MethodReturnWrapperTypeRule", "checkstyle:linelength"}) @Conditional(value = ConditionOnExternalStorage.class) @Component