Browse Source

unnecessary cast

git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@557054 13f79535-47bb-0310-9956-ffa450edef68
master
Matthew Jason Benson 18 years ago
parent
commit
a2853965df
1 changed files with 2 additions and 3 deletions
  1. +2
    -3
      src/main/org/apache/tools/ant/types/resources/StringResource.java

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

@@ -144,9 +144,8 @@ public class StringResource extends Resource {
* 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();
}

/**


Loading…
Cancel
Save