Skip to content

Commit

Permalink
#1054: leave two puzzles to continue refactoring
Browse files Browse the repository at this point in the history
  • Loading branch information
fabriciofx committed Sep 11, 2020
1 parent a450fdf commit 7bae217
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/main/java/org/takes/rs/HeadPrint.java
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,9 @@
* <p>The class is immutable and thread-safe.
*
* @since 2.0
* @todo #1054:30min Develop tests for {@link HeadPrint} and {@link BodyPrint}.
* Although these classes are tested by {@link RsPrint} they need your own
* unit tests.
*/
public final class HeadPrint implements Head, Text {

Expand Down
4 changes: 4 additions & 0 deletions src/main/java/org/takes/rs/RsPrint.java
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,10 @@ public String printHead() throws IOException {
* Print it into output stream.
* @param output Output to print into
* @throws IOException If fails
* @todo #1054:30min Remove the #print(OutputStream) methods.
* After the creation of {@link HeadPrint} and {@link BodyPrint} classes,
* these methods lost sense and need be removed from these classes and
* all tests that uses #print() method.
*/
public void print(final OutputStream output) throws IOException {
this.head.print(output);
Expand Down

0 comments on commit 7bae217

Please sign in to comment.