commit | 4436b05295eacd55662348e336b4e4d341d04063 | [log] [tgz] |
---|---|---|
author | kanant <kanant@google.com> | Thu Jul 23 10:18:52 2020 -0700 |
committer | kanant <kanant@google.com> | Thu Jul 23 14:54:04 2020 -0700 |
tree | 5771e5ff8c2ad1fed946d24e88e002e987f46dc1 | |
parent | 02fb816c02faa2bb725af4960e8403206fba4fe6 [diff] |
Cleaning CarShellCommand from checkstyle issues. Performing some clean up before modifying this class for b/156312139. Cleaning the following checkstyle issues: * CarShellCommand.java:743:11: Catching 'Exception' is not allowed. [IllegalCatch] * CarShellCommand.java:807:11: Catching 'Exception' is not allowed. [IllegalCatch] * CarShellCommand.java:1103:11: Catching 'Exception' is not allowed. [IllegalCatch] * CarShellCommand.java:1168:11: Catching 'Exception' is not allowed. [IllegalCatch] * CarShellCommand.java:1195:23: Catching 'Exception' is not allowed. [IllegalCatch] Test: java -jar prebuilts/checkstyle/checkstyle.jar packages/services/Car/service/src/com/android/car/CarShellCommand.java -c prebuilts/checkstyle/android-style.xml Bug: 159623196 Change-Id: I7f6ee60a15a324a8d77fa89e4e4882851efa614c
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.