diff options
author | Andrey Turbanov <turbanoff@gmail.com> | 2021-11-20 16:53:30 +0300 |
---|---|---|
committer | Andrey Turbanov <turbanoff@gmail.com> | 2021-11-20 16:53:30 +0300 |
commit | 793a015abbdf77e20052362db626d9aea855c16b (patch) | |
tree | fb01864e965e38f4f6f5c8fb0f78e4f5be4abef9 /taskdefs | |
parent | 0f85ca109b9e6ab849e201e76f62d5023cbfcb98 (diff) | |
download | aspectj-793a015abbdf77e20052362db626d9aea855c16b.tar.gz aspectj-793a015abbdf77e20052362db626d9aea855c16b.zip |
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.
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; } |