Skip to content

Commit 805235c

Browse files
committed
[ci] Remove duplicate initializers
1 parent 8a13d24 commit 805235c

File tree

9 files changed

+17
-17
lines changed

9 files changed

+17
-17
lines changed

src/main/java/org/apache/ibatis/cursor/defaults/DefaultCursor.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ public class DefaultCursor<T> implements Cursor<T> {
4545
private final ObjectWrapperResultHandler<T> objectWrapperResultHandler = new ObjectWrapperResultHandler<T>();
4646

4747
private final CursorIterator cursorIterator = new CursorIterator();
48-
private boolean iteratorRetrieved = false;
48+
private boolean iteratorRetrieved;
4949

5050
private CursorStatus status = CursorStatus.CREATED;
5151
private int indexWithRowBound = -1;

src/main/java/org/apache/ibatis/datasource/pooled/PooledDataSource.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -51,8 +51,8 @@ public class PooledDataSource implements DataSource {
5151
protected int poolMaximumCheckoutTime = 20000;
5252
protected int poolTimeToWait = 20000;
5353
protected String poolPingQuery = "NO PING QUERY SET";
54-
protected boolean poolPingEnabled = false;
55-
protected int poolPingConnectionsNotUsedFor = 0;
54+
protected boolean poolPingEnabled;
55+
protected int poolPingConnectionsNotUsedFor;
5656

5757
private int expectedConnectionTypeCode;
5858

src/main/java/org/apache/ibatis/executor/BaseExecutor.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ public abstract class BaseExecutor implements Executor {
5959
protected PerpetualCache localOutputParameterCache;
6060
protected Configuration configuration;
6161

62-
protected int queryStack = 0;
62+
protected int queryStack;
6363
private boolean closed;
6464

6565
protected BaseExecutor(Configuration configuration, Transaction transaction) {

src/main/java/org/apache/ibatis/jdbc/ScriptRunner.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ public class ScriptRunner {
4848
private PrintWriter errorLogWriter = new PrintWriter(System.err);
4949

5050
private String delimiter = DEFAULT_DELIMITER;
51-
private boolean fullLineDelimiter = false;
51+
private boolean fullLineDelimiter;
5252

5353
public ScriptRunner(Connection connection) {
5454
this.connection = connection;

src/main/java/org/apache/ibatis/logging/jdbc/ResultSetLogger.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ public final class ResultSetLogger extends BaseJdbcLogger implements InvocationH
3939

4040
private static Set<Integer> BLOB_TYPES = new HashSet<Integer>();
4141
private boolean first = true;
42-
private int rows = 0;
42+
private int rows;
4343
private ResultSet rs;
4444
private Set<Integer> blobColumns = new HashSet<Integer>();
4545

src/main/java/org/apache/ibatis/reflection/ParamNameResolver.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,8 +34,8 @@ public class ParamNameResolver {
3434

3535
private static final String GENERIC_NAME_PREFIX = "param";
3636
private static final String PARAMETER_CLASS = "java.lang.reflect.Parameter";
37-
private static Method GET_NAME = null;
38-
private static Method GET_PARAMS = null;
37+
private static Method GET_NAME;
38+
private static Method GET_PARAMS;
3939

4040
static {
4141
try {

src/main/java/org/apache/ibatis/reflection/wrapper/ObjectWrapperFactory.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
public interface ObjectWrapperFactory {
2424

2525
boolean hasWrapperFor(Object object);
26-
26+
2727
ObjectWrapper getWrapperFor(MetaObject metaObject, Object object);
28-
28+
2929
}

src/main/java/org/apache/ibatis/scripting/LanguageDriverRegistry.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ public class LanguageDriverRegistry {
2525

2626
private final Map<Class<?>, LanguageDriver> LANGUAGE_DRIVER_MAP = new HashMap<Class<?>, LanguageDriver>();
2727

28-
private Class<?> defaultDriverClass = null;
28+
private Class<?> defaultDriverClass;
2929

3030
public void register(Class<?> cls) {
3131
if (cls == null) {

src/main/java/org/apache/ibatis/session/Configuration.java

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -97,17 +97,17 @@ public class Configuration {
9797

9898
protected Environment environment;
9999

100-
protected boolean safeRowBoundsEnabled = false;
100+
protected boolean safeRowBoundsEnabled;
101101
protected boolean safeResultHandlerEnabled = true;
102-
protected boolean mapUnderscoreToCamelCase = false;
103-
protected boolean aggressiveLazyLoading = false;
102+
protected boolean mapUnderscoreToCamelCase;
103+
protected boolean aggressiveLazyLoading;
104104
protected boolean multipleResultSetsEnabled = true;
105-
protected boolean useGeneratedKeys = false;
105+
protected boolean useGeneratedKeys;
106106
protected boolean useColumnLabel = true;
107107
protected boolean cacheEnabled = true;
108-
protected boolean callSettersOnNulls = false;
108+
protected boolean callSettersOnNulls;
109109
protected boolean useActualParamName = true;
110-
protected boolean returnInstanceForEmptyRow = false;
110+
protected boolean returnInstanceForEmptyRow;
111111

112112
protected String logPrefix;
113113
protected Class <? extends Log> logImpl;

0 commit comments

Comments
 (0)