Skip to content

Commit

Permalink
#146: ten times
Browse files Browse the repository at this point in the history
  • Loading branch information
yegor256 committed Jun 15, 2017
1 parent 3bf1975 commit c952ae6
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 6 deletions.
5 changes: 1 addition & 4 deletions src/main/java/org/cactoos/io/StickyInput.java
Original file line number Diff line number Diff line change
Expand Up @@ -57,10 +57,7 @@ public StickyInput(final Input input) {
() -> {
final ByteArrayOutputStream baos = new ByteArrayOutputStream();
new LengthOfInput(
new TeeInput(
input,
new OutputStreamAsOutput(baos)
)
new TeeInput(input, new OutputStreamAsOutput(baos))
).asValue();
return baos.toByteArray();
}
Expand Down
4 changes: 2 additions & 2 deletions src/test/java/org/cactoos/io/StickyInputTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -50,9 +50,9 @@ public void readsFileContent() {
new RepeatedFunc<>(
input -> new InputAsBytes(
new TeeInput(input, new DeadOutput())
// @checkstyle MagicNumber (1 line)
// @checkstyle MagicNumber (2 lines)
).asBytes().length == 73471,
2
10
)
)
);
Expand Down

0 comments on commit c952ae6

Please sign in to comment.