Skip to content

Commit

Permalink
Update JDK
Browse files Browse the repository at this point in the history
  • Loading branch information
dmlloyd committed Jul 24, 2024
1 parent 4dc2457 commit 3fe13d6
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 19 deletions.
22 changes: 4 additions & 18 deletions src/main/java/io/github/dmlloyd/classfile/impl/AnnotationImpl.java
Original file line number Diff line number Diff line change
Expand Up @@ -39,24 +39,10 @@

import static io.github.dmlloyd.classfile.ClassFile.*;

public final class AnnotationImpl implements Annotation, Util.Writable {
private final Utf8Entry className;
private final List<AnnotationElement> elements;

public AnnotationImpl(Utf8Entry className,
List<AnnotationElement> elems) {
this.className = className;
this.elements = List.copyOf(elems);
}

@Override
public Utf8Entry className() {
return className;
}

@Override
public List<AnnotationElement> elements() {
return elements;
public record AnnotationImpl(Utf8Entry className, List<AnnotationElement> elements)
implements Annotation, Util.Writable {
public AnnotationImpl {
elements = List.copyOf(elements);
}

@Override
Expand Down

0 comments on commit 3fe13d6

Please sign in to comment.