From dce30afc7373bc68a563fc83e8bee0316e22a47d Mon Sep 17 00:00:00 2001 From: Frank Schnicke Date: Mon, 3 Apr 2023 11:06:00 +0200 Subject: [PATCH] Removes warnings Signed-off-by: Frank Schnicke --- .../basyx/vab/protocol/https/JerseyHttpsClientFactory.java | 1 - .../regression/submodel/restapi/TestHttpFileUpload.java | 3 +++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/src/main/java/org/eclipse/basyx/vab/protocol/https/JerseyHttpsClientFactory.java b/src/main/java/org/eclipse/basyx/vab/protocol/https/JerseyHttpsClientFactory.java index cffe85ff..cd7fb074 100644 --- a/src/main/java/org/eclipse/basyx/vab/protocol/https/JerseyHttpsClientFactory.java +++ b/src/main/java/org/eclipse/basyx/vab/protocol/https/JerseyHttpsClientFactory.java @@ -33,7 +33,6 @@ import javax.net.ssl.SSLContext; import javax.net.ssl.TrustManager; import javax.ws.rs.client.Client; -import javax.ws.rs.client.ClientBuilder; import org.apache.http.conn.ssl.DefaultHostnameVerifier; import org.glassfish.jersey.client.JerseyClientBuilder; diff --git a/src/test/java/org/eclipse/basyx/testsuite/regression/submodel/restapi/TestHttpFileUpload.java b/src/test/java/org/eclipse/basyx/testsuite/regression/submodel/restapi/TestHttpFileUpload.java index ac7387c5..6b2fd2d0 100644 --- a/src/test/java/org/eclipse/basyx/testsuite/regression/submodel/restapi/TestHttpFileUpload.java +++ b/src/test/java/org/eclipse/basyx/testsuite/regression/submodel/restapi/TestHttpFileUpload.java @@ -121,6 +121,7 @@ public void fileUploadedCorrectly() throws IOException { } + @SuppressWarnings("deprecation") private CloseableHttpResponse uploadDummyFileToSubmodelElement(String submodelElementIdShort) throws IOException { CloseableHttpClient client = HttpClients.createDefault(); @@ -140,6 +141,7 @@ private CloseableHttpResponse uploadDummyFileToSubmodelElement(String submodelEl return client.execute(uploadFile); } + @SuppressWarnings("deprecation") private CloseableHttpResponse uploadDummyAAS() throws FileNotFoundException, IOException, UnsupportedEncodingException, ClientProtocolException { File file = ResourceUtils.getFile("src/test/resources/aas/dummyAAS.json"); @@ -154,6 +156,7 @@ private CloseableHttpResponse uploadDummyAAS() return client.execute(put); } + @SuppressWarnings("deprecation") private CloseableHttpResponse uploadDummySubmodel() throws FileNotFoundException, IOException, UnsupportedEncodingException, ClientProtocolException { File file = ResourceUtils.getFile("src/test/resources/aas/dummySubmodel.json");