[ https://issues.apache.org/jira/browse/AXIS2-4416?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Andreas Veithen resolved AXIS2-4416. ------------------------------------ Resolution: Fixed Fix Version/s: 1.6 > ADB generates unnecessary anonymous inner classes > ------------------------------------------------- > > Key: AXIS2-4416 > URL: https://issues.apache.org/jira/browse/AXIS2-4416 > Project: Axis 2.0 (Axis2) > Issue Type: Bug > Components: adb > Reporter: Andreas Veithen > Assignee: Andreas Veithen > Priority: Minor > Fix For: 1.6 > > > ADB generates the following code inside the getOMElement method: > org.apache.axiom.om.OMDataSource dataSource = new > org.apache.axis2.databinding.ADBDataSource(this,MY_QNAME) { > public void > serialize(org.apache.axis2.databinding.utils.writer.MTOMAwareXMLStreamWriter > xmlWriter) throws javax.xml.stream.XMLStreamException { > <bean class name>.this.serialize(MY_QNAME,factory,xmlWriter); > } > }; > Since the "serialize" method is declared by the ADBBean interface, using an > anonymous inner class is actually not necessary. ADBBean already has > everything it needs (the reference to the bean and MY_QNAME; factory is not > needed as explained in AXIS2-4415) to invoke that method directly. -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.