Issue #2613 StandardCharsets NIO dependency removed.

Change-Id: I7ba841e1f1e480561d3c7302e8b00ecfaab41f24

Former-commit-id: a9e1fbf4f19beecc2935cb992380f27cb2298ddb
This commit is contained in:
Dave Hladky 2014-01-16 08:59:19 -06:00
parent 190a54707d
commit 33aeec0cb4
2 changed files with 4 additions and 3 deletions

View file

@ -21,7 +21,7 @@ package com.raytheon.uf.common.registry.services;
import java.lang.reflect.Proxy;
import java.net.URL;
import java.nio.charset.StandardCharsets;
import java.nio.charset.Charset;
import javax.xml.bind.JAXBElement;
import javax.xml.bind.JAXBException;
@ -171,8 +171,7 @@ public class RegistryRESTServices {
public Object accessXMLRestService(String url) {
String response = null;
try {
;
response = Resources.toString(new URL(url), StandardCharsets.UTF_8);
response = Resources.toString(new URL(url), Charset.forName("UTF8"));
} catch (Exception e) {
throw new RegistryServiceException(
"Error accessing REST service at URL: [" + url + "]", e);

View file

@ -123,6 +123,8 @@ public class NotificationListenerImpl implements NotificationListener {
/** Registry soap service client */
private RegistrySOAPServices registrySoapClient;
// @FIXME This method is pretty scary in it's implementation as Richard
// pointed out. Please fix Ben.
@Override
public void onNotification(NotificationType notification) {
long startTime = TimeUtil.currentTimeMillis();