Ignore:
Timestamp:
02/15/13 16:03:56 (11 years ago)
Author:
pharms
Message:
  • prevented findbugs warnings
Location:
trunk/autoquest-plugin-jfc/src/main/java/de/ugoe/cs/autoquest/plugin/jfc
Files:
1 deleted
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/autoquest-plugin-jfc/src/main/java/de/ugoe/cs/autoquest/plugin/jfc/JFCReplayIDCalculator.java

    r1009 r1079  
    198198                else{ 
    199199                        Map<String, String> idProperties = extractIDProperties(spec); 
    200                         for (String property: idProperties.keySet()){ 
    201                                 String value = idProperties.get(property); 
     200                        for (Map.Entry<String, String> property : idProperties.entrySet()) { 
     201                                String value = property.getValue(); 
    202202                                if (!value.equals("null")){ 
    203                                         hashcode = prime * hashcode + property.hashCode(); 
     203                                        hashcode = prime * hashcode + property.getKey().hashCode(); 
    204204                                        hashcode = prime * hashcode + value.hashCode(); 
    205205                                } 
  • trunk/autoquest-plugin-jfc/src/main/java/de/ugoe/cs/autoquest/plugin/jfc/JFCTraceCorrector.java

    r927 r1079  
    195195         
    196196        try { 
    197             outFile = new PrintStream(new BufferedOutputStream(new FileOutputStream(resultFile))); 
     197            outFile = new PrintStream 
     198                (new BufferedOutputStream(new FileOutputStream(resultFile)), false, "UTF-8"); 
    198199            outFile.println("<?xml version=\"1.0\" encoding=\"UTF-8\" ?>"); 
    199200        } 
     
    201202            throw new IllegalArgumentException("could not create a corrected file name " + 
    202203                                               resultFile + " next to " + file); 
     204        } 
     205        catch (UnsupportedEncodingException e) { 
     206            throw new IllegalArgumentException("this host does not support UTF-8 encoding"); 
    203207        } 
    204208         
     
    673677     * </p> 
    674678     */ 
    675     private void dumpParams(PrintStream out, List<Parameter> params, String indent) { 
     679    private static void dumpParams(PrintStream out, List<Parameter> params, String indent) { 
    676680        for (Parameter param : params) { 
    677681            out.print(indent); 
     
    696700     * @return true if both lists contain the same parameters, false else. 
    697701     */ 
    698     private boolean parametersEqual(List<Parameter> params1, List<Parameter> params2) { 
     702    private static boolean parametersEqual(List<Parameter> params1, List<Parameter> params2) { 
    699703        if (params1 == null) { 
    700704            return params2 == null; 
     
    734738     * </p>  
    735739     */ 
    736     private class Session { 
     740    private static class Session { 
    737741         
    738742        /** */ 
     
    798802     * </p>  
    799803     */ 
    800     private class Event { 
     804    private static class Event { 
    801805 
    802806        /** */ 
     
    873877     * </p>  
    874878     */ 
    875     private class Source { 
     879    private static class Source { 
    876880         
    877881        /** */ 
     
    984988                Source other = (Source) obj; 
    985989                 
    986                 if ((getToStringValue() != other.getToStringValue()) || 
    987                     ((getToStringValue() != null) && 
    988                      (!getToStringValue().equals(other.getToStringValue())))) 
     990                if (getToStringValue() != null ? 
     991                      !getToStringValue().equals(other.getToStringValue()) : 
     992                          other.getToStringValue() != null) 
    989993                { 
    990994                    return false; 
     
    10421046     * </p>  
    10431047     */ 
    1044     private class Component { 
     1048    private static class Component { 
    10451049         
    10461050        /** */ 
     
    11151119     * </p>  
    11161120     */ 
    1117     private class ComponentFromToString extends Component { 
     1121    private static class ComponentFromToString extends Component { 
    11181122         
    11191123        /** */ 
     
    12381242     * </p>  
    12391243     */ 
    1240     private class Parameter { 
     1244    private static class Parameter { 
    12411245         
    12421246        /** */ 
Note: See TracChangeset for help on using the changeset viewer.