|
I ran across this in
org.apache.xerces.dom.DeferredDocumentImpl
Shouldn't this be
if
(getChunkValue(fNodeName, achunk, aindex).equals( name)) {
?
public String getAttribute(int
elemIndex, String name) {
if (elemIndex == -1 || name == null) { return null; } int echunk = elemIndex >> CHUNK_SHIFT; int eindex = elemIndex & CHUNK_MASK; int attrIndex = getChunkIndex(fNodeExtra, echunk, eindex); while (attrIndex != -1) { int achunk = attrIndex >> CHUNK_SHIFT; int aindex = attrIndex & CHUNK_MASK; if (getChunkValue(fNodeName, achunk, aindex) == name) { return getChunkValue(fNodeValue, achunk, aindex); } attrIndex = getChunkIndex(fNodePrevSib, achunk, aindex); } return null; } |
- Re: Using == on strings Dave Brosius
- Re: Using == on strings Michael Glavassevich
- Re: Using == on strings dbrosius
- Re: Using == on strings Sandy Gao
- Re: Using == on strings dbrosius
- Re: Using == on strings Joseph Kesselman
- using == on strings Dave Brosius
