From dbd43aa6d3272f6a92f43d83f1114b474308d9ba Mon Sep 17 00:00:00 2001 From: gregor Date: Mon, 23 Aug 2004 12:05:57 +0000 Subject: =?UTF-8?q?Erg=C3=A4nzung=20zu=20Bugfix=20197:=20Ber=C3=BCcksichti?= =?UTF-8?q?gung,=20dass=20leere=20Listevon=20Prefixes=20gleichbedeutend=20?= =?UTF-8?q?ist=20mit=20nicht=20vorhandener=20Liste=20(null).?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit git-svn-id: https://joinup.ec.europa.eu/svn/moa-idspss/trunk@187 d688527b-c9ab-4aba-bd8d-4036d912da1d --- .../spss/server/iaik/xml/ExclusiveCanonicalizationImpl.java | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) (limited to 'spss.server/src') diff --git a/spss.server/src/at/gv/egovernment/moa/spss/server/iaik/xml/ExclusiveCanonicalizationImpl.java b/spss.server/src/at/gv/egovernment/moa/spss/server/iaik/xml/ExclusiveCanonicalizationImpl.java index f50d0d9b1..b38fbe128 100644 --- a/spss.server/src/at/gv/egovernment/moa/spss/server/iaik/xml/ExclusiveCanonicalizationImpl.java +++ b/spss.server/src/at/gv/egovernment/moa/spss/server/iaik/xml/ExclusiveCanonicalizationImpl.java @@ -60,10 +60,15 @@ public class ExclusiveCanonicalizationImpl * @see java.lang.Object#equals(Object) */ public boolean equals(Object other) { - if (other instanceof ExclusiveCanonicalizationImpl) { - ExclusiveCanonicalizationImpl c14n = - (ExclusiveCanonicalizationImpl) other; - return getAlgorithmURI().equals(c14n.getAlgorithmURI()); + if (other instanceof ExclusiveCanonicalization) { + ExclusiveCanonicalization eC14n = + (ExclusiveCanonicalization) other; + boolean algURIEquals = getAlgorithmURI().equals(eC14n.getAlgorithmURI()); + boolean inclNSPrefs = + (getInclusiveNamespacePrefixes() == null || getInclusiveNamespacePrefixes().isEmpty()) + ? eC14n.getInclusiveNamespacePrefixes() == null || eC14n.getInclusiveNamespacePrefixes().isEmpty() + : getInclusiveNamespacePrefixes().equals(eC14n.getInclusiveNamespacePrefixes()); + return algURIEquals && inclNSPrefs; } return false; } -- cgit v1.2.3