Skip to content

Commit

Permalink
Fixes Groovy STC errors
Browse files Browse the repository at this point in the history
  • Loading branch information
rainboyan committed Jun 19, 2024
1 parent 2d16264 commit bfcd5fe
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -124,8 +124,8 @@ class BeanPropertyAccessorImpl implements BeanPropertyAccessor {

@CompileStatic
private List<Class> getSuperclassesAndInterfaces(Class type) {
List<Class> superclasses = []
superclasses.addAll(ClassUtils.getAllSuperclasses(ClassUtils.primitiveToWrapper(type)))
List<Class> superclasses = new ArrayList<>()
superclasses.addAll((List<Class>) ClassUtils.getAllSuperclasses(ClassUtils.primitiveToWrapper(type)))
for(Object it in ClassUtils.getAllInterfaces(type)) {
Class interfaceCls = (Class)it
String name = interfaceCls.name
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -142,8 +142,8 @@ class DelegatingBeanPropertyAccessorImpl implements BeanPropertyAccessor {
}

private List<Class> getSuperclassesAndInterfaces(Class type) {
List<Class> superclasses = []
superclasses.addAll(ClassUtils.getAllSuperclasses(ClassUtils.primitiveToWrapper(type)))
List<Class> superclasses = new ArrayList<>()
superclasses.addAll((List<Class>) ClassUtils.getAllSuperclasses(ClassUtils.primitiveToWrapper(type)))
for (Object it in ClassUtils.getAllInterfaces(type)) {
Class interfaceCls = (Class) it
String name = interfaceCls.name
Expand Down

0 comments on commit bfcd5fe

Please sign in to comment.