You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@xalan.apache.org by "Henry Zongaro (JIRA)" <xa...@xml.apache.org> on 2004/12/16 19:09:10 UTC

[jira] Updated: (XALANJ-342) Code cleanup in TreeWalker2Result.startNode()

     [ http://nagoya.apache.org/jira/browse/XALANJ-342?page=history ]

Henry Zongaro updated XALANJ-342:
---------------------------------

    Priority: Minor

> Code cleanup in TreeWalker2Result.startNode()
> ---------------------------------------------
>
>          Key: XALANJ-342
>          URL: http://nagoya.apache.org/jira/browse/XALANJ-342
>      Project: XalanJ2
>         Type: Bug
>   Components: Xalan-interpretive, transformation
>     Versions: CurrentCVS
>  Environment: Operating System: All
> Platform: All
>     Reporter: Gary L Peskin
>     Assignee: Xalan Developers Mailing List
>     Priority: Minor

>
> Line numbers are with respect to revision 1.11.  I've added this item so that it 
> can be tracked.  I haven't found any errant behavior caused by the current code. 
>  But it should be cleaned up.
> At line 150, we have
>   if (DTM.ELEMENT_NODE == m_dtm.getNodeType(node))
> this begins an if block.  Inside there at line 167, we have
>   if (DTM.ELEMENT_NODE == m_dtm.getNodeType(node))
> This inner if test just be eliminated and the code left where it is (so that it 
> is in the block in which the second if is currently contained).
> Second, on line 169 we declare
>   boolean hasNSDecls = false;
> This is later tested but never changed.  Shouldn't the body of the loop
> at line 174 maybe set this to true?  Or should the whole thing be removed?
> Gary

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://nagoya.apache.org/jira/secure/Administrators.jspa
-
If you want more information on JIRA, or have a bug to report see:
   http://www.atlassian.com/software/jira


---------------------------------------------------------------------
To unsubscribe, e-mail: xalan-dev-unsubscribe@xml.apache.org
For additional commands, e-mail: xalan-dev-help@xml.apache.org