Skip to content

Commit

Permalink
Suppress Modernizer violation
Browse files Browse the repository at this point in the history
  • Loading branch information
gaul committed May 12, 2024
1 parent 8813747 commit 4928a1e
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
5 changes: 5 additions & 0 deletions apis/s3/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -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>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@

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;
Expand Down Expand Up @@ -171,6 +172,7 @@ public InputStream openStream() throws IOException {
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;
Expand Down

0 comments on commit 4928a1e

Please sign in to comment.