Ignore:
Timestamp:
01/31/14 10:46:53 (11 years ago)
Author:
pharms
Message:
  • removed find bugs warnings
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/java-utils/src/main/java/de/ugoe/cs/util/console/defaultcommands/CMDman.java

    r1341 r1348  
    5959             
    6060            if (manStream != null) { 
    61                 BufferedReader reader = new BufferedReader(new InputStreamReader(manStream)); 
     61                BufferedReader reader = null; 
    6262                try { 
     63                    reader = new BufferedReader(new InputStreamReader(manStream, "UTF-8")); 
    6364                    String line = reader.readLine(); 
    6465                     
     
    7576                finally { 
    7677                    try { 
    77                         reader.close(); 
     78                        if (reader != null) { 
     79                            reader.close(); 
     80                        } 
    7881                    } 
    7982                    catch (IOException e) { 
Note: See TracChangeset for help on using the changeset viewer.