Example usage for org.objectweb.asm.tree AnnotationNode visitEnum

List of usage examples for org.objectweb.asm.tree AnnotationNode visitEnum

Introduction

In this page you can find the example usage for org.objectweb.asm.tree AnnotationNode visitEnum.

Prototype

@Override
    public void visitEnum(final String name, final String descriptor, final String value) 

Source Link

Usage

From source file:com.android.build.gradle.internal.incremental.InstantRunVerifierTest.java

License:Apache License

@Test
public void testDiffListOnAnnotationNodesWithEnumEntryValue() throws Exception {
    AnnotationNode original = new AnnotationNode("Ltest/SomeAnnotation;");
    original.visitEnum("entry", "Test", "LMyEnum");

    AnnotationNode updated = new AnnotationNode("Ltest/SomeAnnotation;");
    updated.visitEnum("entry", "Test", "LMyEnum");

    assertEquals(InstantRunVerifier.Diff.NONE, InstantRunVerifier.diffList(Lists.newArrayList(original),
            Lists.newArrayList(updated), InstantRunVerifier.ANNOTATION_COMPARATOR));
}