This is an automated email from the ASF dual-hosted git repository.

duanzhengqiang pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/shardingsphere.git


The following commit(s) were added to refs/heads/master by this push:
     new 5f704c45c1b Fix sonar issues (#30687) (#30689)
5f704c45c1b is described below

commit 5f704c45c1b6e29b6b528b3e6b1ed4a7683bf9ef
Author: Cong Hu <[email protected]>
AuthorDate: Fri Mar 29 12:27:30 2024 +0800

    Fix sonar issues (#30687) (#30689)
    
    * Fix sonar issue
    
    * Fix sonar issue
    
    Co-authored-by: Liang Zhang <[email protected]>
---
 .../infra/util/directory/ClasspathResourceDirectoryReader.java       | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git 
a/infra/util/src/main/java/org/apache/shardingsphere/infra/util/directory/ClasspathResourceDirectoryReader.java
 
b/infra/util/src/main/java/org/apache/shardingsphere/infra/util/directory/ClasspathResourceDirectoryReader.java
index eab4a8165a4..47c575e376a 100644
--- 
a/infra/util/src/main/java/org/apache/shardingsphere/infra/util/directory/ClasspathResourceDirectoryReader.java
+++ 
b/infra/util/src/main/java/org/apache/shardingsphere/infra/util/directory/ClasspathResourceDirectoryReader.java
@@ -17,7 +17,8 @@
 
 package org.apache.shardingsphere.infra.util.directory;
 
-import lombok.RequiredArgsConstructor;
+import lombok.AccessLevel;
+import lombok.NoArgsConstructor;
 import lombok.SneakyThrows;
 
 import java.io.IOException;
@@ -44,7 +45,7 @@ import java.util.stream.Stream;
 /**
  * Classpath resource directory reader.
  */
-@RequiredArgsConstructor
+@NoArgsConstructor(access = AccessLevel.PRIVATE)
 public class ClasspathResourceDirectoryReader {
     
     private static final Collection<String> JAR_URL_PROTOCOLS = new 
HashSet<>(Arrays.asList("jar", "war", "zip", "wsjar", "vfszip"));

Reply via email to