Skip to content

Commit

Permalink
Update TypeMeta.java
Browse files Browse the repository at this point in the history
  • Loading branch information
Konyx committed Jan 8, 2025
1 parent 06a3e83 commit 7a29b3f
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -67,8 +67,8 @@ private void processGeneric(TypeMeta target, TypeVariable type, AnnotatedElement
if (owningClass instanceof Class) {
findType(target, type, (Class) owningClass, element);
} else if (owningClass instanceof ParameterizedType) {
if (element instanceof Member) {
var declaringClass = ((Member) element).getDeclaringClass();
if (element instanceof Member member) {
var declaringClass = member.getDeclaringClass();
if (declaringClass.equals(target.type)) {
findType(target, type, target.type, element);
return;
Expand Down

0 comments on commit 7a29b3f

Please sign in to comment.