aboutsummaryrefslogtreecommitdiff
path: root/lint-baseline.xml
diff options
context:
space:
mode:
authorPedro Loureiro <pedroql@google.com>2021-02-25 15:31:41 +0000
committerPedro Loureiro <pedroql@google.com>2021-04-13 15:20:32 +0000
commitb3210fa649bdf426ce3ff5d0fbcd8c0feedce00b (patch)
tree6f59a75348d07612173246ac6c4fca04bde0df2c /lint-baseline.xml
parent5597f18d94bb86bddb54d2ba6f6e23012174968f (diff)
downloaddagger2-b3210fa649bdf426ce3ff5d0fbcd8c0feedce00b.tar.gz
Add lint baseline to address NewApi errors
We are enabling a new lint check where the min sdk != compile sdk. It has produced a lot of errors and adding the baseline file(s) allows us to continue work without introducing more problems. Bug: 150847901 Test: m lint-check Change-Id: I2700e10dae256a3f944ccddbef0c871b0cf52b9d Merged-In: I2700e10dae256a3f944ccddbef0c871b0cf52b9d
Diffstat (limited to 'lint-baseline.xml')
-rw-r--r--lint-baseline.xml15
1 files changed, 15 insertions, 0 deletions
diff --git a/lint-baseline.xml b/lint-baseline.xml
new file mode 100644
index 000000000..cf790c246
--- /dev/null
+++ b/lint-baseline.xml
@@ -0,0 +1,15 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<issues format="5" by="lint 4.1.0" client="cli" variant="all" version="4.1.0">
+
+ <issue
+ id="NewApi"
+ message="Multi-catch with these reflection exceptions requires API level 19 (current min is 14) because they get compiled to the common but new super type `ReflectiveOperationException`. As a workaround either create individual catch statements, or catch `Exception`."
+ errorLine1=" } catch (ClassNotFoundException"
+ errorLine2=" ^">
+ <location
+ file="external/dagger2/java/dagger/hilt/android/internal/testing/TestApplicationComponentManager.java"
+ line="85"
+ column="14"/>
+ </issue>
+
+</issues>