diff options
author | 2018-04-13 16:51:42 -0700 | |
---|---|---|
committer | 2018-04-13 16:52:58 -0700 | |
commit | f477e860e3d5b5cb12ae572edbeb0e683aa112d3 (patch) | |
tree | 6c3485793c56698acac633fa2126204cbf39a205 /src/java_tools/import_deps_checker/java/com/google | |
parent | b9240df02a56bf4c6b52c1ab4424c248b49036bd (diff) |
ignore made-up java/lang/Synthetic annotation that ASM sometimes inserts
RELNOTES: None.
PiperOrigin-RevId: 192844304
Diffstat (limited to 'src/java_tools/import_deps_checker/java/com/google')
-rw-r--r-- | src/java_tools/import_deps_checker/java/com/google/devtools/build/importdeps/DepsCheckerClassVisitor.java | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/java_tools/import_deps_checker/java/com/google/devtools/build/importdeps/DepsCheckerClassVisitor.java b/src/java_tools/import_deps_checker/java/com/google/devtools/build/importdeps/DepsCheckerClassVisitor.java index 64d2c7ff85..07925c38c1 100644 --- a/src/java_tools/import_deps_checker/java/com/google/devtools/build/importdeps/DepsCheckerClassVisitor.java +++ b/src/java_tools/import_deps_checker/java/com/google/devtools/build/importdeps/DepsCheckerClassVisitor.java @@ -288,6 +288,9 @@ public class DepsCheckerClassVisitor extends ClassVisitor { @Override public AnnotationVisitor visitParameterAnnotation(int parameter, String desc, boolean visible) { + if ("Ljava/lang/Synthetic;".equals(desc)) { + return null; // ASM sometimes makes up this annotation, so we can ignore it (b/78024300) + } checkDescriptor(desc); return defaultAnnotationChecker; } |