mirror of https://github.com/apache/jclouds.git
Suppress Modernizer violation
This commit is contained in:
parent
8813747e57
commit
4928a1e3bc
|
@ -98,6 +98,11 @@
|
||||||
<artifactId>auto-value</artifactId>
|
<artifactId>auto-value</artifactId>
|
||||||
<scope>provided</scope>
|
<scope>provided</scope>
|
||||||
</dependency>
|
</dependency>
|
||||||
|
<dependency>
|
||||||
|
<groupId>org.gaul</groupId>
|
||||||
|
<artifactId>modernizer-maven-annotations</artifactId>
|
||||||
|
<optional>true</optional>
|
||||||
|
</dependency>
|
||||||
</dependencies>
|
</dependencies>
|
||||||
|
|
||||||
<profiles>
|
<profiles>
|
||||||
|
|
|
@ -18,6 +18,7 @@ package org.jclouds.s3.filters;
|
||||||
|
|
||||||
import com.google.common.io.ByteProcessor;
|
import com.google.common.io.ByteProcessor;
|
||||||
import com.google.common.io.ByteStreams;
|
import com.google.common.io.ByteStreams;
|
||||||
|
import org.gaul.modernizer_maven_annotations.SuppressModernizer;
|
||||||
import org.jclouds.http.HttpException;
|
import org.jclouds.http.HttpException;
|
||||||
import org.jclouds.io.MutableContentMetadata;
|
import org.jclouds.io.MutableContentMetadata;
|
||||||
import org.jclouds.io.Payload;
|
import org.jclouds.io.Payload;
|
||||||
|
@ -171,6 +172,7 @@ public class ChunkedUploadPayload extends BasePayload<Payload> {
|
||||||
return new SequenceInputStream(new ChunkedInputStreamEnumeration(this.payload.openStream(), chunkedBlockSize));
|
return new SequenceInputStream(new ChunkedInputStreamEnumeration(this.payload.openStream(), chunkedBlockSize));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@SuppressModernizer // for Enumeration
|
||||||
private class ChunkedInputStreamEnumeration implements Enumeration<InputStream> {
|
private class ChunkedInputStreamEnumeration implements Enumeration<InputStream> {
|
||||||
private final InputStream inputStream;
|
private final InputStream inputStream;
|
||||||
private boolean lastChunked;
|
private boolean lastChunked;
|
||||||
|
|
Loading…
Reference in New Issue