axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From er...@apache.org
Subject cvs commit: xml-axis/java/src/org/apache/axis/message PrefixedQName.java
Date Tue, 01 Jul 2003 01:22:12 GMT
ericf       2003/06/30 18:22:12

  Modified:    java/src/org/apache/axis/attachments DimeTypeNameFormat.java
               java/src/org/apache/axis/enum Enum.java
               java/src/org/apache/axis/message PrefixedQName.java
  Log:
  implemented hashCode in classes that already implement equals, per contract
  defined in java.lang.Object.
  
  Revision  Changes    Path
  1.10      +4 -0      xml-axis/java/src/org/apache/axis/attachments/DimeTypeNameFormat.java
  
  Index: DimeTypeNameFormat.java
  ===================================================================
  RCS file: /home/cvs/xml-axis/java/src/org/apache/axis/attachments/DimeTypeNameFormat.java,v
  retrieving revision 1.9
  retrieving revision 1.10
  diff -u -r1.9 -r1.10
  --- DimeTypeNameFormat.java	22 Apr 2003 19:34:02 -0000	1.9
  +++ DimeTypeNameFormat.java	1 Jul 2003 01:22:11 -0000	1.10
  @@ -109,6 +109,10 @@
           return format;
       }
   
  +    public int hashCode() {
  +        return (int) format;
  +    }
  +
       public final boolean equals(final Object x) {
           if (x == null)  {
               return false;
  
  
  
  1.14      +4 -0      xml-axis/java/src/org/apache/axis/enum/Enum.java
  
  Index: Enum.java
  ===================================================================
  RCS file: /home/cvs/xml-axis/java/src/org/apache/axis/enum/Enum.java,v
  retrieving revision 1.13
  retrieving revision 1.14
  diff -u -r1.13 -r1.14
  --- Enum.java	22 Apr 2003 19:34:39 -0000	1.13
  +++ Enum.java	1 Jul 2003 01:22:11 -0000	1.14
  @@ -97,6 +97,10 @@
                  ? _equals((Enum)obj)
                  : false;
       }
  +
  +    public int hashCode() {
  +        return value;
  +    }
       
       public final boolean equals(Enum obj) {
           return (obj != null) ? _equals(obj) : false;
  
  
  
  1.8       +4 -0      xml-axis/java/src/org/apache/axis/message/PrefixedQName.java
  
  Index: PrefixedQName.java
  ===================================================================
  RCS file: /home/cvs/xml-axis/java/src/org/apache/axis/message/PrefixedQName.java,v
  retrieving revision 1.7
  retrieving revision 1.8
  diff -u -r1.7 -r1.8
  --- PrefixedQName.java	22 Apr 2003 19:35:15 -0000	1.7
  +++ PrefixedQName.java	1 Jul 2003 01:22:11 -0000	1.8
  @@ -106,4 +106,8 @@
           }
           return false;
       }
  +
  +    public int hashCode() {
  +        return prefix.hashCode() + qName.hashCode();
  +    }
   }
  
  
  

Mime
View raw message