Skip to content

Commit

Permalink
add comment
Browse files Browse the repository at this point in the history
  • Loading branch information
nkramer44 committed Aug 11, 2023
1 parent 75cf88f commit 64bd3be
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -141,6 +141,8 @@ default AccountSet normalizeClearFlag() {
// This can happen if:
// 1. A developer sets clearFlagRawValue manually in the builder
// 2. JSON has ClearFlag and jackson sets clearFlagRawValue.
// This value will never be negative due to XRPL representing this kind of flag as an unsigned number,
// so no lower bound check is required.
if (clearFlagRawValue().get().longValue() <= 15) {
// Set clearFlag to clearFlagRawValue if clearFlagRawValue matches a valid AccountSetFlag variant.
return AccountSet.builder().from(this)
Expand Down Expand Up @@ -232,7 +234,8 @@ default AccountSet normalizeSetFlag() {
// This can happen if:
// 1. A developer sets setFlagRawValue manually in the builder
// 2. JSON has ClearFlag and jackson sets setFlagRawValue.

// This value will never be negative due to XRPL representing this kind of flag as an unsigned number,
// so no lower bound check is required.
if (setFlagRawValue().get().longValue() <= 15) {
// Set setFlag to setFlagRawValue if setFlagRawValue matches a valid AccountSetFlag variant.
return AccountSet.builder().from(this)
Expand Down

0 comments on commit 64bd3be

Please sign in to comment.