Fix Error Prone errors
Soong wasn't including android_app or android_test sources in the javac-check target used for the Error Prone build, which allowed some Error Prone errors to get in. Fix them so Error Prone can be re-enabled for these targets. Fixes: packages/apps/Bluetooth/tests/unit/src/com/android/bluetooth/StateMachineTest.java:1037: error: [JUnit4TestNotRun] This looks like a test method but is not run; please add @Test and @Ignore, or, if this is a helper method, reduce its visibility. packages/apps/Bluetooth/tests/unit/src/com/android/bluetooth/StateMachineTest.java:1332: error: [JUnit4TestNotRun] This looks like a test method but is not run; please add @Test and @Ignore, or, if this is a helper method, reduce its visibility. packages/apps/Bluetooth/tests/unit/src/com/android/bluetooth/StateMachineTest.java:1457: error: [JUnit4TestNotRun] This looks like a test method but is not run; please add @Test and @Ignore, or, if this is a helper method, reduce its visibility. packages/apps/Bluetooth/tests/unit/src/com/android/bluetooth/StateMachineTest.java:1564: error: [JUnit4TestNotRun] This looks like a test method but is not run; please add @Test and @Ignore, or, if this is a helper method, reduce its visibility. packages/apps/Bluetooth/tests/unit/src/com/android/bluetooth/StateMachineTest.java:1716: error: [JUnit4TestNotRun] This looks like a test method but is not run; please add @Test and @Ignore, or, if this is a helper method, reduce its visibility. packages/apps/Bluetooth/tests/unit/src/com/android/bluetooth/StateMachineTest.java:1918: error: [JUnit4TestNotRun] This looks like a test method but is not run; please add @Test and @Ignore, or, if this is a helper method, reduce its visibility. packages/apps/Bluetooth/tests/unit/src/com/android/bluetooth/StateMachineTest.java:740: error: [JUnit4TestNotRun] This looks like a test method but is not run; please add @Test and @Ignore, or, if this is a helper method, reduce its visibility. packages/apps/Bluetooth/tests/unit/src/com/android/bluetooth/StateMachineTest.java:847: error: [JUnit4TestNotRun] This looks like a test method but is not run; please add @Test and @Ignore, or, if this is a helper method, reduce its visibility. packages/apps/Bluetooth/tests/unit/src/com/android/bluetooth/StateMachineTest.java:941: error: [JUnit4TestNotRun] This looks like a test method but is not run; please add @Test and @Ignore, or, if this is a helper method, reduce its visibility. Bug: 146455923 Test: m RUN_ERROR_PRONE=true javac-check Change-Id: I8ef74b286139b86bf5af6e5d25fc75e42ca8ef63
Loading
Please register or sign in to comment