ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From peterrei...@apache.org
Subject svn commit: r580302 - /ant/core/trunk/src/main/org/apache/tools/ant/types/resources/JavaResource.java
Date Fri, 28 Sep 2007 11:13:19 GMT
Author: peterreilly
Date: Fri Sep 28 04:13:19 2007
New Revision: 580302

URL: http://svn.apache.org/viewvc?rev=580302&view=rev
Log:
checkstyle: remove inner assignment

Modified:
    ant/core/trunk/src/main/org/apache/tools/ant/types/resources/JavaResource.java

Modified: ant/core/trunk/src/main/org/apache/tools/ant/types/resources/JavaResource.java
URL: http://svn.apache.org/viewvc/ant/core/trunk/src/main/org/apache/tools/ant/types/resources/JavaResource.java?rev=580302&r1=580301&r2=580302&view=diff
==============================================================================
--- ant/core/trunk/src/main/org/apache/tools/ant/types/resources/JavaResource.java (original)
+++ ant/core/trunk/src/main/org/apache/tools/ant/types/resources/JavaResource.java Fri Sep
28 04:13:19 2007
@@ -130,8 +130,12 @@
     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 {



---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@ant.apache.org
For additional commands, e-mail: dev-help@ant.apache.org


Mime
View raw message