Skip to content

Commit 066d231

Browse files
authored
Merge pull request #1972 from ZhangShenao/dev
Modify Array Size
2 parents 39678ef + bc537a5 commit 066d231

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/main/java/org/apache/ibatis/plugin/Plugin.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/**
2-
* Copyright 2009-2019 the original author or authors.
2+
* Copyright 2009-2020 the original author or authors.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
@@ -96,7 +96,7 @@ private static Class<?>[] getAllInterfaces(Class<?> type, Map<Class<?>, Set<Meth
9696
}
9797
type = type.getSuperclass();
9898
}
99-
return interfaces.toArray(new Class<?>[interfaces.size()]);
99+
return interfaces.toArray(new Class<?>[0]);
100100
}
101101

102102
}

0 commit comments

Comments
 (0)