Ignore:
Timestamp:
04/29/13 13:35:31 (11 years ago)
Author:
pharms
Message:
  • remove a find bugs warning
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/autoquest-plugin-mfc/src/main/java/de/ugoe/cs/autoquest/plugin/mfc/guimodel/MFCGUIElementSpec.java

    r1006 r1184  
    253253        MFCGUIElementSpec otherSpec = (MFCGUIElementSpec) other; 
    254254 
    255         if ((type != otherSpec.type) && ((type != null) && (!type.equals(otherSpec.type)))) { 
     255        if ((type == null) ? otherSpec.type != null : !type.equals(otherSpec.type)) { 
    256256            return false; 
    257257        } 
     
    337337        return (hwnd == otherSpec.hwnd) && (isModal == otherSpec.isModal) && 
    338338            (resourceId == otherSpec.resourceId) && 
    339             ((type == otherSpec.type) || ((type != null) && (type.equals(otherSpec.type)))) && 
    340             ((name == otherSpec.name) || ((name != null) && (name.equals(otherSpec.name)))); 
     339            (type == null ? otherSpec.type == null : type.equals(otherSpec.type)) && 
     340            (name == null ? otherSpec.name == null : name.equals(otherSpec.name)); 
    341341    } 
    342342 
     
    403403            } 
    404404 
    405             if ((name != other.name) && (name != null) && (!name.equals(other.name))) { 
     405            if (name == null ? other.name != null : !name.equals(other.name)) { 
    406406                setName(other.name); 
    407407            } 
Note: See TracChangeset for help on using the changeset viewer.