diff options
author | Glen Mazza <gmazza@apache.org> | 2005-06-26 15:13:38 +0000 |
---|---|---|
committer | Glen Mazza <gmazza@apache.org> | 2005-06-26 15:13:38 +0000 |
commit | f72908d520b62288fa391c0bef76d011c919e4fe (patch) | |
tree | 3150d667f8b0a834f5c6a9377296b7e2c985c90a /src/java/org/apache/fop/fo/flow/Footnote.java | |
parent | 9cdd8f0bfebfd2ac1e6e386f24cfe7d4c3ba859f (diff) | |
download | xmlgraphics-fop-f72908d520b62288fa391c0bef76d011c919e4fe.tar.gz xmlgraphics-fop-f72908d520b62288fa391c0bef76d011c919e4fe.zip |
Switch to .equals() instead of == for String compares of namespaces. Thanks to Nils Meier for the suggestion.
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@201864 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'src/java/org/apache/fop/fo/flow/Footnote.java')
-rw-r--r-- | src/java/org/apache/fop/fo/flow/Footnote.java | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/java/org/apache/fop/fo/flow/Footnote.java b/src/java/org/apache/fop/fo/flow/Footnote.java index 7c7b1a8f8..20546ca27 100644 --- a/src/java/org/apache/fop/fo/flow/Footnote.java +++ b/src/java/org/apache/fop/fo/flow/Footnote.java @@ -86,11 +86,11 @@ public class Footnote extends FObj { */ protected void validateChildNode(Locator loc, String nsURI, String localName) throws ValidationException { - if (nsURI == FO_URI && localName.equals("inline")) { + if (FO_URI.equals(nsURI) && localName.equals("inline")) { if (footnoteCitation != null) { tooManyNodesError(loc, "fo:inline"); } - } else if (nsURI == FO_URI && localName.equals("footnote-body")) { + } else if (FO_URI.equals(nsURI) && localName.equals("footnote-body")) { if (footnoteCitation == null) { nodesOutOfOrderError(loc, "fo:inline", "fo:footnote-body"); } else if (footnoteBody != null) { |