Skip to content

Commit

Permalink
Fix code smell
Browse files Browse the repository at this point in the history
  • Loading branch information
w3stling committed Dec 5, 2024
1 parent 317b34f commit 079d9a5
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@
import java.util.function.*;
import java.util.stream.*;

@SuppressWarnings("javaarchitecture:S7027")
public class AbstractAutoCloseStream<T, S extends BaseStream<T, S>> implements AutoCloseable {
private final S stream;
private final AtomicBoolean isClosed;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@
* <p>
* The {@link #iterator()} and {@link #spliterator()} methods are not supported by this class.
*/
@SuppressWarnings("javaarchitecture:S7027")
public class AutoCloseStream<T> extends AbstractAutoCloseStream<T, Stream<T>> implements Stream<T> {

AutoCloseStream(Stream<T> stream) {
Expand Down

0 comments on commit 079d9a5

Please sign in to comment.