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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to