Changeset 884


Ignore:
Timestamp:
10/16/12 08:32:56 (12 years ago)
Author:
pharms
Message:
  • removed some find bugs warnings
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/autoquest-htmlmonitor/src/main/java/de/ugoe/cs/autoquest/htmlmonitor/HtmlMonitorServlet.java

    r879 r884  
    7070            (request.getPathInfo().endsWith("/script/autoquest-htmlmonitor.js"))) 
    7171        { 
    72             InputStream script = null; 
     72            BufferedReader reader = null; 
    7373             
    7474            try { 
    75                 script = this.getClass().getClassLoader().getResourceAsStream 
     75                InputStream script = this.getClass().getClassLoader().getResourceAsStream 
    7676                     ("autoquest-htmlmonitor.js"); 
    7777             
     
    8080                } 
    8181                else { 
    82                     BufferedReader reader = new BufferedReader(new InputStreamReader(script)); 
     82                    reader = new BufferedReader(new InputStreamReader(script, "UTF-8")); 
    8383                    PrintWriter output = response.getWriter(); 
    8484                    String line; 
     
    9696            } 
    9797            finally { 
    98                 if (script != null) { 
    99                     script.close(); 
     98                if (reader != null) { 
     99                    reader.close(); 
    100100                } 
    101101            } 
Note: See TracChangeset for help on using the changeset viewer.