From b1f5134b6fabbe62740035b3345ff693b2792ae5 Mon Sep 17 00:00:00 2001 From: zhangliang Date: Wed, 29 May 2024 12:11:56 +0800 Subject: [PATCH] Remove useless getter on AbstractResultSetAdapter --- .../driver/jdbc/adapter/AbstractResultSetAdapter.java | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/jdbc/src/main/java/org/apache/shardingsphere/driver/jdbc/adapter/AbstractResultSetAdapter.java b/jdbc/src/main/java/org/apache/shardingsphere/driver/jdbc/adapter/AbstractResultSetAdapter.java index 8ba9d70a08d65..fd7715e238a09 100644 --- a/jdbc/src/main/java/org/apache/shardingsphere/driver/jdbc/adapter/AbstractResultSetAdapter.java +++ b/jdbc/src/main/java/org/apache/shardingsphere/driver/jdbc/adapter/AbstractResultSetAdapter.java @@ -40,7 +40,6 @@ */ public abstract class AbstractResultSetAdapter extends AbstractUnsupportedOperationResultSet { - @Getter private final List resultSets; @Getter @@ -48,12 +47,11 @@ public abstract class AbstractResultSetAdapter extends AbstractUnsupportedOperat private final boolean selectContainsEnhancedTable; - private boolean closed; + private final ExecutionContext executionContext; - private final ForceExecuteTemplate forceExecuteTemplate = new ForceExecuteTemplate<>(); + private final ForceExecuteTemplate forceExecuteTemplate; - @Getter - private final ExecutionContext executionContext; + private boolean closed; protected AbstractResultSetAdapter(final List resultSets, final Statement statement, final boolean selectContainsEnhancedTable, final ExecutionContext executionContext) { Preconditions.checkArgument(!resultSets.isEmpty()); @@ -61,6 +59,7 @@ protected AbstractResultSetAdapter(final List resultSets, final State this.statement = statement; this.selectContainsEnhancedTable = selectContainsEnhancedTable; this.executionContext = executionContext; + forceExecuteTemplate = new ForceExecuteTemplate<>(); } @Override