Skip to content

Commit 927ef19

Browse files
committed
[ci] Checkstyle cleanup
1 parent 445168d commit 927ef19

File tree

3 files changed

+31
-31
lines changed

3 files changed

+31
-31
lines changed

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

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,11 @@
1515
*/
1616
package org.apache.ibatis.cursor.defaults;
1717

18+
import java.sql.ResultSet;
19+
import java.sql.SQLException;
20+
import java.util.Iterator;
21+
import java.util.NoSuchElementException;
22+
1823
import org.apache.ibatis.cursor.Cursor;
1924
import org.apache.ibatis.executor.resultset.DefaultResultSetHandler;
2025
import org.apache.ibatis.executor.resultset.ResultSetWrapper;
@@ -23,11 +28,6 @@
2328
import org.apache.ibatis.session.ResultHandler;
2429
import org.apache.ibatis.session.RowBounds;
2530

26-
import java.sql.ResultSet;
27-
import java.sql.SQLException;
28-
import java.util.Iterator;
29-
import java.util.NoSuchElementException;
30-
3131
/**
3232
* This is the default implementation of a MyBatis Cursor.
3333
* This implementation is not thread safe.

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

Lines changed: 18 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ class PooledConnection implements InvocationHandler {
4242
private boolean valid;
4343

4444
/**
45-
* Constructor for SimplePooledConnection that uses the Connection and PooledDataSource passed in
45+
* Constructor for SimplePooledConnection that uses the Connection and PooledDataSource passed in.
4646
*
4747
* @param connection - the connection that is to be presented as a pooled connection
4848
* @param dataSource - the dataSource that the connection is from
@@ -58,14 +58,14 @@ public PooledConnection(Connection connection, PooledDataSource dataSource) {
5858
}
5959

6060
/**
61-
* Invalidates the connection
61+
* Invalidates the connection.
6262
*/
6363
public void invalidate() {
6464
valid = false;
6565
}
6666

6767
/**
68-
* Method to see if the connection is usable
68+
* Method to see if the connection is usable.
6969
*
7070
* @return True if the connection is usable
7171
*/
@@ -74,7 +74,7 @@ public boolean isValid() {
7474
}
7575

7676
/**
77-
* Getter for the *real* connection that this wraps
77+
* Getter for the *real* connection that this wraps.
7878
*
7979
* @return The connection
8080
*/
@@ -83,7 +83,7 @@ public Connection getRealConnection() {
8383
}
8484

8585
/**
86-
* Getter for the proxy for the connection
86+
* Getter for the proxy for the connection.
8787
*
8888
* @return The proxy
8989
*/
@@ -92,7 +92,7 @@ public Connection getProxyConnection() {
9292
}
9393

9494
/**
95-
* Gets the hashcode of the real connection (or 0 if it is null)
95+
* Gets the hashcode of the real connection (or 0 if it is null).
9696
*
9797
* @return The hashcode of the real connection (or 0 if it is null)
9898
*/
@@ -101,7 +101,7 @@ public int getRealHashCode() {
101101
}
102102

103103
/**
104-
* Getter for the connection type (based on url + user + password)
104+
* Getter for the connection type (based on url + user + password).
105105
*
106106
* @return The connection type
107107
*/
@@ -110,7 +110,7 @@ public int getConnectionTypeCode() {
110110
}
111111

112112
/**
113-
* Setter for the connection type
113+
* Setter for the connection type.
114114
*
115115
* @param connectionTypeCode - the connection type
116116
*/
@@ -119,7 +119,7 @@ public void setConnectionTypeCode(int connectionTypeCode) {
119119
}
120120

121121
/**
122-
* Getter for the time that the connection was created
122+
* Getter for the time that the connection was created.
123123
*
124124
* @return The creation timestamp
125125
*/
@@ -128,7 +128,7 @@ public long getCreatedTimestamp() {
128128
}
129129

130130
/**
131-
* Setter for the time that the connection was created
131+
* Setter for the time that the connection was created.
132132
*
133133
* @param createdTimestamp - the timestamp
134134
*/
@@ -137,7 +137,7 @@ public void setCreatedTimestamp(long createdTimestamp) {
137137
}
138138

139139
/**
140-
* Getter for the time that the connection was last used
140+
* Getter for the time that the connection was last used.
141141
*
142142
* @return - the timestamp
143143
*/
@@ -146,7 +146,7 @@ public long getLastUsedTimestamp() {
146146
}
147147

