[
https://issues.apache.org/jira/browse/AXIS2-4570?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Ruwan Linton updated AXIS2-4570:
--------------------------------
Fix Version/s: (was: 1.6)
1.7
Postponing to the next version
> Remove optimizeContent objects and arguments from ADB-generated stubs?
> ----------------------------------------------------------------------
>
> Key: AXIS2-4570
> URL: https://issues.apache.org/jira/browse/AXIS2-4570
> Project: Axis2
> Issue Type: Improvement
> Components: adb
> Affects Versions: 1.5.1
> Reporter: Glen Mazza
> Priority: Minor
> Fix For: 1.7
>
>
> Axis2 1.4.1 and 1.5.1 (and probably all older versions) are providing an
> opNameArray object and optimizeContent method that serve no purpose within
> the ADB-generated stubs:
> private javax.xml.namespace.QName[] opNameArray = null;
> private boolean optimizeContent(javax.xml.namespace.QName opName) { //
> *always* returns false
> if (opNameArray == null) {
> return false;
> }
> for (int i = 0; i < opNameArray.length; i++) {
> if (opName.equals(opNameArray[i])) {
> return true;
> }
> }
> return false;
> }
> Also, the toOM() and toEnvelope() methods generated in the stubs take an
> optimizeContent argument that both method implementations ignore. Further,
> all callers to those methods just call the above optimizeContent() method,
> which invariably returns false.
> These methods are adding unnecessarily to processing overhead and make the
> generated code more confusing. To simplify things it would be good if you
> could remove the optimizeContent() method above, the opNameArray object, and
> the optimizeContent boolean arguments from the generated toOM() and
> toEnvelope() methods.
--
This message is automatically generated by JIRA.
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]