Author: mrglavas
Date: Thu Oct 20 19:44:57 2005
New Revision: 327077

URL: http://svn.apache.org/viewcvs?rev=327077&view=rev
Log:
JIRA Issue #1105:
http://issues.apache.org/jira/browse/XERCESJ-1105

Use short circuiting logic. Patch thanks to Dave Brosius.

Modified:
    xerces/java/trunk/src/org/apache/xerces/xpointer/ShortHandPointer.java

Modified: xerces/java/trunk/src/org/apache/xerces/xpointer/ShortHandPointer.java
URL: 
http://svn.apache.org/viewcvs/xerces/java/trunk/src/org/apache/xerces/xpointer/ShortHandPointer.java?rev=327077&r1=327076&r2=327077&view=diff
==============================================================================
--- xerces/java/trunk/src/org/apache/xerces/xpointer/ShortHandPointer.java 
(original)
+++ xerces/java/trunk/src/org/apache/xerces/xpointer/ShortHandPointer.java Thu 
Oct 20 19:44:57 2005
@@ -258,7 +258,7 @@
      * @see org.apache.xerces.xpointer.XPointerPart#isChildFragmentResolved()
      */
     public boolean isChildFragmentResolved() {
-        return fIsFragmentResolved & ( fMatchingChildCount >  0);
+        return fIsFragmentResolved && (fMatchingChildCount > 0);
     }
     
     /**



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to