lightsail-network / java-stellar-sdk

The Java Stellar SDK library provides APIs to build transactions and connect to Horizon and Soroban-RPC Server.
https://javadoc.io/doc/network.lightsail/stellar-sdk
Apache License 2.0
175 stars 160 forks source link

refactor: format the user's input. #628

Closed overcat closed 3 months ago

codecov[bot] commented 3 months ago

Codecov Report

Attention: Patch coverage is 74.35897% with 20 lines in your changes missing coverage. Please review.

Project coverage is 81.00%. Comparing base (225cd47) to head (427bae6).

Files Patch % Lines
...sdk/operations/LiquidityPoolWithdrawOperation.java 66.66% 0 Missing and 3 partials :warning:
.../sdk/operations/LiquidityPoolDepositOperation.java 66.66% 0 Missing and 2 partials :warning:
.../operations/PathPaymentStrictReceiveOperation.java 71.42% 0 Missing and 2 partials :warning:
...sdk/operations/PathPaymentStrictSendOperation.java 71.42% 0 Missing and 2 partials :warning:
...g/stellar/sdk/operations/ChangeTrustOperation.java 75.00% 0 Missing and 1 partial :warning:
...sdk/operations/ClaimClaimableBalanceOperation.java 75.00% 0 Missing and 1 partial :warning:
.../operations/ClawbackClaimableBalanceOperation.java 75.00% 0 Missing and 1 partial :warning:
.../org/stellar/sdk/operations/ClawbackOperation.java 75.00% 0 Missing and 1 partial :warning:
...stellar/sdk/operations/CreateAccountOperation.java 75.00% 0 Missing and 1 partial :warning:
...dk/operations/CreateClaimableBalanceOperation.java 75.00% 0 Missing and 1 partial :warning:
... and 5 more
Additional details and impacted files ```diff @@ Coverage Diff @@ ## master #628 +/- ## ============================================ - Coverage 81.12% 81.00% -0.13% - Complexity 1167 1169 +2 ============================================ Files 201 201 Lines 4340 4417 +77 Branches 341 362 +21 ============================================ + Hits 3521 3578 +57 Misses 613 613 - Partials 206 226 +20 ``` | [Files](https://app.codecov.io/gh/lightsail-network/java-stellar-sdk/pull/628?dropdown=coverage&src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=lightsail-network) | Coverage Δ | | |---|---|---| | [...ain/java/org/stellar/sdk/operations/Operation.java](https://app.codecov.io/gh/lightsail-network/java-stellar-sdk/pull/628?src=pr&el=tree&filepath=src%2Fmain%2Fjava%2Forg%2Fstellar%2Fsdk%2Foperations%2FOperation.java&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=lightsail-network#diff-c3JjL21haW4vamF2YS9vcmcvc3RlbGxhci9zZGsvb3BlcmF0aW9ucy9PcGVyYXRpb24uamF2YQ==) | `89.00% <100.00%> (+0.45%)` | :arrow_up: | | [...lar/sdk/operations/SetTrustlineFlagsOperation.java](https://app.codecov.io/gh/lightsail-network/java-stellar-sdk/pull/628?src=pr&el=tree&filepath=src%2Fmain%2Fjava%2Forg%2Fstellar%2Fsdk%2Foperations%2FSetTrustlineFlagsOperation.java&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=lightsail-network#diff-c3JjL21haW4vamF2YS9vcmcvc3RlbGxhci9zZGsvb3BlcmF0aW9ucy9TZXRUcnVzdGxpbmVGbGFnc09wZXJhdGlvbi5qYXZh) | `100.00% <ø> (ø)` | | | [...g/stellar/sdk/operations/ChangeTrustOperation.java](https://app.codecov.io/gh/lightsail-network/java-stellar-sdk/pull/628?src=pr&el=tree&filepath=src%2Fmain%2Fjava%2Forg%2Fstellar%2Fsdk%2Foperations%2FChangeTrustOperation.java&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=lightsail-network#diff-c3JjL21haW4vamF2YS9vcmcvc3RlbGxhci9zZGsvb3BlcmF0aW9ucy9DaGFuZ2VUcnVzdE9wZXJhdGlvbi5qYXZh) | `93.75% <75.00%> (-6.25%)` | :arrow_down: | | [...sdk/operations/ClaimClaimableBalanceOperation.java](https://app.codecov.io/gh/lightsail-network/java-stellar-sdk/pull/628?src=pr&el=tree&filepath=src%2Fmain%2Fjava%2Forg%2Fstellar%2Fsdk%2Foperations%2FClaimClaimableBalanceOperation.java&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=lightsail-network#diff-c3JjL21haW4vamF2YS9vcmcvc3RlbGxhci9zZGsvb3BlcmF0aW9ucy9DbGFpbUNsYWltYWJsZUJhbGFuY2VPcGVyYXRpb24uamF2YQ==) | `84.21% <75.00%> (-2.46%)` | :arrow_down: | | [.../operations/ClawbackClaimableBalanceOperation.java](https://app.codecov.io/gh/lightsail-network/java-stellar-sdk/pull/628?src=pr&el=tree&filepath=src%2Fmain%2Fjava%2Forg%2Fstellar%2Fsdk%2Foperations%2FClawbackClaimableBalanceOperation.java&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=lightsail-network#diff-c3JjL21haW4vamF2YS9vcmcvc3RlbGxhci9zZGsvb3BlcmF0aW9ucy9DbGF3YmFja0NsYWltYWJsZUJhbGFuY2VPcGVyYXRpb24uamF2YQ==) | `73.68% <75.00%> (+0.35%)` | :arrow_up: | | [.../org/stellar/sdk/operations/ClawbackOperation.java](https://app.codecov.io/gh/lightsail-network/java-stellar-sdk/pull/628?src=pr&el=tree&filepath=src%2Fmain%2Fjava%2Forg%2Fstellar%2Fsdk%2Foperations%2FClawbackOperation.java&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=lightsail-network#diff-c3JjL21haW4vamF2YS9vcmcvc3RlbGxhci9zZGsvb3BlcmF0aW9ucy9DbGF3YmFja09wZXJhdGlvbi5qYXZh) | `95.45% <75.00%> (-4.55%)` | :arrow_down: | | [...stellar/sdk/operations/CreateAccountOperation.java](https://app.codecov.io/gh/lightsail-network/java-stellar-sdk/pull/628?src=pr&el=tree&filepath=src%2Fmain%2Fjava%2Forg%2Fstellar%2Fsdk%2Foperations%2FCreateAccountOperation.java&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=lightsail-network#diff-c3JjL21haW4vamF2YS9vcmcvc3RlbGxhci9zZGsvb3BlcmF0aW9ucy9DcmVhdGVBY2NvdW50T3BlcmF0aW9uLmphdmE=) | `93.75% <75.00%> (-6.25%)` | :arrow_down: | | [...dk/operations/CreateClaimableBalanceOperation.java](https://app.codecov.io/gh/lightsail-network/java-stellar-sdk/pull/628?src=pr&el=tree&filepath=src%2Fmain%2Fjava%2Forg%2Fstellar%2Fsdk%2Foperations%2FCreateClaimableBalanceOperation.java&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=lightsail-network#diff-c3JjL21haW4vamF2YS9vcmcvc3RlbGxhci9zZGsvb3BlcmF0aW9ucy9DcmVhdGVDbGFpbWFibGVCYWxhbmNlT3BlcmF0aW9uLmphdmE=) | `91.42% <75.00%> (-2.12%)` | :arrow_down: | | [...dk/operations/CreatePassiveSellOfferOperation.java](https://app.codecov.io/gh/lightsail-network/java-stellar-sdk/pull/628?src=pr&el=tree&filepath=src%2Fmain%2Fjava%2Forg%2Fstellar%2Fsdk%2Foperations%2FCreatePassiveSellOfferOperation.java&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=lightsail-network#diff-c3JjL21haW4vamF2YS9vcmcvc3RlbGxhci9zZGsvb3BlcmF0aW9ucy9DcmVhdGVQYXNzaXZlU2VsbE9mZmVyT3BlcmF0aW9uLmphdmE=) | `95.00% <75.00%> (-5.00%)` | :arrow_down: | | [...tellar/sdk/operations/ManageBuyOfferOperation.java](https://app.codecov.io/gh/lightsail-network/java-stellar-sdk/pull/628?src=pr&el=tree&filepath=src%2Fmain%2Fjava%2Forg%2Fstellar%2Fsdk%2Foperations%2FManageBuyOfferOperation.java&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=lightsail-network#diff-c3JjL21haW4vamF2YS9vcmcvc3RlbGxhci9zZGsvb3BlcmF0aW9ucy9NYW5hZ2VCdXlPZmZlck9wZXJhdGlvbi5qYXZh) | `95.83% <75.00%> (-4.17%)` | :arrow_down: | | ... and [7 more](https://app.codecov.io/gh/lightsail-network/java-stellar-sdk/pull/628?src=pr&el=tree-more&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=lightsail-network) | |