commit | c96c9271fe6108d2680d9d4131018a84d7a411c1 | [log] [tgz] |
---|---|---|
author | Colin Cross <ccross@android.com> | Tue Dec 31 09:55:33 2019 -0800 |
committer | Colin Cross <ccross@android.com> | Tue Dec 31 09:55:33 2019 -0800 |
tree | 688f2425f180ded2478a55d88129b7b127c7e1cf | |
parent | 9cc7c6038bf0de7052c5d160b6e19d5b48d04501 [diff] |
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/services/Car/tests/SecondaryHomeApp/src/com/android/car/secondaryhome/launcher/AppListAdapter.java:51: error: [CollectionIncompatibleType] Argument 'app.getComponentName()' should not be passed to this method; its type ComponentName is not compatible with its collection's type argument String Bug: 146455923 Test: m RUN_ERROR_PRONE=true javac-check Change-Id: I08506a796fcb61b16f757bb06620930bd936d286
Native (C++) code format is required to be compatible with .clang-format file. Run
git clang-format --style=file --extension='h,cpp,cc' HEAD~
Note that clang-format is not desirable for Android java files. Therefore the command line above is limited to specific extensions.