Skip to content

Commit

Permalink
Merge pull request #985 from hazendaz/tests
Browse files Browse the repository at this point in the history
[cleanup] More cleanup
  • Loading branch information
hazendaz committed Aug 11, 2024
2 parents fb4d3db + 1df5bcd commit aaaa887
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
7 changes: 3 additions & 4 deletions src/main/java/org/mybatis/spring/SqlSessionFactoryBean.java
Original file line number Diff line number Diff line change
Expand Up @@ -555,11 +555,10 @@ private <T> T[] appendArrays(T[] oldArrays, T[] newArrays, IntFunction<T[]> gene
}
if (newArrays == null) {
return oldArrays;
} else {
List<T> newList = new ArrayList<>(Arrays.asList(oldArrays));
newList.addAll(Arrays.asList(newArrays));
return newList.toArray(generator.apply(0));
}
List<T> newList = new ArrayList<>(Arrays.asList(oldArrays));
newList.addAll(Arrays.asList(newArrays));
return newList.toArray(generator.apply(0));
}

@Override
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,7 @@
*/
public class MapperScannerRegistrar implements ImportBeanDefinitionRegistrar, ResourceLoaderAware {

// Note: Do not move resourceLoader via cleanup
private ResourceLoader resourceLoader;

@Override
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -468,11 +468,11 @@ private String getPropertyValue(String propertyName, PropertyValues values) {
}
if (value instanceof String) {
return value.toString();
} else if (value instanceof TypedStringValue) {
}
if (value instanceof TypedStringValue) {
return ((TypedStringValue) value).getValue();
} else {
return null;
}
return null;
}

@SuppressWarnings("unchecked")
Expand Down

0 comments on commit aaaa887

Please sign in to comment.