Skip to content

Commit cb8b4e8

Browse files
committed
[ci] Formatting
1 parent fc0403d commit cb8b4e8

File tree

4 files changed

+8
-6
lines changed

4 files changed

+8
-6
lines changed

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ public ProviderSqlSource(Configuration configuration, Object provider) {
7676
*/
7777
@Deprecated
7878
public ProviderSqlSource(Configuration configuration, Object provider, Class<?> mapperType, Method mapperMethod) {
79-
this(configuration, (Annotation) provider , mapperType, mapperMethod);
79+
this(configuration, (Annotation) provider, mapperType, mapperMethod);
8080
}
8181

8282
/**
@@ -162,8 +162,8 @@ private SqlSource createSqlSource(Object parameterObject) {
162162
String sql;
163163
if (parameterObject instanceof Map) {
164164
int bindParameterCount = providerMethodParameterTypes.length - (providerContext == null ? 0 : 1);
165-
if (bindParameterCount == 1 &&
166-
(providerMethodParameterTypes[Integer.valueOf(0).equals(providerContextIndex) ? 1 : 0].isAssignableFrom(parameterObject.getClass()))) {
165+
if (bindParameterCount == 1
166+
&& providerMethodParameterTypes[Integer.valueOf(0).equals(providerContextIndex) ? 1 : 0].isAssignableFrom(parameterObject.getClass())) {
167167
sql = invokeProviderMethod(extractProviderMethodArguments(parameterObject));
168168
} else {
169169
@SuppressWarnings("unchecked")

src/main/java/org/apache/ibatis/cache/CacheKey.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,10 +30,12 @@ public class CacheKey implements Cloneable, Serializable {
3030
private static final long serialVersionUID = 1146682552656046210L;
3131

3232
public static final CacheKey NULL_CACHE_KEY = new CacheKey() {
33+
3334
@Override
3435
public void update(Object object) {
3536
throw new CacheException("Not allowed to update a null cache key instance.");
3637
}
38+
3739
@Override
3840
public void updateAll(Object[] objects) {
3941
throw new CacheException("Not allowed to update a null cache key instance.");

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ public List<JdbcType> getJdbcTypes() {
8080
}
8181

8282
public JdbcType getJdbcType(String columnName) {
83-
for (int i = 0 ; i < columnNames.size(); i++) {
83+
for (int i = 0; i < columnNames.size(); i++) {
8484
if (columnNames.get(i).equalsIgnoreCase(columnName)) {
8585
return jdbcTypes.get(i);
8686
}

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -289,8 +289,8 @@ protected void addIfMatching(Test test, String fqn) {
289289
matches.add((Class<T>) type);
290290
}
291291
} catch (Throwable t) {
292-
log.warn("Could not examine class '" + fqn + "'" + " due to a " +
293-
t.getClass().getName() + " with message: " + t.getMessage());
292+
log.warn("Could not examine class '" + fqn + "'" + " due to a "
293+
+ t.getClass().getName() + " with message: " + t.getMessage());
294294
}
295295
}
296296
}

0 commit comments

Comments
 (0)