Ignore:
Timestamp:
10/12/12 15:16:25 (12 years ago)
Author:
pharms
Message:
  • removed find bug warnings
File:
1 edited

Legend:

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

    r871 r872  
    6262        Object value = null; 
    6363        try { 
    64             value = JSONValue.parseWithException(new InputStreamReader(request.getInputStream())); 
     64            value = JSONValue.parseWithException 
     65                (new InputStreamReader(request.getInputStream(), "UTF-8")); 
    6566             
    6667            if (!(value instanceof JSONObject)) { 
     
    325326            else if ((int.class.equals(clazz)) || (Integer.class.equals(clazz))) { 
    326327                try { 
    327                     result = (T) new Integer(Integer.parseInt((String) value)); 
     328                    result = (T) Integer.valueOf(Integer.parseInt((String) value)); 
    328329                } 
    329330                catch (NumberFormatException e) { 
     
    334335            else if ((long.class.equals(clazz)) || (Long.class.equals(clazz))) { 
    335336                try { 
    336                     result = (T) new Long(Long.parseLong((String) value)); 
     337                    result = (T) Long.valueOf(Long.parseLong((String) value)); 
    337338                } 
    338339                catch (NumberFormatException e) { 
Note: See TracChangeset for help on using the changeset viewer.