aboutsummaryrefslogtreecommitdiffstats
path: root/src/java/org/apache/fop/fo/FObj.java
diff options
context:
space:
mode:
authorGlen Mazza <gmazza@apache.org>2005-06-26 15:13:38 +0000
committerGlen Mazza <gmazza@apache.org>2005-06-26 15:13:38 +0000
commitf72908d520b62288fa391c0bef76d011c919e4fe (patch)
tree3150d667f8b0a834f5c6a9377296b7e2c985c90a /src/java/org/apache/fop/fo/FObj.java
parent9cdd8f0bfebfd2ac1e6e386f24cfe7d4c3ba859f (diff)
downloadxmlgraphics-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/FObj.java')
-rw-r--r--src/java/org/apache/fop/fo/FObj.java6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/java/org/apache/fop/fo/FObj.java b/src/java/org/apache/fop/fo/FObj.java
index f9a0ca73d..67059f481 100644
--- a/src/java/org/apache/fop/fo/FObj.java
+++ b/src/java/org/apache/fop/fo/FObj.java
@@ -365,7 +365,7 @@ public abstract class FObj extends FONode implements Constants {
* @return true if a member, false if not
*/
protected boolean isBlockItem(String nsURI, String lName) {
- return (nsURI == FO_URI &&
+ return (FO_URI.equals(nsURI) &&
(lName.equals("block")
|| lName.equals("table")
|| lName.equals("table-and-caption")
@@ -384,7 +384,7 @@ public abstract class FObj extends FONode implements Constants {
* @return true if a member, false if not
*/
protected boolean isInlineItem(String nsURI, String lName) {
- return (nsURI == FO_URI &&
+ return (FO_URI.equals(nsURI) &&
(lName.equals("bidi-override")
|| lName.equals("character")
|| lName.equals("external-graphic")
@@ -422,7 +422,7 @@ public abstract class FObj extends FONode implements Constants {
* @return true if a member, false if not
*/
protected boolean isNeutralItem(String nsURI, String lName) {
- return (nsURI == FO_URI &&
+ return (FO_URI.equals(nsURI) &&
(lName.equals("multi-switch")
|| lName.equals("multi-properties")
|| lName.equals("wrapper")