From: Andreas L. Delmelle Date: Thu, 26 Nov 2015 16:53:00 +0000 (+0000) Subject: FOP-2455b - Applied updated patch in addition to the original one (see: r1716732) X-Git-Tag: fop-2_1~32 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=ebe63dcaf2b25e1da7101ff1a8af046605af1c50;p=xmlgraphics-fop.git FOP-2455b - Applied updated patch in addition to the original one (see: r1716732) git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@1716743 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/src/java/org/apache/fop/afp/AFPResourceInfo.java b/src/java/org/apache/fop/afp/AFPResourceInfo.java index b70207b44..39c270054 100644 --- a/src/java/org/apache/fop/afp/AFPResourceInfo.java +++ b/src/java/org/apache/fop/afp/AFPResourceInfo.java @@ -158,10 +158,10 @@ public class AFPResourceInfo { } AFPResourceInfo ri = (AFPResourceInfo)obj; - return (uri != null && uri.equals(ri.uri)) - && (imageDimension == ri.imageDimension || imageDimension != null && imageDimension.equals(ri.imageDimension)) - && (name != null && name.equals(ri.name)) - && (level != null && level.equals(ri.level)); + return (uri == ri.uri || uri != null && uri.equals(ri.uri)) + && (imageDimension == ri.imageDimension ||imageDimension != null && imageDimension.equals(ri.imageDimension)) + && (name == ri.name ||name != null && name.equals(ri.name)) + && (level == ri.level ||level != null && level.equals(ri.level)); } /** {@inheritDoc} */