diff options
author | Arne H Juul <arnej@yahoo-inc.com> | 2017-04-20 15:06:48 +0200 |
---|---|---|
committer | Arne H Juul <arnej@yahoo-inc.com> | 2017-04-20 15:17:34 +0200 |
commit | 952c3c64a26679a8b75136723361059898848cf4 (patch) | |
tree | a587dd5ab6d32b60d58c9463f9e3bfa9eb487002 /application | |
parent | fd6e26a87aab7dee20520d99dc020a17cad92055 (diff) |
suppress warnings
Diffstat (limited to 'application')
-rw-r--r-- | application/src/test/java/com/yahoo/application/ApplicationTest.java | 6 | ||||
-rw-r--r-- | application/src/test/java/com/yahoo/application/container/processors/Rot13Processor.java | 1 |
2 files changed, 4 insertions, 3 deletions
diff --git a/application/src/test/java/com/yahoo/application/ApplicationTest.java b/application/src/test/java/com/yahoo/application/ApplicationTest.java index 1f90c195065..7671d50bb96 100644 --- a/application/src/test/java/com/yahoo/application/ApplicationTest.java +++ b/application/src/test/java/com/yahoo/application/ApplicationTest.java @@ -27,7 +27,6 @@ import org.apache.commons.io.IOUtils; import org.apache.http.HttpResponse; import org.apache.http.client.HttpClient; import org.apache.http.client.methods.HttpGet; -import org.apache.http.impl.client.DefaultHttpClient; import org.junit.Ignore; import org.junit.Test; @@ -49,6 +48,7 @@ import static com.yahoo.application.container.JDiscTest.getListenPort; /** * @author bratseth */ +@SuppressWarnings("deprecation") public class ApplicationTest { @Test @@ -331,7 +331,7 @@ public class ApplicationTest { public void http_interface_is_off_when_networking_is_disabled() throws Exception { int httpPort = getFreePort(); try (Application application = Application.fromServicesXml(servicesXmlWithServer(httpPort), Networking.disable)) { - HttpClient client = new DefaultHttpClient(); + HttpClient client = new org.apache.http.impl.client.DefaultHttpClient(); int statusCode = client.execute(new HttpGet("http://localhost:" + httpPort)).getStatusLine().getStatusCode(); fail("Networking.disable is specified, but the network interface is enabled! Got status code: " + statusCode); } @@ -341,7 +341,7 @@ public class ApplicationTest { public void http_interface_is_on_when_networking_is_enabled() throws Exception { int httpPort = getFreePort(); try (Application application = Application.fromServicesXml(servicesXmlWithServer(httpPort), Networking.enable)) { - HttpClient client = new DefaultHttpClient(); + HttpClient client = new org.apache.http.impl.client.DefaultHttpClient(); HttpResponse response = client.execute(new HttpGet("http://localhost:" + httpPort)); assertEquals(200, response.getStatusLine().getStatusCode()); BufferedReader r = new BufferedReader(new InputStreamReader(response.getEntity().getContent())); diff --git a/application/src/test/java/com/yahoo/application/container/processors/Rot13Processor.java b/application/src/test/java/com/yahoo/application/container/processors/Rot13Processor.java index 95765e69d33..3cd1de85475 100644 --- a/application/src/test/java/com/yahoo/application/container/processors/Rot13Processor.java +++ b/application/src/test/java/com/yahoo/application/container/processors/Rot13Processor.java @@ -14,6 +14,7 @@ import static com.yahoo.application.container.docprocs.Rot13DocumentProcessor.ro */ public class Rot13Processor extends Processor { + @SuppressWarnings("unchecked") @Override public Response process(Request request, Execution execution) { Object fooObj = request.properties().get("title"); |