Suppress Modernizer violation

This commit is contained in:
Andrew Gaul 2024-05-12 13:56:45 +09:00
parent 8813747e57
commit 4928a1e3bc
2 changed files with 7 additions and 0 deletions

View File

@ -98,6 +98,11 @@
<artifactId>auto-value</artifactId>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>org.gaul</groupId>
<artifactId>modernizer-maven-annotations</artifactId>
<optional>true</optional>
</dependency>
</dependencies>
<profiles>

View File

@ -18,6 +18,7 @@ package org.jclouds.s3.filters;
import com.google.common.io.ByteProcessor;
import com.google.common.io.ByteStreams;
import org.gaul.modernizer_maven_annotations.SuppressModernizer;
import org.jclouds.http.HttpException;
import org.jclouds.io.MutableContentMetadata;
import org.jclouds.io.Payload;
@ -171,6 +172,7 @@ public class ChunkedUploadPayload extends BasePayload<Payload> {
return new SequenceInputStream(new ChunkedInputStreamEnumeration(this.payload.openStream(), chunkedBlockSize));
}
@SuppressModernizer // for Enumeration
private class ChunkedInputStreamEnumeration implements Enumeration<InputStream> {
private final InputStream inputStream;
private boolean lastChunked;