Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -1756,7 +1756,7 @@ private static void reverseArray(@Nonnull String... array) {
/**
* <p>Turn "Now is the time for all good men" into "Now is the time for..."</p>
* <p>Specifically:</p>
* <p>If str is less than max characters long, return it.
* <p>If str is no greater than max characters long, return it.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

how about "less than or equal to"?

* Else abbreviate it to (substring(str, 0, max-3) + "...").
* If maxWidth is less than 3, throw an IllegalArgumentException.
* In no case will it return a string of length greater than maxWidth.</p>
Expand Down
Loading