Ignore:
Timestamp:
08/01/14 15:49:21 (10 years ago)
Author:
sherbold
Message:
  • fixed hashCode of SimpleSOAPEventType
  • added toString to SimpleSOAPEventType
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/autoquest-plugin-http/src/main/java/de/ugoe/cs/autoquest/plugin/http/eventcore/SimpleSOAPEventType.java

    r1635 r1642  
    105105        } 
    106106        else if (obj instanceof SimpleSOAPEventType) { 
    107             return HTTPUtils.equals(calledMethod, ((SimpleSOAPEventType) obj).getCalledMethod()) && 
    108                 HTTPUtils.equals(serviceName, ((SimpleSOAPEventType) obj).getServiceName()); 
     107            return HTTPUtils.equals(calledMethod, ((SimpleSOAPEventType) obj).calledMethod) && 
     108                HTTPUtils.equals(serviceName, ((SimpleSOAPEventType) obj).serviceName); 
    109109        } 
    110110        else { 
     
    120120    @Override 
    121121    public int hashCode() { 
    122         int hashCode = super.hashCode(); 
    123         if (calledMethod != null) { 
    124             hashCode += calledMethod.hashCode(); 
    125         } 
    126         if (serviceName != null) { 
    127             hashCode += serviceName.hashCode(); 
    128         } 
     122        int hashCode = calledMethod.hashCode() + serviceName.hashCode(); 
    129123        return hashCode; 
    130124    } 
     125     
     126    /* (non-Javadoc) 
     127     * @see java.lang.Object#toString() 
     128     */ 
     129    @Override 
     130    public String toString() { 
     131        return "SimpleSOAPEventType(" + serviceName + ", " + calledMethod + ")"; 
     132    } 
    131133} 
Note: See TracChangeset for help on using the changeset viewer.