Skip to content

Commit f0557f6

Browse files
authored
Merge pull request #1858 from hazendaz/checkstyle
Checkstyle
2 parents 9877de2 + ab47578 commit f0557f6

File tree

9 files changed

+21
-20
lines changed

9 files changed

+21
-20
lines changed

src/main/java/org/apache/ibatis/annotations/package-info.java

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,4 +17,3 @@
1717
* Contains all the annotation that are used in mapper interfaces.
1818
*/
1919
package org.apache.ibatis.annotations;
20-

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

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -46,18 +46,20 @@ public class ProviderSqlSource implements SqlSource {
4646
private final Integer providerContextIndex;
4747

4848
/**
49-
* @deprecated Since 3.5.3, Please use the {@link #ProviderSqlSource(Configuration, Annotation, Class, Method)} instead of this.
5049
* This constructor will remove at a future version.
50+
*
51+
* @deprecated Since 3.5.3, Please use the {@link #ProviderSqlSource(Configuration, Annotation, Class, Method)} instead of this.
5152
*/
5253
@Deprecated
5354
public ProviderSqlSource(Configuration configuration, Object provider) {
5455
this(configuration, provider, null, null);
5556
}
5657

5758
/**
59+
* This constructor will remove at a future version.
60+
*
5861
* @since 3.4.5
5962
* @deprecated Since 3.5.3, Please use the {@link #ProviderSqlSource(Configuration, Annotation, Class, Method)} instead of this.
60-
* This constructor will remove at a future version.
6163
*/
6264
@Deprecated
6365
public ProviderSqlSource(Configuration configuration, Object provider, Class<?> mapperType, Method mapperMethod) {
@@ -138,7 +140,7 @@ private SqlSource createSqlSource(Object parameterObject) {
138140
if (parameterObject instanceof Map) {
139141
int bindParameterCount = providerMethodParameterTypes.length - (providerContext == null ? 0 : 1);
140142
if (bindParameterCount == 1 &&
141-
(providerMethodParameterTypes[Integer.valueOf(0).equals(providerContextIndex) ? 1 : 0].isAssignableFrom(parameterObject.getClass()))) {
143+
(providerMethodParameterTypes[Integer.valueOf(0).equals(providerContextIndex) ? 1 : 0].isAssignableFrom(parameterObject.getClass()))) {
142144
sql = invokeProviderMethod(extractProviderMethodArguments(parameterObject));
143145
} else {
144146
@SuppressWarnings("unchecked")

src/main/java/org/apache/ibatis/builder/xml/XMLMapperBuilder.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -379,7 +379,7 @@ private ResultMapping buildResultMappingFromContext(XNode context, Class<?> resu
379379
String jdbcType = context.getStringAttribute("jdbcType");
380380
String nestedSelect = context.getStringAttribute("select");
381381
String nestedResultMap = context.getStringAttribute("resultMap", () ->
382-
processNestedResultMappings(context, Collections.emptyList(), resultType));
382+
processNestedResultMappings(context, Collections.emptyList(), resultType));
383383
String notNullColumn = context.getStringAttribute("notNullColumn");
384384
String columnPrefix = context.getStringAttribute("columnPrefix");
385385
String typeHandler = context.getStringAttribute("typeHandler");

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ private ErrorContext() {
3535
}
3636

3737
public static ErrorContext instance() {
38-
return LOCAL.get();
38+
return LOCAL.get();
3939
}
4040

4141
public ErrorContext store() {

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/**
2-
* Copyright 2009-2018 the original author or authors.
2+
* Copyright 2009-2020 the original author or authors.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
@@ -69,8 +69,8 @@ public static void setDefaultClassLoader(ClassLoader defaultClassLoader) {
6969
* @throws java.io.IOException If the resource cannot be found or read
7070
*/
7171
public static URL getResourceURL(String resource) throws IOException {
72-
// issue #625
73-
return getResourceURL(null, resource);
72+
// issue #625
73+
return getResourceURL(null, resource);
7474
}
7575

7676
/**

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/**
2-
* Copyright 2009-2019 the original author or authors.
2+
* Copyright 2009-2020 the original author or authors.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
@@ -102,7 +102,7 @@ public static void addImplClass(Class<? extends VFS> clazz) {
102102
protected static Class<?> getClass(String className) {
103103
try {
104104
return Thread.currentThread().getContextClassLoader().loadClass(className);
105-
// return ReflectUtil.findClass(className);
105+
// return ReflectUtil.findClass(className);
106106
} catch (ClassNotFoundException e) {
107107
if (log.isDebugEnabled()) {
108108
log.debug("Class not found: " + className);

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

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/**
2-
* Copyright 2009-2019 the original author or authors.
2+
* Copyright 2009-2020 the original author or authors.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
@@ -395,20 +395,20 @@ public String toString() {
395395
}
396396

397397
private static class SafeAppendable {
398-
private final Appendable a;
398+
private final Appendable appendable;
399399
private boolean empty = true;
400400

401401
public SafeAppendable(Appendable a) {
402402
super();
403-
this.a = a;
403+
this.appendable = a;
404404
}
405405

406406
public SafeAppendable append(CharSequence s) {
407407
try {
408408
if (empty && s.length() > 0) {
409409
empty = false;
410410
}
411-
a.append(s);
411+
appendable.append(s);
412412
} catch (IOException e) {
413413
throw new RuntimeException(e);
414414
}

src/main/java/org/apache/ibatis/logging/LogFactory.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/**
2-
* Copyright 2009-2019 the original author or authors.
2+
* Copyright 2009-2020 the original author or authors.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
@@ -43,8 +43,8 @@ private LogFactory() {
4343
// disable construction
4444
}
4545

46-
public static Log getLog(Class<?> aClass) {
47-
return getLog(aClass.getName());
46+
public static Log getLog(Class<?> clazz) {
47+
return getLog(clazz.getName());
4848
}
4949

5050
public static Log getLog(String logger) {

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/**
2-
* Copyright 2009-2019 the original author or authors.
2+
* Copyright 2009-2020 the original author or authors.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
@@ -971,7 +971,7 @@ public V get(Object key) {
971971
}
972972

973973
protected static class Ambiguity {
974-
final private String subject;
974+
private final String subject;
975975

976976
public Ambiguity(String subject) {
977977
this.subject = subject;

0 commit comments

Comments
 (0)