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/Block.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/Block.java')
-rw-r--r-- | src/java/org/apache/fop/fo/flow/Block.java | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/java/org/apache/fop/fo/flow/Block.java b/src/java/org/apache/fop/fo/flow/Block.java index 5c9fcc23d..3f638ae19 100644 --- a/src/java/org/apache/fop/fo/flow/Block.java +++ b/src/java/org/apache/fop/fo/flow/Block.java @@ -308,12 +308,12 @@ public class Block extends FObjMixed { */ protected void validateChildNode(Locator loc, String nsURI, String localName) throws ValidationException { - if (nsURI == FO_URI && localName.equals("marker")) { + if (FO_URI.equals(nsURI) && localName.equals("marker")) { if (blockOrInlineItemFound || initialPropertySetFound) { nodesOutOfOrderError(loc, "fo:marker", "initial-property-set? (#PCDATA|%inline;|%block;)"); } - } else if (nsURI == FO_URI && localName.equals("initial-property-set")) { + } else if (FO_URI.equals(nsURI) && localName.equals("initial-property-set")) { if (initialPropertySetFound) { tooManyNodesError(loc, "fo:initial-property-set"); } else if (blockOrInlineItemFound) { |