Enforce MustBeClosed by Error prone

Force some particular resource to be handled carefully and
closed safely as part of try-resource-catch.

Test: make google-tradefed-all javac-check -j64 RUN_ERROR_PRONE=true
unit tests still pass
Bug: 62864604

Change-Id: Idec188acf456d46801c16a353e95d21b967c0637
13 files changed
tree: 102d43b289e8df8c14af5d5306d6d9a66f08e382
  1. atest/
  2. prod-tests/
  3. proto/
  4. remote/
  5. res/
  6. src/
  7. tests/
  8. util-apps/
  9. .classpath
  10. .gitignore
  11. .project
  12. Android.mk
  13. atest_tradefed.sh
  14. CleanSpec.mk
  15. error_prone_rules.mk
  16. MANIFEST.mf
  17. OWNERS
  18. PREUPLOAD.cfg
  19. README.md
  20. run_tf_cmd.sh
  21. script_help.sh
  22. tradefed.sh
  23. tradefed_win.bat
  24. verify.sh
README.md

Trade Federation (TF / tradefed)

TF is a test harness used to drive Android automated testing. It runs on test hosts and monitors the connected devices, handling test scheduling & execution and device management.

Other test harnesses like Compatibility Test Suite (CTS) and Vendor Test Suite (VTS) use TF as a basis and extend it for their particular needs.

Building TF:

  • source build/envsetup.sh
  • tapas tradefed-all
  • make -j8

More information at: https://source.android.com/devices/tech/test_infra/tradefed/