Skip to content

Commit

Permalink
#9 AccessFlag and Private method
Browse files Browse the repository at this point in the history
  • Loading branch information
amosshi committed Oct 13, 2021
1 parent 7bbbec8 commit bfdf18a
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -295,6 +295,15 @@ private AccessFlag(long i, String m) {
this.modifier = m;
}

/**
* Get <code>int</code> value of {@link #value}.
*
* @return <code>int</code> value of {@link #value}
*/
public int intValue() {
return Math.toIntExact(this.value);
}

/**
* Check if the the <code>accFlags</code> matches the access flag or not.
*
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
public abstract class RuntimeAnnotations extends attribute_info {

public final u2 num_annotations;
private final Annotation[] annotations;
public final Annotation[] annotations;

RuntimeAnnotations(final u2 nameIndex, final String type, final PosDataInputStream posDataInputStream) throws IOException, FileFormatException {
super(nameIndex, type, posDataInputStream);
Expand Down

0 comments on commit bfdf18a

Please sign in to comment.