Skip to content

Commit 7f40fc5

Browse files
committed
Made a method private.
1 parent e7a1fb5 commit 7f40fc5

File tree

1 file changed

+11
-11
lines changed

1 file changed

+11
-11
lines changed

main/src/mockit/asm/BaseWriter.java

+11-11
Original file line numberDiff line numberDiff line change
@@ -52,9 +52,17 @@ public AnnotationVisitor visitAnnotation(@Nonnull String desc) {
5252
return addAnnotation(desc);
5353
}
5454

55+
@Nonnull
56+
private AnnotationVisitor addAnnotation(@Nonnull String desc) {
57+
AnnotationVisitor aw = new AnnotationVisitor(cp, desc);
58+
aw.setNext(annotations);
59+
annotations = aw;
60+
return aw;
61+
}
62+
5563
/**
56-
* Visits the end of the class/field/method being visited. This method, which is the last one to be called, is used to inform the visitor
57-
* that all the annotations and attributes of the class/field/method have been visited.
64+
* Visits the end of the class/field/method being visited. This method, which is the last one to be called, is used to inform the visitor that all
65+
* the annotations and attributes of the class/field/method have been visited.
5866
*/
5967
public void visitEnd() {}
6068

@@ -68,14 +76,6 @@ protected final void createMarkerAttributes(int classVersion) {
6876
}
6977
}
7078

71-
@Nonnull
72-
final AnnotationVisitor addAnnotation(@Nonnull String desc) {
73-
AnnotationVisitor aw = new AnnotationVisitor(cp, desc);
74-
aw.setNext(annotations);
75-
annotations = aw;
76-
return aw;
77-
}
78-
7979
@Nonnegative
8080
protected final int getAnnotationsSize() {
8181
if (annotations != null) {
@@ -134,4 +134,4 @@ protected static void put(@Nonnull ByteVector out, @Nonnull List<? extends BaseW
134134
writer.put(out);
135135
}
136136
}
137-
}
137+
}

0 commit comments

Comments
 (0)