148148
/**
149-
* Setter for the time that the connection was last used
149+
* Setter for the time that the connection was last used.
150150
*
151151
* @param lastUsedTimestamp - the timestamp
152152
*/
@@ -155,7 +155,7 @@ public void setLastUsedTimestamp(long lastUsedTimestamp) {
155155
}
156156

157157
/**
158-
* Getter for the time since this connection was last used
158+
* Getter for the time since this connection was last used.
159159
*
160160
* @return - the time since the last use
161161
*/
@@ -164,7 +164,7 @@ public long getTimeElapsedSinceLastUse() {
164164
}
165165

166166
/**
167-
* Getter for the age of the connection
167+
* Getter for the age of the connection.
168168
*
169169
* @return the age
170170
*/
@@ -173,7 +173,7 @@ public long getAge() {
173173
}
174174

175175
/**
176-
* Getter for the timestamp that this connection was checked out
176+
* Getter for the timestamp that this connection was checked out.
177177
*
178178
* @return the timestamp
179179
*/
@@ -182,7 +182,7 @@ public long getCheckoutTimestamp() {
182182
}
183183

184184
/**
185-
* Setter for the timestamp that this connection was checked out
185+
* Setter for the timestamp that this connection was checked out.
186186
*
187187
* @param timestamp the timestamp
188188
*/
@@ -191,7 +191,7 @@ public void setCheckoutTimestamp(long timestamp) {
191191
}
192192

193193
/**
194-
* Getter for the time that this connection has been checked out
194+
* Getter for the time that this connection has been checked out.
195195
*
196196
* @return the time
197197
*/
@@ -205,7 +205,7 @@ public int hashCode() {
205205
}
206206

207207
/**
208-
* Allows comparing this connection to another
208+
* Allows comparing this connection to another.
209209
*
210210
* @param obj - the other connection to test for equality
211211
* @see Object#equals(Object)

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

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -150,7 +150,7 @@ public void setDriverProperties(Properties driverProps) {
150150
}
151151

152152
/**
153-
* The maximum number of active connections
153+
* The maximum number of active connections.
154154
*
155155
* @param poolMaximumActiveConnections The maximum number of active connections
156156
*/
@@ -160,7 +160,7 @@ public void setPoolMaximumActiveConnections(int poolMaximumActiveConnections) {
160160
}
161161

162162
/**
163-
* The maximum number of idle connections
163+
* The maximum number of idle connections.
164164
*
165165
* @param poolMaximumIdleConnections The maximum number of idle connections
166166
*/
@@ -171,7 +171,7 @@ public void setPoolMaximumIdleConnections(int poolMaximumIdleConnections) {
171171

172172
/**
173173
* The maximum number of tolerance for bad connection happens in one thread
174-
* which are applying for new {@link PooledConnection}
174+
* which are applying for new {@link PooledConnection}.
175175
*
176176
* @param poolMaximumLocalBadConnectionTolerance
177177
* max tolerance for bad connection happens in one thread
@@ -195,7 +195,7 @@ public void setPoolMaximumCheckoutTime(int poolMaximumCheckoutTime) {
195195
}
196196

197197
/**
198-
* The time to wait before retrying to get a connection
198+
* The time to wait before retrying to get a connection.
199199
*
200200
* @param poolTimeToWait The time to wait
201201
*/
@@ -205,7 +205,7 @@ public void setPoolTimeToWait(int poolTimeToWait) {
205205
}
206206

207207
/**
208-
* The query to be used to check a connection
208+
* The query to be used to check a connection.
209209
*
210210
* @param poolPingQuery The query
211211
*/
@@ -295,8 +295,8 @@ public int getPoolPingConnectionsNotUsedFor() {
295295
return poolPingConnectionsNotUsedFor;
296296
}
297297

298-
/*
299-
* Closes all active and idle connections in the pool
298+
/**
299+
* Closes all active and idle connections in the pool.
300300
*/
301301
public void forceCloseAll() {
302302
synchronized (state) {
@@ -580,7 +580,7 @@ public boolean isWrapperFor(Class<?> iface) {
580580
}
581581

582582
public Logger getParentLogger() {
583-
return Logger.getLogger(Logger.GLOBAL_LOGGER_NAME); // requires JDK version 1.6
583+
return Logger.getLogger(Logger.GLOBAL_LOGGER_NAME);
584584
}
585585

586586
}

0 commit comments

Comments
 (0)