Fix up all build errors and warnings up to JDK7

This commit is contained in:
Mumfrey committed 2015-01-15 14:15:45 +00:00
1 parent c73ba14656
commit 5ee69a22a2
7 files changed
+36 -33

No files matched your search

@@ -392,9 +392,20 @@ public class ASMHelper {
method.invisibleAnnotations = ASMHelper.addAnnotation(method.invisibleAnnotations, node);
}
/**
* Create a new annotation node with the supplied values
*
* @param annotationType Name (internal name) of the annotation interface to create
* @param value Interleaved key/value pairs. Keys must be strings
* @return new annotation node
*/
private static AnnotationNode makeAnnotationNode(String annotationType, Object... value) {
AnnotationNode node = new AnnotationNode(annotationType);
for (int pos = 0; pos < value.length - 1; pos += 2) {
if (!(value[pos] instanceof String)) {
throw new IllegalArgumentException("Annotation keys must be strings, found " + value[pos].getClass().getSimpleName()
+ " with " + value[pos].toString() + " at index " + pos + " creating " + annotationType);
}
node.visit((String)value[pos], value[pos + 1]);
}
return node;
@@ -410,16 +421,6 @@ public class ASMHelper {
return annotations;
}
/**
* Get an invisible annotation of the specified class from the supplied field node
*
* @param field Source field
* @param annotationClass Type of annotation to search for
* @return the annotation, or null if not present
*/
public static void setInvisibleAnnotation(FieldNode field, Class<? extends Annotation> annotationClass) {
}
/**
* Get a runtime-visible annotation of the specified class from the supplied field node
*