From 793a015abbdf77e20052362db626d9aea855c16b Mon Sep 17 00:00:00 2001 From: Andrey Turbanov Date: Sat, 20 Nov 2021 16:53:30 +0300 Subject: According to javadoc File.isDirectory 'true' if and only if the file denoted by this abstract pathname exists and is a directory. It means that separate File.exists() check before File.isDirectory() check is redundant. --- build/src/test/java/org/aspectj/build/BuildModuleTests.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'build/src/test') 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) { -- cgit v1.2.3