Changeset 563


Ignore:
Timestamp:
08/17/12 09:31:13 (12 years ago)
Author:
pharms
Message:
  • removed find bugs error
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/quest-misc/src/main/java/de/ugoe/cs/tasktree/keyboardmaps/KeyboardMap.java

    r558 r563  
    1111import java.io.InputStream; 
    1212import java.io.InputStreamReader; 
     13import java.io.UnsupportedEncodingException; 
    1314import java.util.ArrayList; 
    1415import java.util.HashMap; 
     
    164165        throws IllegalArgumentException 
    165166    { 
    166         BufferedReader in = new BufferedReader(new InputStreamReader(stream)); 
     167        BufferedReader in = null; 
     168        try { 
     169            in = new BufferedReader(new InputStreamReader(stream, "UTF-8")); 
     170        } 
     171        catch (UnsupportedEncodingException e) { 
     172            LOG.log(Level.WARNING, "no keyboard map available for locale " + locale, e); 
     173            throw new IllegalArgumentException 
     174                ("provided stream can not be read due to invalid encoding", e); 
     175        } 
    167176 
    168177        try { 
Note: See TracChangeset for help on using the changeset viewer.