Ignore:
Timestamp:
12/07/17 16:51:30 (7 years ago)
Author:
pharms
Message:
  • solved some findbugs issues
File:
1 edited

Legend:

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

    r2215 r2231  
    135135        /* 
    136136         * Path and label of the elements fits together. In this case it is most likely that this 
    137          * elements fits together. This only makes since in the case a label exists. 
    138          */ 
    139         if (otherSpec.getName() != "NOT_SET" && getName() != "NOT_SET" && 
    140             !otherSpec.getName().contains("image:") && getName().contains("image:") && 
    141             otherSpec.getName() == getName() && otherSpec.getPath() == getPath()) 
     137         * elements fits together. This only makes sense in the case a label exists. 
     138         */ 
     139        if (!"NOT_SET".equals(otherSpec.getName()) && !"NOT_SET".equals(getName()) && 
     140            !otherSpec.getName().contains("image:") && !getName().contains("image:") && 
     141            otherSpec.getName().equals(getName()) && otherSpec.getPath().equals(getPath())) 
    142142        { 
    143143            return true; 
     
    148148         * together. 
    149149         */ 
    150         if (otherSpec.getPath() == getPath() && 
     150        if (otherSpec.getPath().equals(getPath()) && 
    151151            otherSpec.getElementPosition() == getElementPosition()) 
    152152        { 
Note: See TracChangeset for help on using the changeset viewer.