Author: hibou
Date: Thu Jan  6 19:36:16 2011
New Revision: 1056029

URL: http://svn.apache.org/viewvc?rev=1056029&view=rev
Log:
remove useless cast

Modified:
    ant/ivy/core/trunk/src/java/org/apache/ivy/osgi/obr/xml/OBRXMLParser.java

Modified: 
ant/ivy/core/trunk/src/java/org/apache/ivy/osgi/obr/xml/OBRXMLParser.java
URL: 
http://svn.apache.org/viewvc/ant/ivy/core/trunk/src/java/org/apache/ivy/osgi/obr/xml/OBRXMLParser.java?rev=1056029&r1=1056028&r2=1056029&view=diff
==============================================================================
--- ant/ivy/core/trunk/src/java/org/apache/ivy/osgi/obr/xml/OBRXMLParser.java 
(original)
+++ ant/ivy/core/trunk/src/java/org/apache/ivy/osgi/obr/xml/OBRXMLParser.java 
Thu Jan  6 19:36:16 2011
@@ -111,25 +111,24 @@ public class OBRXMLParser {
             super(RESOURCE);
             addChild(new ResourceDescriptionHandler(), new 
ChildElementHandler() {
                 public void childHanlded(DelegetingHandler child) {
-                    bundleInfo.setDescription(((ResourceDescriptionHandler) 
child)
+                    bundleInfo.setDescription(child
                             .getBufferedChars().trim());
                 }
             });
             addChild(new ResourceDocumentationHandler(), new 
ChildElementHandler() {
                 public void childHanlded(DelegetingHandler child) {
-                    
bundleInfo.setDocumentation(((ResourceDocumentationHandler) child)
+                    bundleInfo.setDocumentation(child
                             .getBufferedChars().trim());
                 }
             });
             addChild(new ResourceLicenseHandler(), new ChildElementHandler() {
                 public void childHanlded(DelegetingHandler child) {
-                    bundleInfo.setLicense(((ResourceLicenseHandler) 
child).getBufferedChars()
-                            .trim());
+                    bundleInfo.setLicense(child.getBufferedChars().trim());
                 }
             });
             addChild(new ResourceSizeHandler(), new ChildElementHandler() {
                 public void childHanlded(DelegetingHandler child) {
-                    String size = ((ResourceSizeHandler) 
child).getBufferedChars().trim();
+                    String size = child.getBufferedChars().trim();
                     try {
                         bundleInfo.setSize(Integer.valueOf(size));
                     } catch (NumberFormatException e) {


Reply via email to