File tree 2 files changed +5
-0
lines changed
libs/javavi/src/main/java/kg/ash/javavi
2 files changed +5
-0
lines changed Original file line number Diff line number Diff line change @@ -127,6 +127,8 @@ public boolean isInterface() {
127
127
128
128
public void addLinkedClass (SourceClass clazz ) {
129
129
linkedClasses .add (clazz );
130
+ methods .addAll (clazz .getMethods ());
131
+ fields .addAll (clazz .getFields ());
130
132
}
131
133
132
134
public List <SourceClass > getLinkedClasses () {
Original file line number Diff line number Diff line change @@ -268,6 +268,9 @@ public SourceClass getSourceClass(Class cls) {
268
268
methodsSet .addAll (Arrays .asList (cls .getDeclaredMethods ()));
269
269
methodsSet .addAll (Arrays .asList (cls .getMethods ()));
270
270
methodsSet .forEach (m -> {
271
+ if (!m .getDeclaringClass ().getName ().equals (cls .getName ())) {
272
+ return ;
273
+ }
271
274
ClassMethod method = new ClassMethod ();
272
275
if (m .getAnnotationsByType (Deprecated .class ).length > 0 ) {
273
276
method .setDeprecated (true );
You can’t perform that action at this time.
0 commit comments