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
1 file changed
tree: 5771e5ff8c2ad1fed946d24e88e002e987f46dc1
  1. car-bugreportd/
  2. car-default-input-service/
  3. car-internal-lib/
  4. car-lib/
  5. car-maps-placeholder/
  6. car-systemtest-lib/
  7. car-test-lib/
  8. car-usb-handler/
  9. car_product/
  10. computepipe/
  11. evs/
  12. experimental/
  13. FrameworkPackageStubs/
  14. obd2-lib/
  15. procfs-inspector/
  16. service/
  17. surround_view/
  18. tests/
  19. tools/
  20. user/
  21. vehicle-hal-support-lib/
  22. watchdog/
  23. .clang-format
  24. .gitignore
  25. Android.mk
  26. CleanSpec.mk
  27. CPPLINT.cfg
  28. OWNERS
  29. PREUPLOAD.cfg
  30. README.md
  31. TEST_MAPPING
README.md

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.