ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mben...@apache.org
Subject svn commit: r557054 - /ant/core/trunk/src/main/org/apache/tools/ant/types/resources/StringResource.java
Date Tue, 17 Jul 2007 21:01:25 GMT
Author: mbenson
Date: Tue Jul 17 14:01:23 2007
New Revision: 557054

URL: http://svn.apache.org/viewvc?view=rev&rev=557054
Log:
unnecessary cast

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

Modified: ant/core/trunk/src/main/org/apache/tools/ant/types/resources/StringResource.java
URL: http://svn.apache.org/viewvc/ant/core/trunk/src/main/org/apache/tools/ant/types/resources/StringResource.java?view=diff&rev=557054&r1=557053&r2=557054
==============================================================================
--- ant/core/trunk/src/main/org/apache/tools/ant/types/resources/StringResource.java (original)
+++ ant/core/trunk/src/main/org/apache/tools/ant/types/resources/StringResource.java Tue Jul
17 14:01:23 2007
@@ -144,9 +144,8 @@
      *         compatibility with java.io.File), or UNKNOWN_SIZE if not known.
      */
     public synchronized long getSize() {
-        return isReference()
-            ? ((Resource) getCheckedRef()).getSize()
-            : (long) getContent().length();
+        return isReference() ? ((Resource) getCheckedRef()).getSize()
+                : getContent().length();
     }
 
     /**



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


Mime
View raw message