Issue Details (XML | Word | Printable)

Key: WODEN-171
Type: Improvement Improvement
Status: Resolved Resolved
Resolution: Fixed
Priority: Major Major
Assignee: Dan Harvey
Reporter: John Kaputin
Votes: 0
Watchers: 0
Operations

If you were logged in you would be able to see more operations.
Woden

Remove QNameUtils class

Created: 17/Jul/07 02:41 PM   Updated: 06/Aug/07 11:36 AM
Return to search
Component/s: None
Affects Version/s: None
Fix Version/s: M8

Time Tracking:
Not Specified

File Attachments:
  Size
Text File Licensed for inclusion in ASF works patch-item-171.txt 2007-07-20 11:11 AM John Kaputin 2 kB

Resolution Date: 06/Aug/07 11:36 AM


 Description  « Hide
The QNameUtils class is not necessary and removing it will help with WODEN-67 to modularize the Woden build create DOM and OM specific binary jars. This class has one method 'matches()' which compares a specified QName to the QName of a specified element object. It contains a hardcoded conditional switch to check the element object type and then forwards to DOMQNameUtils.matches() or OMQNameUtils.matches(). Not very O/O!

This method is only used in 2 places and can be easily replaced by using the QName.equals() method of directly. By eliminating this class and its dual compile dependency on DOM and OM, we can modularize the Maven build to support WODEN-67.

 All   Comments   Work Log   Change History   Subversion Commits      Sort Order: Ascending order - Click to sort in descending order
John Kaputin added a comment - 17/Jul/07 02:43 PM
The 2 places this class is used are SOAPModuleDeserializer and SOAPHeaderBlockDeserializer.

Need to change:
if (QNameUtils.matches(Constants.Q_ELEM_DOCUMENTATION, tempEl)

to:
if(Constants.Q_ELEM_DOCUMENTATION.equals(tempEl.getQName()))

John Kaputin added a comment - 20/Jul/07 11:11 AM
Thanks to Dan Harvey for contributing a fix in file patch-item-171.txt

John Kaputin added a comment - 02/Aug/07 10:01 AM
Dan contributed the fix, so assigning JIRA to him.

John Kaputin added a comment - 06/Aug/07 11:36 AM
r563109