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 /taskdefs | |
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 'taskdefs')
-rw-r--r-- | taskdefs/src/main/java/org/aspectj/tools/ant/taskdefs/Ajc2.java | 2 |
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; } |