Browse Source

checkstyle: remove inner assignment

git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@580302 13f79535-47bb-0310-9956-ffa450edef68
master
Peter Reilly 17 years ago
parent
commit
9997ae2135
1 changed files with 6 additions and 2 deletions
  1. +6
    -2
      src/main/org/apache/tools/ant/types/resources/JavaResource.java

+ 6
- 2
src/main/org/apache/tools/ant/types/resources/JavaResource.java View File

@@ -130,8 +130,12 @@ public class JavaResource extends Resource {
public boolean isExists() {
InputStream is = null;
try {
return isReference() ? ((Resource) getCheckedRef()).isExists()
: (is = getInputStream()) != null;
if (isReference()) {
return ((Resource) getCheckedRef()).isExists();
} else {
is = getInputStream();
return is != null;
}
} catch (IOException ex) {
return false;
} finally {


Loading…
Cancel
Save