Skip to content

Commit

Permalink
Small fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
NebelNidas committed Dec 7, 2023
1 parent e7a4671 commit acf4625
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@ public boolean visitElementContent(MappedElementKind targetKind) throws IOExcept
|| (field = targetKind == MappedElementKind.FIELD)
|| (arg = targetKind == MappedElementKind.METHOD_ARG)) {
if (classOnlyPass || memberSrcDesc == null || memberDstName == null) {
return true;
return !field && !arg;
}

if (field) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ public void visitDstName(MappedElementKind targetKind, int namespace, String nam
memberDstName = name;
break;
default:
break;
throw new IllegalStateException("unexpected invocation for "+targetKind);
}
}

Expand All @@ -122,11 +122,11 @@ public boolean visitElementContent(MappedElementKind targetKind) throws IOExcept
write("CL: ");
break;
case FIELD:
if (memberDstName == null) return false;
if (memberSrcDesc == null || memberDstName == null || (xsrg && memberDstDesc == null)) return false;
write("FD: ");
break;
case METHOD:
if (memberDstName == null || memberDstDesc == null) return false;
if (memberSrcDesc == null || memberDstName == null || memberDstDesc == null) return false;
write("MD: ");
break;
default:
Expand Down

0 comments on commit acf4625

Please sign in to comment.