Ignore:
Timestamp:
09/06/12 08:41:49 (12 years ago)
Author:
sherbold
Message:
  • fixed FindBugs? warnings in quest-plugin-php by improving null-checks
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/quest-plugin-php/src/main/java/de/ugoe/cs/quest/plugin/php/eventcore/PHPEventType.java

    r681 r773  
    9999        if (obj instanceof PHPEventType) { 
    100100            PHPEventType other = (PHPEventType) obj; 
    101             return ((path == null && other.path == null) || path.equals(other.path)) && 
    102                 ((postVars == null && other.postVars == null) || postVars.equals(other.postVars)) && 
    103                 ((getVars == null && other.getVars == null) || getVars.equals(other.getVars)); 
     101            return ((path == other.path) || (path != null && path.equals(other.path))) && 
     102                ((postVars == other.postVars) || (postVars!=null && postVars.equals(other.postVars))) && 
     103                ((getVars == other.getVars) || (getVars!=null && getVars.equals(other.getVars))); 
    104104        } 
    105105        return false; 
Note: See TracChangeset for help on using the changeset viewer.