Changeset 2231 for trunk


Ignore:
Timestamp:
12/07/17 16:51:30 (7 years ago)
Author:
pharms
Message:
  • solved some findbugs issues
Location:
trunk
Files:
3 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        { 
  • trunk/autoquest-plugin-genericevents/src/main/java/de/ugoe/cs/autoquest/plugin/genericevents/GenericEventLogParser.java

    r2165 r2231  
    155155        // year 1 of the gregorian calendar. If this is the case, the date is still in the future. 
    156156        // Hence, we substract the milliseconds between year 1 of the gregorian calendar and 1970. 
    157         // (We took these magic number, as they provide correct results. It's not fully clear, 
    158         //  why the January 1st 1970 does not work correctly but provides an offset of two days) 
    159157        if (val > System.currentTimeMillis()) { 
    160             Duration duration = Duration.between(new GregorianCalendar(1, 1, 1).toInstant(), 
    161                                                  new GregorianCalendar(1969, 12, 30).toInstant()); 
     158            Duration duration = Duration.between(new GregorianCalendar(1, 0, 1).toInstant(), 
     159                                                 new GregorianCalendar(1970, 0, 1).toInstant()); 
    162160             
    163161            val -= duration.toMillis(); 
  • trunk/autoquest-ui-core/src/main/java/de/ugoe/cs/autoquest/commands/usability/CMDgetTaskModelCrossCoverage.java

    r2166 r2231  
    12991299            } 
    13001300             
    1301             return null; 
     1301            throw new IllegalStateException("action type must be one of shift, goto, and reduce"); 
    13021302        } 
    13031303        
     
    16081608        @Override 
    16091609        public boolean equals(Object obj) { 
    1610             if (((Edge) obj).symbol == null) { 
    1611                 System.out.println("blöd"); 
    1612             } 
    1613              
    16141610            if (this == obj) { 
    16151611                return true; 
Note: See TracChangeset for help on using the changeset viewer.