[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> </dependencies>
<build> <build>
<plugins> <plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-deploy-plugin</artifactId>
<configuration>
<skip>false</skip>
</configuration>
</plugin>
<plugin> <plugin>
<groupId>org.apache.felix</groupId> <groupId>org.apache.felix</groupId>
<artifactId>maven-bundle-plugin</artifactId> <artifactId>maven-bundle-plugin</artifactId>

View File

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

View File

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

View File

@ -101,7 +101,7 @@ public abstract class AbstractODataStreamedRequest<V extends ODataResponse, T ex
if (URIUtils.shouldUseRepeatableHttpBodyEntry(odataClient)) { if (URIUtils.shouldUseRepeatableHttpBodyEntry(odataClient)) {
futureWrapper.setWrapped(odataClient.getConfiguration().getExecutor().submit(new Callable<HttpResponse>() { futureWrapper.setWrapped(odataClient.getConfiguration().getExecutor().submit(new Callable<HttpResponse>() {
@Override @Override
public HttpResponse call() throws Exception { public HttpResponse call() throws Exception { //NOSONAR
((HttpEntityEnclosingRequestBase) request).setEntity( ((HttpEntityEnclosingRequestBase) request).setEntity(
URIUtils.buildInputStreamEntity(odataClient, payloadManager.getBody())); 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>() { futureWrapper.setWrapped(odataClient.getConfiguration().getExecutor().submit(new Callable<HttpResponse>() {
@Override @Override
public HttpResponse call() throws Exception { public HttpResponse call() throws Exception { //NOSONAR
return doExecute(); 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.ByteArrayEntity;
import org.apache.http.entity.InputStreamEntity; import org.apache.http.entity.InputStreamEntity;
import org.apache.olingo.client.api.ODataClient; 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.HttpClientFactory;
import org.apache.olingo.client.api.http.WrappingHttpClientFactory; import org.apache.olingo.client.api.http.WrappingHttpClientFactory;
import org.apache.olingo.client.api.uri.SegmentType; import org.apache.olingo.client.api.uri.SegmentType;
import org.apache.olingo.client.core.http.BasicAuthHttpClientFactory; import org.apache.olingo.client.core.http.BasicAuthHttpClientFactory;
import org.apache.olingo.commons.api.Constants; 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.EdmPrimitiveTypeException;
import org.apache.olingo.commons.api.edm.geo.Geospatial; 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.EdmBinary;
import org.apache.olingo.commons.core.edm.primitivetype.EdmDateTimeOffset; import org.apache.olingo.commons.core.edm.primitivetype.EdmDateTimeOffset;
import org.apache.olingo.commons.core.edm.primitivetype.EdmDecimal; import org.apache.olingo.commons.core.edm.primitivetype.EdmDecimal;
@ -293,7 +294,7 @@ public final class URIUtils {
bytes = IOUtils.toByteArray(input); bytes = IOUtils.toByteArray(input);
IOUtils.closeQuietly(input); IOUtils.closeQuietly(input);
} catch (IOException e) { } 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); entity = new ByteArrayEntity(bytes);

View File

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

View File

@ -97,4 +97,16 @@
</exclusions> </exclusions>
</dependency> </dependency>
</dependencies> </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> </project>

View File

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