mirror of
https://github.com/alibaba/testable-mock.git
synced 2026-08-19 09:43:29 +08:00
fix: duplicate naming
This commit is contained in:
@@ -77,9 +77,9 @@ public class MockClassHandler extends BaseClassWithContextHandler {
|
||||
*/
|
||||
private void injectInheritedMockMethods(ClassNode cn) {
|
||||
List<Type> inheritedTypes = new ArrayList<Type>();
|
||||
AnnotationNode an = AnnotationUtil.getClassAnnotation(cn, MOCK_CONTAINER);
|
||||
if (an != null) {
|
||||
inheritedTypes.addAll(AnnotationUtil.getAnnotationParameter(an, FIELD_INHERITS,
|
||||
AnnotationNode mockContainerAnnotation = AnnotationUtil.getClassAnnotation(cn, MOCK_CONTAINER);
|
||||
if (mockContainerAnnotation != null) {
|
||||
inheritedTypes.addAll(AnnotationUtil.getAnnotationParameter(mockContainerAnnotation, FIELD_INHERITS,
|
||||
Collections.<Type>emptyList(), List.class));
|
||||
}
|
||||
for (Type inheritedType : inheritedTypes) {
|
||||
|
||||
Reference in New Issue
Block a user