You are viewing a plain text version of this content. The canonical link for it is here.
Posted to axis-cvs@ws.apache.org by st...@apache.org on 2004/09/07 11:35:49 UTC

cvs commit: ws-axis/java/src/org/apache/axis/types Time.java

stevel      2004/09/07 02:35:49

  Modified:    java/src/org/apache/axis/types Time.java
  Log:
  better defence against NPEs in equality test.
  
  Revision  Changes    Path
  1.14      +1 -1      ws-axis/java/src/org/apache/axis/types/Time.java
  
  Index: Time.java
  ===================================================================
  RCS file: /home/cvs/ws-axis/java/src/org/apache/axis/types/Time.java,v
  retrieving revision 1.13
  retrieving revision 1.14
  diff -u -r1.13 -r1.14
  --- Time.java	18 Jun 2004 17:04:38 -0000	1.13
  +++ Time.java	7 Sep 2004 09:35:49 -0000	1.14
  @@ -236,9 +236,9 @@
       }
   
       public boolean equals(Object obj) {
  +        if (obj == null) return false;
           if (!(obj instanceof Time)) return false;
           Time other = (Time) obj;
  -        if (obj == null) return false;
           if (this == obj) return true;
   
           boolean _equals;