Skip to content

Commit

Permalink
asotona review remarks
Browse files Browse the repository at this point in the history
  • Loading branch information
liach committed Oct 11, 2024
1 parent 7944379 commit b4f0ebc
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 939 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,6 @@
import jdk.internal.classfile.impl.Util;
import jdk.internal.javac.PreviewFeature;

import static java.util.Objects.requireNonNull;

/**
* Models instruction discontinued from the {@code code} array of a {@code Code}
* attribute. Delivered as a {@link CodeElement} when traversing the elements of
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -273,6 +273,7 @@ public CodeTransform asCodeTransform() {

@Override
public ClassDesc map(ClassDesc desc) {
if (desc == null) return null;
if (desc.isArray()) return map(desc.componentType()).arrayType();
if (desc.isPrimitive()) return desc;
return mapFunction.apply(desc);
Expand Down
Loading

0 comments on commit b4f0ebc

Please sign in to comment.