santuario-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From geu...@apache.org
Subject cvs commit: xml-security/src/org/apache/xml/security/c14n/helper C14nHelper.java
Date Mon, 30 Sep 2002 11:16:48 GMT
geuerp      2002/09/30 04:16:48

  Modified:    src/org/apache/xml/security/c14n/helper C14nHelper.java
  Log:
  Removed old outcommented method
  
  Revision  Changes    Path
  1.10      +0 -47     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.9
  retrieving revision 1.10
  diff -u -r1.9 -r1.10
  --- C14nHelper.java	28 Sep 2002 08:54:53 -0000	1.9
  +++ C14nHelper.java	30 Sep 2002 11:16:48 -0000	1.10
  @@ -92,53 +92,6 @@
       * @param attributes
       *
       */
  -
  -   /*
  -   public static final Object[] sortAttributes(Object[] attributes) {
  -
  -      if (attributes == null) {
  -         return new Attr[0];
  -      }
  -
  -      Vector namespacesVector = new Vector();
  -      Vector nonNamespacesVector = new Vector();
  -
  -      // first, we split namespace and non-namespace attrs to sort them separately
  -      for (int i = 0; i < attributes.length; i++) {
  -         Attr a = (Attr) attributes[i];
  -
  -         if (Constants.NamespaceSpecNS.equals(a.getNamespaceURI())) {
  -            namespacesVector.add(a);
  -         } else {
  -            nonNamespacesVector.add(a);
  -         }
  -      }
  -
  -      // sort the namespaces
  -      Object[] namespaces = namespacesVector.toArray();
  -
  -      java.util.Arrays.sort(namespaces, new NSAttrCompare());
  -
  -      // sort the attributes
  -      Object[] nonNamespaces = nonNamespacesVector.toArray();
  -
  -      java.util.Arrays.sort(nonNamespaces, new NonNSAttrCompare());
  -
  -      // merge them into a hole result
  -      Object result[] = new Object[attributes.length];
  -
  -      for (int i = 0; i < namespaces.length; i++) {
  -         result[i] = (Attr) namespaces[i];
  -      }
  -
  -      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) {
  
  
  

Mime
View raw message