[OLINGO-989] Checkbuild issues

This commit is contained in:
Christian Amend 2016-07-27 15:22:00 +02:00
parent 51f7af4b9c
commit 68d2e23ad4
8 changed files with 34 additions and 7 deletions

View File

@ -60,6 +60,13 @@
</dependencies>
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-deploy-plugin</artifactId>
<configuration>
<skip>false</skip>
</configuration>
</plugin>
<plugin>
<groupId>org.apache.felix</groupId>
<artifactId>maven-bundle-plugin</artifactId>

View File

@ -87,6 +87,13 @@
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-deploy-plugin</artifactId>
<configuration>
<skip>false</skip>
</configuration>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId>

View File

@ -70,7 +70,7 @@ public abstract class AbstractODataBasicRequest<T extends ODataResponse>
public final Future<T> asyncExecute() {
return odataClient.getConfiguration().getExecutor().submit(new Callable<T>() {
@Override
public T call() throws Exception {
public T call() throws Exception { //NOSONAR
return execute();
}
});

View File

@ -101,7 +101,7 @@ public abstract class AbstractODataStreamedRequest<V extends ODataResponse, T ex
if (URIUtils.shouldUseRepeatableHttpBodyEntry(odataClient)) {
futureWrapper.setWrapped(odataClient.getConfiguration().getExecutor().submit(new Callable<HttpResponse>() {
@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<V extends ODataResponse, T ex
futureWrapper.setWrapped(odataClient.getConfiguration().getExecutor().submit(new Callable<HttpResponse>() {
@Override
public HttpResponse call() throws Exception {
public HttpResponse call() throws Exception { //NOSONAR
return doExecute();
}
}));

View File

@ -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);

View File

@ -58,7 +58,7 @@
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-deploy-plugin</artifactId>
<configuration>
<skip>${olingo.deploy.skip}</skip>
<skip>false</skip>
</configuration>
</plugin>
</plugins>

View File

@ -97,4 +97,16 @@
</exclusions>
</dependency>
</dependencies>
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-deploy-plugin</artifactId>
<configuration>
<skip>${olingo.deploy.skip}</skip>
</configuration>
</plugin>
</plugins>
</build>
</project>

View File

@ -239,7 +239,7 @@ public class BatchResponseSerializer {
}
private byte[] getContent() {
return content;
return content; //NOSONAR
}
private byte[] getBody(final ODataResponse response) {