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

zhaojinchao 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 99314cf74d3 Refactor BackendConnectionException (#19995)
99314cf74d3 is described below

commit 99314cf74d3f3b23eadfb596768fc9604a4192f9
Author: Liang Zhang <[email protected]>
AuthorDate: Mon Aug 8 23:52:22 2022 +0800

    Refactor BackendConnectionException (#19995)
---
 .../proxy/backend/exception/BackendConnectionException.java         | 6 ++----
 1 file changed, 2 insertions(+), 4 deletions(-)

diff --git 
a/shardingsphere-proxy/shardingsphere-proxy-backend/src/main/java/org/apache/shardingsphere/proxy/backend/exception/BackendConnectionException.java
 
b/shardingsphere-proxy/shardingsphere-proxy-backend/src/main/java/org/apache/shardingsphere/proxy/backend/exception/BackendConnectionException.java
index a8231d91a19..a29017a79b8 100644
--- 
a/shardingsphere-proxy/shardingsphere-proxy-backend/src/main/java/org/apache/shardingsphere/proxy/backend/exception/BackendConnectionException.java
+++ 
b/shardingsphere-proxy/shardingsphere-proxy-backend/src/main/java/org/apache/shardingsphere/proxy/backend/exception/BackendConnectionException.java
@@ -28,11 +28,9 @@ import java.util.LinkedList;
 @Getter
 public final class BackendConnectionException extends Exception {
     
-    private final Collection<Exception> exceptions = new LinkedList<>();
+    private static final long serialVersionUID = -543640268050869018L;
     
-    public BackendConnectionException(final Exception ex) {
-        exceptions.add(ex);
-    }
+    private final Collection<Exception> exceptions = new LinkedList<>();
     
     public BackendConnectionException(final Collection<Exception> exceptions) {
         this.exceptions.addAll(exceptions);

Reply via email to