Skip to content

Commit

Permalink
Use System.lineSeparator for line endings
Browse files Browse the repository at this point in the history
  • Loading branch information
RogerRiggs committed Oct 7, 2020
1 parent 7b6ae59 commit 6f1f564
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions test/lib/jdk/test/lib/hexdump/ASN1Formatter.java
Original file line number Diff line number Diff line change
Expand Up @@ -167,7 +167,7 @@ private int annotate(DataInputStream in, Appendable out, int available, String p
if (nbytes > 4) {
out.append("***** Tag: " + tagName(tag) +
", Range of length error: " + len + " bytes");
out.append('\n'); // End with NL
out.append(System.lineSeparator());
return available; // return the unread length
}
len = 0;
Expand All @@ -187,7 +187,7 @@ private int annotate(DataInputStream in, Appendable out, int available, String p
switch (tag) {
case TAG_EndOfContent: // End-of-contents octets; len == 0
out.append("END-OF-CONTENT");
out.append('\n'); // End with NL
out.append(System.lineSeparator());
// end of indefinite-length constructed, return zero remaining
return 0;
case TAG_Integer:
Expand Down Expand Up @@ -321,7 +321,7 @@ private int annotate(DataInputStream in, Appendable out, int available, String p
}
}
}
out.append('\n'); // End with NL
out.append(System.lineSeparator());
}
return available;
}
Expand Down

0 comments on commit 6f1f564

Please sign in to comment.