Return-Path: Mailing-List: contact security-cvs-help@xml.apache.org; run by ezmlm Delivered-To: mailing list security-cvs@xml.apache.org Received: (qmail 71158 invoked from network); 28 Sep 2002 08:54:54 -0000 Received: from icarus.apache.org (63.251.56.143) by daedalus.apache.org with SMTP; 28 Sep 2002 08:54:54 -0000 Received: (qmail 98032 invoked by uid 1379); 28 Sep 2002 08:54:53 -0000 Date: 28 Sep 2002 08:54:53 -0000 Message-ID: <20020928085453.98031.qmail@icarus.apache.org> From: geuerp@apache.org To: xml-security-cvs@apache.org Subject: cvs commit: xml-security/src/org/apache/xml/security/c14n/implementations Canonicalizer20010315.java Canonicalizer20010315Excl.java CanonicalizerBase.java X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N geuerp 2002/09/28 01:54:53 Modified: src/org/apache/xml/security/c14n/helper C14nHelper.java src/org/apache/xml/security/c14n/implementations Canonicalizer20010315.java Canonicalizer20010315Excl.java CanonicalizerBase.java Removed: src/org/apache/xml/security/c14n/helper NSAttrCompare.java NonNSAttrCompare.java Log: AttrCompare fully replaces NonNSAttrCompare and NSAttrCompare Revision Changes Path 1.9 +19 -0 xml-security/src/org/apache/xml/security/c14n/helper/C14nHelper.java Index: C14nHelper.java =================================================================== RCS file: /home/cvs/xml-security/src/org/apache/xml/security/c14n/helper/C14nHelper.java,v retrieving revision 1.8 retrieving revision 1.9 diff -u -r1.8 -r1.9 --- C14nHelper.java 28 Aug 2002 13:11:35 -0000 1.8 +++ C14nHelper.java 28 Sep 2002 08:54:53 -0000 1.9 @@ -92,6 +92,8 @@ * @param attributes * */ + + /* public static final Object[] sortAttributes(Object[] attributes) { if (attributes == null) { @@ -132,6 +134,23 @@ for (int i = 0; i < nonNamespaces.length; i++) { result[i + namespaces.length] = (Attr) nonNamespaces[i]; } + + return result; + } + */ + + public static final Object[] sortAttributes(Object[] attributes) { + + if (attributes == null) { + return new Attr[0]; + } + + Object[] result = new Object[attributes.length]; + for (int i=0; i