Skip to content

Commit 666c130

Browse files
committed
[ci] Formatting
1 parent 31ccf09 commit 666c130

21 files changed

+120
-109
lines changed

src/main/java/org/apache/ibatis/binding/MapperRegistry.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -93,9 +93,9 @@ public Collection<Class<?>> getMappers() {
9393
* Adds the mappers.
9494
*
9595
* @param packageName
96-
* the package name
96+
* the package name
9797
* @param superType
98-
* the super type
98+
* the super type
9999
* @since 3.2.2
100100
*/
101101
public void addMappers(String packageName, Class<?> superType) {
@@ -111,7 +111,7 @@ public void addMappers(String packageName, Class<?> superType) {
111111
* Adds the mappers.
112112
*
113113
* @param packageName
114-
* the package name
114+
* the package name
115115
* @since 3.2.2
116116
*/
117117
public void addMappers(String packageName) {

src/main/java/org/apache/ibatis/builder/MapperBuilderAssistant.java

Lines changed: 33 additions & 34 deletions
Original file line numberDiff line numberDiff line change
@@ -299,46 +299,46 @@ public MappedStatement addMappedStatement(
299299
}
300300

301301
/**
302-
* Backward compatibility signature 'addMappedStatement'.
302+
* Backward compatibility signature 'addMappedStatement'.
303303
*
304304
* @param id
305-
* the id
305+
* the id
306306
* @param sqlSource
307-
* the sql source
307+
* the sql source
308308
* @param statementType
309-
* the statement type
309+
* the statement type
310310
* @param sqlCommandType
311-
* the sql command type
311+
* the sql command type
312312
* @param fetchSize
313-
* the fetch size
313+
* the fetch size
314314
* @param timeout
315-
* the timeout
315+
* the timeout
316316
* @param parameterMap
317-
* the parameter map
317+
* the parameter map
318318
* @param parameterType
319-
* the parameter type
319+
* the parameter type
320320
* @param resultMap
321-
* the result map
321+
* the result map
322322
* @param resultType
323-
* the result type
323+
* the result type
324324
* @param resultSetType
325-
* the result set type
325+
* the result set type
326326
* @param flushCache
327-
* the flush cache
327+
* the flush cache
328328
* @param useCache
329-
* the use cache
329+
* the use cache
330330
* @param resultOrdered
331-
* the result ordered
331+
* the result ordered
332332
* @param keyGenerator
333-
* the key generator
333+
* the key generator
334334
* @param keyProperty
335-
* the key property
335+
* the key property
336336
* @param keyColumn
337-
* the key column
337+
* the key column
338338
* @param databaseId
339-
* the database id
339+
* the database id
340340
* @param lang
341-
* the lang
341+
* the lang
342342
* @return the mapped statement
343343
*/
344344
public MappedStatement addMappedStatement(String id, SqlSource sqlSource, StatementType statementType,
@@ -446,32 +446,31 @@ public ResultMapping buildResultMapping(
446446
.build();
447447
}
448448

449-
450449
/**
451-
* Backward compatibility signature 'buildResultMapping'.
450+
* Backward compatibility signature 'buildResultMapping'.
452451
*
453452
* @param resultType
454-
* the result type
453+
* the result type
455454
* @param property
456-
* the property
455+
* the property
457456
* @param column
458-
* the column
457+
* the column
459458
* @param javaType
460-
* the java type
459+
* the java type
461460
* @param jdbcType
462-
* the jdbc type
461+
* the jdbc type
463462
* @param nestedSelect
464-
* the nested select
463+
* the nested select
465464
* @param nestedResultMap
466-
* the nested result map
465+
* the nested result map
467466
* @param notNullColumn
468-
* the not null column
467+
* the not null column
469468
* @param columnPrefix
470-
* the column prefix
469+
* the column prefix
471470
* @param typeHandler
472-
* the type handler
471+
* the type handler
473472
* @param flags
474-
* the flags
473+
* the flags
475474
* @return the result mapping
476475
*/
477476
public ResultMapping buildResultMapping(Class<?> resultType, String property, String column, Class<?> javaType,
@@ -486,7 +485,7 @@ public ResultMapping buildResultMapping(Class<?> resultType, String property, St
486485
* Gets the language driver.
487486
*
488487
* @param langClass
489-
* the lang class
488+
* the lang class
490489
* @return the language driver
491490
* @deprecated Use {@link Configuration#getLanguageDriver(Class)}
492491
*/

src/main/java/org/apache/ibatis/builder/annotation/ProviderSqlSource.java

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -49,9 +49,9 @@ public class ProviderSqlSource implements SqlSource {
4949
* This constructor will remove at a future version.
5050
*
5151
* @param configuration
52-
* the configuration
52+
* the configuration
5353
* @param provider
54-
* the provider
54+
* the provider
5555
* @deprecated Since 3.5.3, Please use the {@link #ProviderSqlSource(Configuration, Annotation, Class, Method)}
5656
* instead of this.
5757
*/
@@ -64,13 +64,13 @@ public ProviderSqlSource(Configuration configuration, Object provider) {
6464
* This constructor will remove at a future version.
6565
*
6666
* @param configuration
67-
* the configuration
67+
* the configuration
6868
* @param provider
69-
* the provider
69+
* the provider
7070
* @param mapperType
71-
* the mapper type
71+
* the mapper type
7272
* @param mapperMethod
73-
* the mapper method
73+
* the mapper method
7474
* @since 3.4.5
7575
* @deprecated Since 3.5.3, Please use the {@link #ProviderSqlSource(Configuration, Annotation, Class, Method)} instead of this.
7676
*/
@@ -83,13 +83,13 @@ public ProviderSqlSource(Configuration configuration, Object provider, Class<?>
8383
* Instantiates a new provider sql source.
8484
*
8585
* @param configuration
86-
* the configuration
86+
* the configuration
8787
* @param provider
88-
* the provider
88+
* the provider
8989
* @param mapperType
90-
* the mapper type
90+
* the mapper type
9191
* @param mapperMethod
92-
* the mapper method
92+
* the mapper method
9393
* @since 3.5.3
9494
*/
9595
public ProviderSqlSource(Configuration configuration, Annotation provider, Class<?> mapperType, Method mapperMethod) {

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -566,7 +566,7 @@ protected boolean pingConnection(PooledConnection conn) {
566566
try {
567567
conn.getRealConnection().close();
568568
} catch (Exception e2) {
569-
//ignore
569+
// ignore
570570
}
571571
result = false;
572572
if (log.isDebugEnabled()) {

src/main/java/org/apache/ibatis/executor/resultset/ResultSetWrapper.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -94,9 +94,9 @@ public JdbcType getJdbcType(String columnName) {
9494
* If not found it gets the column JDBC type and tries to get a handler for it.
9595
*
9696
* @param propertyType
97-
* the property type
97+
* the property type
9898
* @param columnName
99-
* the column name
99+
* the column name
100100
* @return the type handler
101101
*/
102102
public TypeHandler<?> getTypeHandler(Class<?> propertyType, String columnName) {

src/main/java/org/apache/ibatis/io/DefaultVFS.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -213,7 +213,7 @@ protected List<String> listResources(JarInputStream jar, String path) throws IOE
213213
* @param url The URL of the JAR entry.
214214
* @return The URL of the JAR file, if one is found. Null if not.
215215
* @throws MalformedURLException
216-
* the malformed URL exception
216+
* the malformed URL exception
217217
*/
218218
protected URL findJarForResource(URL url) throws MalformedURLException {
219219
if (log.isDebugEnabled()) {

src/main/java/org/apache/ibatis/io/JBoss6VFS.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,8 @@ protected static synchronized void initialize() {
111111
* Verifies that the provided object reference is null. If it is null, then this VFS is marked
112112
* as invalid for the current environment.
113113
*
114-
* @param <T> the generic type
114+
* @param <T>
115+
* the generic type
115116
* @param object
116117
* The object reference to check for null.
117118
* @return the t

src/main/java/org/apache/ibatis/io/ResolverUtil.java

Lines changed: 10 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,8 @@
5555
* </pre>
5656
*
5757
* @author Tim Fennell
58-
* @param <T> the generic type
58+
* @param <T>
59+
* the generic type
5960
*/
6061
public class ResolverUtil<T> {
6162

@@ -74,7 +75,8 @@ public interface Test {
7475
* Will be called repeatedly with candidate classes. Must return True if a class
7576
* is to be included in the results, false otherwise.
7677
*
77-
* @param type the type
78+
* @param type
79+
* the type
7880
* @return true, if successful
7981
*/
8082
boolean matches(Class<?> type);
@@ -90,9 +92,10 @@ public static class IsA implements Test {
9092
private Class<?> parent;
9193

9294
/**
93-
* Constructs an IsA test using the supplied Class as the parent class/interface.
95+
* Constructs an IsA test using the supplied Class as the parent class/interface.
9496
*
95-
* @param parentType the parent type
97+
* @param parentType
98+
* the parent type
9699
*/
97100
public IsA(Class<?> parentType) {
98101
this.parent = parentType;
@@ -120,9 +123,10 @@ public static class AnnotatedWith implements Test {
120123
private Class<? extends Annotation> annotation;
121124

122125
/**
123-
* Constructs an AnnotatedWith test for the specified annotation type.
126+
* Constructs an AnnotatedWith test for the specified annotation type.
124127
*
125-
* @param annotation the annotation
128+
* @param annotation
129+
* the annotation
126130
*/
127131
public AnnotatedWith(Class<? extends Annotation> annotation) {
128132
this.annotation = annotation;

src/main/java/org/apache/ibatis/io/VFS.java

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -101,10 +101,10 @@ public static void addImplClass(Class<? extends VFS> clazz) {
101101
}
102102

103103
/**
104-
* Get a class by name. If the class is not found then return null.
104+
* Get a class by name. If the class is not found then return null.
105105
*
106106
* @param className
107-
* the class name
107+
* the class name
108108
* @return the class
109109
*/
110110
protected static Class<?> getClass(String className) {
@@ -158,9 +158,9 @@ protected static Method getMethod(Class<?> clazz, String methodName, Class<?>...
158158
* The parameters to pass to the method.
159159
* @return Whatever the method returns.
160160
* @throws IOException
161-
* If I/O errors occur
161+
* If I/O errors occur
162162
* @throws RuntimeException
163-
* If anything else goes wrong
163+
* If anything else goes wrong
164164
*/
165165
@SuppressWarnings("unchecked")
166166
protected static <T> T invoke(Method method, Object object, Object... parameters)
@@ -191,7 +191,7 @@ protected static List<URL> getResources(String path) throws IOException {
191191
}
192192

193193
/**
194-
* Return true if the {@link VFS} implementation is valid for the current environment.
194+
* Return true if the {@link VFS} implementation is valid for the current environment.
195195
*
196196
* @return true, if is valid
197197
*/

0 commit comments

Comments
 (0)