2ec575a2 by Ean Schuessler

Use static inner class. #4298

1 parent 049125b7
...@@ -320,24 +320,22 @@ public class DirectControlServlet extends HttpServlet { ...@@ -320,24 +320,22 @@ public class DirectControlServlet extends HttpServlet {
320 } 320 }
321 return delegator; 321 return delegator;
322 } 322 }
323 }
324
325 class ISODateValueProcessor implements JsonValueProcessor {
326 public static final String module = ISODateValueProcessor.class.getName();
327 323
328 public ISODateValueProcessor() { 324 protected static class ISODateValueProcessor implements JsonValueProcessor {
329 } 325 public ISODateValueProcessor() {
326 }
330 327
331 public Object processArrayValue( Object value, JsonConfig jsonConfig ) { 328 public Object processArrayValue( Object value, JsonConfig jsonConfig ) {
332 return value; 329 return value;
333 } 330 }
334 331
335 public Object processObjectValue( String key, Object value, JsonConfig jsonConfig ) { 332 public Object processObjectValue( String key, Object value, JsonConfig jsonConfig ) {
336 return process(value, jsonConfig); 333 return process(value, jsonConfig);
337 } 334 }
338 335
339 private Object process( Object value, JsonConfig jsonConfig ) { 336 private Object process( Object value, JsonConfig jsonConfig ) {
340 String newValue = value.toString(); 337 String newValue = value.toString();
341 return newValue; 338 return newValue;
339 }
342 } 340 }
343 } 341 }
......