Skip to content

Commit ac0a71a

Browse files
committed
Remove unnecessary formatting
1 parent f1f2bd8 commit ac0a71a

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

42 files changed

+212
-245
lines changed

xrpl4j-core/src/main/java/org/xrpl/xrpl4j/model/jackson/modules/TransactionSerializer.java

Lines changed: 0 additions & 77 deletions
This file was deleted.

xrpl4j-core/src/main/java/org/xrpl/xrpl4j/model/transactions/AccountSet.java

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,7 @@ default AccountSet normalizeClearFlag() {
130130
Preconditions.checkState(
131131
clearFlag().get().getValue() == clearFlagRawValue().get().longValue(),
132132
String.format("clearFlag and clearFlagRawValue should be equivalent, but clearFlag's underlying " +
133-
"value was %s and clearFlagRawValue was %s",
133+
"value was %s and clearFlagRawValue was %s",
134134
clearFlag().get().getValue(),
135135
clearFlagRawValue().get().longValue()
136136
)
@@ -223,7 +223,7 @@ default AccountSet normalizeSetFlag() {
223223
Preconditions.checkState(
224224
setFlag().get().getValue() == setFlagRawValue().get().longValue(),
225225
String.format("setFlag and setFlagRawValue should be equivalent, but setFlag's underlying " +
226-
"value was %s and setFlagRawValue was %s",
226+
"value was %s and setFlagRawValue was %s",
227227
setFlag().get().getValue(),
228228
setFlagRawValue().get().longValue()
229229
)
@@ -350,8 +350,8 @@ default void checkTransferRate() {
350350
transferRate()
351351
.ifPresent(rate ->
352352
Preconditions.checkArgument(rate.equals(UnsignedInteger.ZERO) ||
353-
(rate.compareTo(UnsignedInteger.valueOf(1000000000L)) >= 0 &&
354-
rate.compareTo(UnsignedInteger.valueOf(2000000000L)) <= 0),
353+
(rate.compareTo(UnsignedInteger.valueOf(1000000000L)) >= 0 &&
354+
rate.compareTo(UnsignedInteger.valueOf(2000000000L)) <= 0),
355355
"transferRate must be between 1,000,000,000 and 2,000,000,000 or equal to 0."
356356
)
357357
);
@@ -365,8 +365,8 @@ default void checkTickSize() {
365365
tickSize()
366366
.ifPresent(tickSize ->
367367
Preconditions.checkArgument(tickSize.equals(UnsignedInteger.ZERO) ||
368-
(tickSize.compareTo(UnsignedInteger.valueOf(3)) >= 0 &&
369-
tickSize.compareTo(UnsignedInteger.valueOf(15)) <= 0),
368+
(tickSize.compareTo(UnsignedInteger.valueOf(3)) >= 0 &&
369+
tickSize.compareTo(UnsignedInteger.valueOf(15)) <= 0),
370370
"tickSize must be between 3 and 15 inclusive or be equal to 0."
371371
)
372372
);
@@ -491,7 +491,9 @@ enum AccountSetFlag {
491491
* annotation, otherwise Jackson treats the JSON integer value as an ordinal.
492492
*
493493
* @param value The int value of the flag.
494+
*
494495
* @return The {@link AccountSetFlag} for the given integer value.
496+
*
495497
* @see "https://github.com/FasterXML/jackson-databind/issues/1850"
496498
*/
497499
@JsonCreator

xrpl4j-core/src/main/java/org/xrpl/xrpl4j/model/transactions/AmmBid.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -106,4 +106,5 @@ default TransactionFlags flags() {
106106
*/
107107
@JsonProperty("AuthAccounts")
108108
List<AuthAccountWrapper> authAccounts();
109+
109110
}

xrpl4j-core/src/main/java/org/xrpl/xrpl4j/model/transactions/AmmCreate.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,4 +66,5 @@ default TransactionFlags flags() {
6666
*/
6767
@JsonProperty("TradingFee")
6868
TradingFee tradingFee();
69+
6970
}

xrpl4j-core/src/main/java/org/xrpl/xrpl4j/model/transactions/AmmDelete.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,4 +57,5 @@ default TransactionFlags flags() {
5757
*/
5858
@JsonProperty("Asset2")
5959
Issue asset2();
60+
6061
}

xrpl4j-core/src/main/java/org/xrpl/xrpl4j/model/transactions/AmmVote.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -67,4 +67,6 @@ default TransactionFlags flags() {
6767
*/
6868
@JsonProperty("TradingFee")
6969
TradingFee tradingFee();
70+
71+
7072
}

xrpl4j-core/src/main/java/org/xrpl/xrpl4j/model/transactions/AmmWithdraw.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -96,4 +96,5 @@ static ImmutableAmmWithdraw.Builder builder() {
9696
*/
9797
@JsonProperty("LPTokenIn")
9898
Optional<CurrencyAmount> lpTokensIn();
99+
99100
}

xrpl4j-core/src/main/java/org/xrpl/xrpl4j/model/transactions/CheckCancel.java

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -27,9 +27,9 @@
2727
import org.xrpl.xrpl4j.model.flags.TransactionFlags;
2828

2929
/**
30-
* Cancels an unredeemed Check, removing it from the ledger without sending any money. The source or the destination of
31-
* the check can cancel a Check at any time using this transaction type. If the Check has expired, any address can
32-
* cancel it.
30+
* Cancels an unredeemed Check, removing it from the ledger without sending any money. The source or the
31+
* destination of the check can cancel a Check at any time using this transaction type.
32+
* If the Check has expired, any address can cancel it.
3333
*/
3434
@Value.Immutable
3535
@JsonSerialize(as = ImmutableCheckCancel.class)
@@ -46,8 +46,8 @@ static ImmutableCheckCancel.Builder builder() {
4646
}
4747

4848
/**
49-
* Set of {@link TransactionFlags}s for this {@link CheckCancel}, which only allows the {@code tfFullyCanonicalSig}
50-
* flag, which is deprecated.
49+
* Set of {@link TransactionFlags}s for this {@link CheckCancel}, which only allows the
50+
* {@code tfFullyCanonicalSig} flag, which is deprecated.
5151
*
5252
* <p>The value of the flags cannot be set manually, but exists for JSON serialization/deserialization only and for
5353
* proper signature computation in rippled.
@@ -67,4 +67,5 @@ default TransactionFlags flags() {
6767
*/
6868
@JsonProperty("CheckID")
6969
Hash256 checkId();
70+
7071
}

xrpl4j-core/src/main/java/org/xrpl/xrpl4j/model/transactions/CheckCash.java

Lines changed: 16 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -31,13 +31,13 @@
3131

3232
/**
3333
* The {@link CheckCash} transaction attempts to redeem a Check object in the ledger to receive up to the amount
34-
* authorized by the corresponding {@link CheckCreate} transaction. Only the Destination address of a Check can cash it
35-
* with a CheckCash transaction. Cashing a check this way is similar to executing a {@link Payment} initiated by the
36-
* destination.
34+
* authorized by the corresponding {@link CheckCreate} transaction. Only the Destination address of a Check can cash
35+
* it with a CheckCash transaction. Cashing a check this way is similar to executing a {@link Payment} initiated by
36+
* the destination.
3737
*
3838
* <p>Since the funds for a check are not guaranteed, redeeming a Check can fail because the sender does not have a
39-
* high enough balance or because there is not enough liquidity to deliver the funds. If this happens, the Check remains
40-
* in the ledger and the destination can try to cash it again later, or for a different amount.
39+
* high enough balance or because there is not enough liquidity to deliver the funds. If this happens, the Check
40+
* remains in the ledger and the destination can try to cash it again later, or for a different amount.
4141
*/
4242
@Value.Immutable
4343
@JsonSerialize(as = ImmutableCheckCash.class)
@@ -54,8 +54,8 @@ static ImmutableCheckCash.Builder builder() {
5454
}
5555

5656
/**
57-
* Set of {@link TransactionFlags}s for this {@link CheckCash}, which only allows the {@code tfFullyCanonicalSig}
58-
* flag, which is deprecated.
57+
* Set of {@link TransactionFlags}s for this {@link CheckCash}, which only allows the
58+
* {@code tfFullyCanonicalSig} flag, which is deprecated.
5959
*
6060
* <p>The value of the flags cannot be set manually, but exists for JSON serialization/deserialization only and for
6161
* proper signature computation in rippled.
@@ -77,19 +77,19 @@ default TransactionFlags flags() {
7777
Hash256 checkId();
7878

7979
/**
80-
* Redeem the Check for exactly this amount, if possible. The currency must match that of the
81-
* {@link CheckCreate#sendMax()}SendMax of the corresponding {@link CheckCreate} transaction. You must provide either
82-
* this field or {@link CheckCash#deliverMin()}.
80+
* Redeem the Check for exactly this amount, if possible.
81+
* The currency must match that of the {@link CheckCreate#sendMax()}SendMax of the corresponding {@link CheckCreate}
82+
* transaction. You must provide either this field or {@link CheckCash#deliverMin()}.
8383
*
8484
* @return An {@link Optional} of type {@link CurrencyAmount} containing the check amount.
8585
*/
8686
@JsonProperty("Amount")
8787
Optional<CurrencyAmount> amount();
8888

8989
/**
90-
* Redeem the Check for at least this amount and for as much as possible. The currency must match that of the
91-
* {@link CheckCreate#sendMax()}SendMax of the corresponding {@link CheckCreate} transaction. You must provide either
92-
* this field or {@link CheckCash#amount()}.
90+
* Redeem the Check for at least this amount and for as much as possible.
91+
* The currency must match that of the {@link CheckCreate#sendMax()}SendMax of the corresponding {@link CheckCreate}
92+
* transaction. You must provide either this field or {@link CheckCash#amount()}.
9393
*
9494
* @return An {@link Optional} of type {@link CurrencyAmount} containing the minimum delivery amount for this check.
9595
*/
@@ -101,10 +101,8 @@ default TransactionFlags flags() {
101101
*/
102102
@Value.Check
103103
default void validateOnlyOneAmountSet() {
104-
Preconditions.checkArgument(
105-
(amount().isPresent() || deliverMin().isPresent()) &&
106-
!(amount().isPresent() && deliverMin().isPresent()),
107-
"The CheckCash transaction must include either amount or deliverMin, but not both."
108-
);
104+
Preconditions.checkArgument((amount().isPresent() || deliverMin().isPresent()) &&
105+
!(amount().isPresent() && deliverMin().isPresent()),
106+
"The CheckCash transaction must include either amount or deliverMin, but not both.");
109107
}
110108
}

xrpl4j-core/src/main/java/org/xrpl/xrpl4j/model/transactions/CheckCreate.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -104,4 +104,5 @@ default TransactionFlags flags() {
104104
*/
105105
@JsonProperty("InvoiceID")
106106
Optional<Hash256> invoiceId();
107+
107108
}

0 commit comments

Comments
 (0)