Created
December 27, 2012 13:15
-
-
Save neomatrix369/4388325 to your computer and use it in GitHub Desktop.
Added a new Opcode called ACC_SYNTHETIC in /src/main/java/org/mutabilitydetector/checkers/AccessModifierQuery.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/src/main/java/org/mutabilitydetector/checkers/AccessModifierQuery.java b/src/main/java/org/mutabilitydetector/checkers/AccessModifierQuery.java | |
index 111001b..b92fed0 100644 | |
--- a/src/main/java/org/mutabilitydetector/checkers/AccessModifierQuery.java | |
+++ b/src/main/java/org/mutabilitydetector/checkers/AccessModifierQuery.java | |
@@ -22,6 +22,7 @@ import static org.objectweb.asm.Opcodes.ACC_FINAL; | |
import static org.objectweb.asm.Opcodes.ACC_INTERFACE; | |
import static org.objectweb.asm.Opcodes.ACC_PRIVATE; | |
import static org.objectweb.asm.Opcodes.ACC_STATIC; | |
+import static org.objectweb.asm.Opcodes.ACC_SYNTHETIC; | |
/** | |
* Used to check for the existence of an access flag used in ASM visitors. | |
@@ -77,6 +78,15 @@ public class AccessModifierQuery { | |
public boolean isNotFinal() { | |
return !is(ACC_FINAL); | |
} | |
+ | |
+ public boolean isSynthetic() { | |
+ return !is(ACC_SYNTHETIC); | |
+ } | |
+ | |
+ public boolean isNotSynthetic() { | |
+ return !is(ACC_SYNTHETIC); | |
+ } | |
+ | |
public boolean isAbstract() { | |
return is(ACC_ABSTRACT); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment