Ignore:
Timestamp:
12/08/17 14:47:56 (7 years ago)
Author:
pharms
Message:
  • solved some findbugs issues
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/autoquest-core-tasktrees/src/main/java/de/ugoe/cs/autoquest/tasktrees/temporalrelation/utils/TaskTreeEncoder.java

    r1852 r2237  
    1818import java.io.FileOutputStream; 
    1919import java.io.PrintStream; 
     20import java.io.UnsupportedEncodingException; 
    2021import java.util.HashMap; 
    2122import java.util.List; 
     
    5758        PrintStream out = null; 
    5859        try { 
    59             out = new PrintStream(new FileOutputStream("userSessions.txt")); 
     60            out = new PrintStream(new FileOutputStream("userSessions.txt"), true, "UTF-8"); 
    6061            for (IUserSession session : userSessions) { 
    6162                encode(session, out); 
    6263            } 
     64        } 
     65        catch (UnsupportedEncodingException e) { 
     66            // must not happen as the encoding should be correct 
     67            throw new RuntimeException("programming error", e); 
    6368        } 
    6469        finally { 
     
    7782        PrintStream out = null; 
    7883        try { 
    79             out = new PrintStream(new FileOutputStream("taskInstanceList.txt")); 
     84            out = new PrintStream(new FileOutputStream("taskInstanceList.txt"), true, "UTF-8"); 
    8085            encode(taskInstanceList, out); 
     86        } 
     87        catch (UnsupportedEncodingException e) { 
     88            // must not happen as the encoding should be correct 
     89            throw new RuntimeException("programming error", e); 
    8190        } 
    8291        finally { 
     
    95104        PrintStream out = null; 
    96105        try { 
    97             out = new PrintStream(new FileOutputStream("task.txt")); 
     106            out = new PrintStream(new FileOutputStream("task.txt"), true, "UTF-8"); 
    98107            encode(task, out); 
     108        } 
     109        catch (UnsupportedEncodingException e) { 
     110            // must not happen as the encoding should be correct 
     111            throw new RuntimeException("programming error", e); 
    99112        } 
    100113        finally { 
Note: See TracChangeset for help on using the changeset viewer.