@@ -507,7 +507,7 @@ private List<UnMappedColumnAutoMapping> createAutomaticMappings(ResultSetWrapper
507
507
private boolean applyAutomaticMappings (ResultSetWrapper rsw , ResultMap resultMap , MetaObject metaObject , String columnPrefix ) throws SQLException {
508
508
List <UnMappedColumnAutoMapping > autoMapping = createAutomaticMappings (rsw , resultMap , metaObject , columnPrefix );
509
509
boolean foundValues = false ;
510
- if (autoMapping .size () > 0 ) {
510
+ if (! autoMapping .isEmpty () ) {
511
511
for (UnMappedColumnAutoMapping mapping : autoMapping ) {
512
512
final Object value = mapping .typeHandler .getResult (rsw .getResultSet (), mapping .column );
513
513
if (value != null ) {
@@ -1012,7 +1012,7 @@ private CacheKey createRowKey(ResultMap resultMap, ResultSetWrapper rsw, String
1012
1012
final CacheKey cacheKey = new CacheKey ();
1013
1013
cacheKey .update (resultMap .getId ());
1014
1014
List <ResultMapping > resultMappings = getResultMappingsForRowKey (resultMap );
1015
- if (resultMappings .size () == 0 ) {
1015
+ if (resultMappings .isEmpty () ) {
1016
1016
if (Map .class .isAssignableFrom (resultMap .getType ())) {
1017
1017
createRowKeyForMap (rsw , cacheKey );
1018
1018
} else {
@@ -1043,7 +1043,7 @@ private CacheKey combineKeys(CacheKey rowKey, CacheKey parentRowKey) {
1043
1043
1044
1044
private List <ResultMapping > getResultMappingsForRowKey (ResultMap resultMap ) {
1045
1045
List <ResultMapping > resultMappings = resultMap .getIdResultMappings ();
1046
- if (resultMappings .size () == 0 ) {
1046
+ if (resultMappings .isEmpty () ) {
1047
1047
resultMappings = resultMap .getPropertyResultMappings ();
1048
1048
}
1049
1049
return resultMappings ;
0 commit comments