Skip to content

Commit

Permalink
Checkstyle formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
sappenin committed Aug 21, 2024
1 parent 8db32ed commit 5259de5
Showing 1 changed file with 7 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -264,13 +264,13 @@ public static XrpCurrencyAmount ofXrp(final BigDecimal amount) {

/**
* Indicates whether this amount is positive or negative.
* <p/>
* Note that this is suitable to declare as the default value for a few reasons. First, deserialization will parse
* the payload properly, setting this value correctly (despite this default settings). Second, using a default value
* here will not break legacy code that is using a build to construct an {@link XrpCurrencyAmount} correctly (i.e.,
* we assume that no developer is constructing a negative XRP amount because the {@link UnsignedLong} preconditions
* would not allow them to do such a thing without throwing. Finally, due to the way we've constructed the static
* builders of this class, legacy code should continue to work normally.
*
* <p>Note that this is suitable to declare as the default value for a few reasons. First, deserialization will
* parse the payload properly, setting this value correctly (despite this default settings). Second, using a default
* value here will not break legacy code that is using a build to construct an {@link XrpCurrencyAmount} correctly
* (i.e., we assume that no developer is constructing a negative XRP amount because the {@link UnsignedLong}
* preconditions would not allow them to do such a thing without throwing. Finally, due to the way we've constructed
* the static builders of this class, legacy code should continue to work normally.
*
* @return {@code true} if this amount is negative; {@code false} otherwise (i.e., if the value is 0 or positive).
*/
Expand Down

0 comments on commit 5259de5

Please sign in to comment.