Fix ClassScanner and re-enable CodeInspectionTest tests
This fixes the code in ClassScanner for finding all classes in a given package to not depend on directory entries in the .jar files generated by the build system. This dependency caused our tests in CodeInspepectionTest.java to fail when this CL: https://android-review.googlesource.com/#/c/platform/build/+/456418/ stopped adding directory entries in the .jar files generated by the build process. Instead of depending on directories being present in the list of resources provided by the classloader, this CL switches to using Guava's ClassPath class to enumerate all loadable classes and filter them to the ones in the package of interest. Change-Id: I583919096450b61d4816256be280e2f5f1ce2316 Fixes: 64840107 Test: make RunSettingsRoboTests
Loading
Please register or sign in to comment