diff options
author | Andy Clement <aclement@pivotal.io> | 2021-11-29 15:31:59 -0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-11-29 15:31:59 -0800 |
commit | 27aba3f4dfb18600f6b83e8cdf4e268d63d48ec0 (patch) | |
tree | 701f33ae353f92fa184e1484128e4843246cfc64 /build/src/test | |
parent | 90cfa088f5a2c0c8eb2b04553e14c560f472512a (diff) | |
parent | 793a015abbdf77e20052362db626d9aea855c16b (diff) | |
download | aspectj-27aba3f4dfb18600f6b83e8cdf4e268d63d48ec0.tar.gz aspectj-27aba3f4dfb18600f6b83e8cdf4e268d63d48ec0.zip |
Merge pull request #100 from turbanoff/File.exists_before_File.isDirectory_is_redundant
Remove redundant File.exists() check before File.isDirectory()
Diffstat (limited to 'build/src/test')
-rw-r--r-- | build/src/test/java/org/aspectj/build/BuildModuleTests.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/build/src/test/java/org/aspectj/build/BuildModuleTests.java b/build/src/test/java/org/aspectj/build/BuildModuleTests.java index 64f8b1016..181d84fcc 100644 --- a/build/src/test/java/org/aspectj/build/BuildModuleTests.java +++ b/build/src/test/java/org/aspectj/build/BuildModuleTests.java @@ -175,7 +175,7 @@ public class BuildModuleTests extends TestCase { void checkSourceDirectory(File srcDir, String module) { final String label = "source dir " + srcDir + " (module " + module + ")"; - assertTrue(label, (srcDir.exists() && srcDir.isDirectory())); + assertTrue(label, srcDir.isDirectory()); String license = getLicense(module); // if (replacing) { // if (replacing && true) { |