equal
deleted
inserted
replaced
65 |
65 |
66 if (method != null) { |
66 if (method != null) { |
67 int modifiers = method.getModifiers(); |
67 int modifiers = method.getModifiers(); |
68 |
68 |
69 // Check whether obtained method is public and isn't abstract |
69 // Check whether obtained method is public and isn't abstract |
70 if ( Modifier.isPublic(modifiers)) |
70 if ( Modifier.isPublic(modifiers)) { |
71 { |
|
72 if (Modifier.isAbstract(modifiers)) { |
71 if (Modifier.isAbstract(modifiers)) { |
73 return "java.lang.AbstractMethodError"; |
72 return "java.lang.AbstractMethodError"; |
74 } else { |
73 } else { |
75 return String.format("%s.%s" |
74 return String.format("%s.%s", |
76 , method.getDeclaringClass().getSimpleName() |
75 method.getDeclaringClass().getSimpleName(), |
77 , methodName |
76 methodName); |
78 ); |
|
79 } |
77 } |
80 } else { |
78 } else { |
81 // IAE is thrown when located method isn't PUBLIC |
79 // IAE is thrown when located method isn't PUBLIC |
82 // or private. Private methods are skipped when |
80 // or private. Private methods are skipped when |
83 // looking for an interface method. |
81 // looking for an interface method. |