Skip to content

Commit

Permalink
Minor correction: boolean can never be null
Browse files Browse the repository at this point in the history
  • Loading branch information
harawata committed Nov 19, 2022
1 parent 7927dfc commit aad75eb
Showing 1 changed file with 2 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -268,7 +268,6 @@ public MappedStatement addMappedStatement(
}

id = applyCurrentNamespace(id, false);
boolean isSelect = sqlCommandType == SqlCommandType.SELECT;

MappedStatement.Builder statementBuilder = new MappedStatement.Builder(configuration, id, sqlSource, sqlCommandType)
.resource(resource)
Expand All @@ -284,8 +283,8 @@ public MappedStatement addMappedStatement(
.resultSets(resultSets)
.resultMaps(getStatementResultMaps(resultMap, resultType, id))
.resultSetType(resultSetType)
.flushCacheRequired(valueOrDefault(flushCache, !isSelect))
.useCache(valueOrDefault(useCache, isSelect))
.flushCacheRequired(flushCache)
.useCache(useCache)
.cache(currentCache);

ParameterMap statementParameterMap = getStatementParameterMap(parameterMap, parameterType, id);
Expand Down

0 comments on commit aad75eb

Please sign in to comment.