aboutsummaryrefslogtreecommitdiffstats
path: root/taskdefs/src/main
diff options
context:
space:
mode:
authorAndy Clement <aclement@pivotal.io>2021-11-29 15:31:59 -0800
committerGitHub <noreply@github.com>2021-11-29 15:31:59 -0800
commit27aba3f4dfb18600f6b83e8cdf4e268d63d48ec0 (patch)
tree701f33ae353f92fa184e1484128e4843246cfc64 /taskdefs/src/main
parent90cfa088f5a2c0c8eb2b04553e14c560f472512a (diff)
parent793a015abbdf77e20052362db626d9aea855c16b (diff)
downloadaspectj-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 'taskdefs/src/main')
-rw-r--r--taskdefs/src/main/java/org/aspectj/tools/ant/taskdefs/Ajc2.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/taskdefs/src/main/java/org/aspectj/tools/ant/taskdefs/Ajc2.java b/taskdefs/src/main/java/org/aspectj/tools/ant/taskdefs/Ajc2.java
index 4c3bb93ea..7755718dd 100644
--- a/taskdefs/src/main/java/org/aspectj/tools/ant/taskdefs/Ajc2.java
+++ b/taskdefs/src/main/java/org/aspectj/tools/ant/taskdefs/Ajc2.java
@@ -465,7 +465,7 @@ public class Ajc2 extends Javac {
File parent = argfile.getParentFile();
// Sanity check
- if (parent == null || !parent.exists() || !parent.isDirectory()) {
+ if (parent == null || !parent.isDirectory()) {
return;
}