diff --git a/lib/client-api/pom.xml b/lib/client-api/pom.xml index 0f08647ca..8561b4070 100644 --- a/lib/client-api/pom.xml +++ b/lib/client-api/pom.xml @@ -60,6 +60,13 @@ + + org.apache.maven.plugins + maven-deploy-plugin + + false + + org.apache.felix maven-bundle-plugin diff --git a/lib/client-core/pom.xml b/lib/client-core/pom.xml index 1af1dea2b..7ec36bd92 100644 --- a/lib/client-core/pom.xml +++ b/lib/client-core/pom.xml @@ -87,6 +87,13 @@ + + org.apache.maven.plugins + maven-deploy-plugin + + false + + org.apache.maven.plugins maven-surefire-plugin diff --git a/lib/client-core/src/main/java/org/apache/olingo/client/core/communication/request/AbstractODataBasicRequest.java b/lib/client-core/src/main/java/org/apache/olingo/client/core/communication/request/AbstractODataBasicRequest.java index e8b1659ea..5435f7f42 100644 --- a/lib/client-core/src/main/java/org/apache/olingo/client/core/communication/request/AbstractODataBasicRequest.java +++ b/lib/client-core/src/main/java/org/apache/olingo/client/core/communication/request/AbstractODataBasicRequest.java @@ -70,7 +70,7 @@ public abstract class AbstractODataBasicRequest public final Future asyncExecute() { return odataClient.getConfiguration().getExecutor().submit(new Callable() { @Override - public T call() throws Exception { + public T call() throws Exception { //NOSONAR return execute(); } }); diff --git a/lib/client-core/src/main/java/org/apache/olingo/client/core/communication/request/streamed/AbstractODataStreamedRequest.java b/lib/client-core/src/main/java/org/apache/olingo/client/core/communication/request/streamed/AbstractODataStreamedRequest.java index 76e56339b..5da0ce64a 100644 --- a/lib/client-core/src/main/java/org/apache/olingo/client/core/communication/request/streamed/AbstractODataStreamedRequest.java +++ b/lib/client-core/src/main/java/org/apache/olingo/client/core/communication/request/streamed/AbstractODataStreamedRequest.java @@ -101,7 +101,7 @@ public abstract class AbstractODataStreamedRequest() { @Override - public HttpResponse call() throws Exception { + public HttpResponse call() throws Exception { //NOSONAR ((HttpEntityEnclosingRequestBase) request).setEntity( URIUtils.buildInputStreamEntity(odataClient, payloadManager.getBody())); @@ -114,7 +114,7 @@ public abstract class AbstractODataStreamedRequest() { @Override - public HttpResponse call() throws Exception { + public HttpResponse call() throws Exception { //NOSONAR return doExecute(); } })); diff --git a/lib/client-core/src/main/java/org/apache/olingo/client/core/uri/URIUtils.java b/lib/client-core/src/main/java/org/apache/olingo/client/core/uri/URIUtils.java index bf2405df3..ecde08685 100644 --- a/lib/client-core/src/main/java/org/apache/olingo/client/core/uri/URIUtils.java +++ b/lib/client-core/src/main/java/org/apache/olingo/client/core/uri/URIUtils.java @@ -45,14 +45,15 @@ import org.apache.http.entity.AbstractHttpEntity; import org.apache.http.entity.ByteArrayEntity; import org.apache.http.entity.InputStreamEntity; import org.apache.olingo.client.api.ODataClient; +import org.apache.olingo.client.api.domain.ClientValue; import org.apache.olingo.client.api.http.HttpClientFactory; import org.apache.olingo.client.api.http.WrappingHttpClientFactory; import org.apache.olingo.client.api.uri.SegmentType; import org.apache.olingo.client.core.http.BasicAuthHttpClientFactory; import org.apache.olingo.commons.api.Constants; -import org.apache.olingo.client.api.domain.ClientValue; import org.apache.olingo.commons.api.edm.EdmPrimitiveTypeException; import org.apache.olingo.commons.api.edm.geo.Geospatial; +import org.apache.olingo.commons.api.ex.ODataRuntimeException; import org.apache.olingo.commons.core.edm.primitivetype.EdmBinary; import org.apache.olingo.commons.core.edm.primitivetype.EdmDateTimeOffset; import org.apache.olingo.commons.core.edm.primitivetype.EdmDecimal; @@ -293,7 +294,7 @@ public final class URIUtils { bytes = IOUtils.toByteArray(input); IOUtils.closeQuietly(input); } catch (IOException e) { - throw new RuntimeException("While reading input for not chunked encoding", e); + throw new ODataRuntimeException("While reading input for not chunked encoding", e); } entity = new ByteArrayEntity(bytes); diff --git a/lib/pom.xml b/lib/pom.xml index 60e48fac5..1f25a5287 100644 --- a/lib/pom.xml +++ b/lib/pom.xml @@ -58,7 +58,7 @@ org.apache.maven.plugins maven-deploy-plugin - ${olingo.deploy.skip} + false diff --git a/lib/server-core-ext/pom.xml b/lib/server-core-ext/pom.xml index 7daeeaab8..db6f6fc94 100644 --- a/lib/server-core-ext/pom.xml +++ b/lib/server-core-ext/pom.xml @@ -97,4 +97,16 @@ + + + + + org.apache.maven.plugins + maven-deploy-plugin + + ${olingo.deploy.skip} + + + + diff --git a/lib/server-core/src/main/java/org/apache/olingo/server/core/serializer/BatchResponseSerializer.java b/lib/server-core/src/main/java/org/apache/olingo/server/core/serializer/BatchResponseSerializer.java index e4a2a8370..7ef81b000 100644 --- a/lib/server-core/src/main/java/org/apache/olingo/server/core/serializer/BatchResponseSerializer.java +++ b/lib/server-core/src/main/java/org/apache/olingo/server/core/serializer/BatchResponseSerializer.java @@ -239,7 +239,7 @@ public class BatchResponseSerializer { } private byte[] getContent() { - return content; + return content; //NOSONAR } private byte[] getBody(final ODataResponse response) {