axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Andreas Veithen (JIRA)" <j...@apache.org>
Subject [jira] Created: (AXIS2-4416) ADB generates unnecessary anonymous inner classes
Date Tue, 30 Jun 2009 10:29:47 GMT
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
            Priority: Minor


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.


Mime
View raw message