List of usage examples for org.objectweb.asm.tree AnnotationNode visitEnum
@Override
public void visitEnum(final String name, final String descriptor, final String value)
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)); }