Changeset 872 for trunk/autoquest-htmlmonitor/src/main/java/de/ugoe/cs/autoquest/htmlmonitor/HtmlMonitorServlet.java
- Timestamp:
- 10/12/12 15:16:25 (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/autoquest-htmlmonitor/src/main/java/de/ugoe/cs/autoquest/htmlmonitor/HtmlMonitorServlet.java
r871 r872 62 62 Object value = null; 63 63 try { 64 value = JSONValue.parseWithException(new InputStreamReader(request.getInputStream())); 64 value = JSONValue.parseWithException 65 (new InputStreamReader(request.getInputStream(), "UTF-8")); 65 66 66 67 if (!(value instanceof JSONObject)) { … … 325 326 else if ((int.class.equals(clazz)) || (Integer.class.equals(clazz))) { 326 327 try { 327 result = (T) new Integer(Integer.parseInt((String) value));328 result = (T) Integer.valueOf(Integer.parseInt((String) value)); 328 329 } 329 330 catch (NumberFormatException e) { … … 334 335 else if ((long.class.equals(clazz)) || (Long.class.equals(clazz))) { 335 336 try { 336 result = (T) new Long(Long.parseLong((String) value));337 result = (T) Long.valueOf(Long.parseLong((String) value)); 337 338 } 338 339 catch (NumberFormatException e) {
Note: See TracChangeset
for help on using the changeset viewer.