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] Assigned: (AXIS2-4416) ADB generates unnecessary anonymous inner classes
Date Sun, 05 Jul 2009 09:16:14 GMT

     [ https://issues.apache.org/jira/browse/AXIS2-4416?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Andreas Veithen reassigned AXIS2-4416:
--------------------------------------

    Assignee: Andreas Veithen

> 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
>
> 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