Skip to content

Commit

Permalink
Merge pull request #390 from lijamie98/develop
Browse files Browse the repository at this point in the history
Make constructures public to allow creating objects without gson.
  • Loading branch information
lijamie98 authored Dec 20, 2021
2 parents 4e8252d + ca2e709 commit aad2ca2
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ As this project is pre 1.0, breaking changes may happen for minor version bumps.
### Changes
* Fix missing Liquidity Pool ID in AccountResponse Balance ([#379](https://github.com/stellar/java-stellar-sdk/pull/379)).
* Fix null pointer when calling ChangeTrustOperationResponse.getAsset() for LiquidityPool trust line ([#378](https://github.com/stellar/java-stellar-sdk/pull/378)).

* Changed the access modifiers of the inner static classes of `AccountResponse` to public.
### Breaking changes
* Changed offer ids to be represented in requests and response models as long data type. ([#386](https://github.com/stellar/java-stellar-sdk/pull/386)).
* Changed all *MuxedId* attributes to be of data type `java.math.BigInteger` in request and response models ([#388](https://github.com/stellar/java-stellar-sdk/pull/388)).
Expand Down
10 changes: 5 additions & 5 deletions src/main/java/org/stellar/sdk/responses/AccountResponse.java
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,7 @@ public static class Thresholds {
@SerializedName("high_threshold")
private final int highThreshold;

Thresholds(int lowThreshold, int medThreshold, int highThreshold) {
public Thresholds(int lowThreshold, int medThreshold, int highThreshold) {
this.lowThreshold = lowThreshold;
this.medThreshold = medThreshold;
this.highThreshold = highThreshold;
Expand Down Expand Up @@ -175,7 +175,7 @@ public static class Flags {
@SerializedName("auth_immutable")
private final boolean authImmutable;

Flags(boolean authRequired, boolean authRevocable, boolean authImmutable) {
public Flags(boolean authRequired, boolean authRevocable, boolean authImmutable) {
this.authRequired = authRequired;
this.authRevocable = authRevocable;
this.authImmutable = authImmutable;
Expand Down Expand Up @@ -223,7 +223,7 @@ public static class Balance {
@SerializedName("sponsor")
private String sponsor;

Balance(String assetType, String assetCode, String assetIssuer, LiquidityPoolID liquidityPoolID, String balance, String limit, String buyingLiabilities, String sellingLiabilities, Boolean isAuthorized, Boolean isAuthorizedToMaintainLiabilities, Integer lastModifiedLedger, String sponsor) {
public Balance(String assetType, String assetCode, String assetIssuer, LiquidityPoolID liquidityPoolID, String balance, String limit, String buyingLiabilities, String sellingLiabilities, Boolean isAuthorized, Boolean isAuthorizedToMaintainLiabilities, Integer lastModifiedLedger, String sponsor) {
this.assetType = checkNotNull(assetType, "assertType cannot be null");
this.balance = checkNotNull(balance, "balance cannot be null");
this.limit = limit;
Expand Down Expand Up @@ -312,7 +312,7 @@ public static class Signer {
@SerializedName("sponsor")
private String sponsor;

Signer(String key, String type, int weight, String sponsor) {
public Signer(String key, String type, int weight, String sponsor) {
this.key = checkNotNull(key, "key cannot be null");
this.type = checkNotNull(type, "type cannot be null");
this.weight = checkNotNull(weight, "weight cannot be null");
Expand Down Expand Up @@ -393,7 +393,7 @@ public static class Links {
@SerializedName("transactions")
private final Link transactions;

Links(Link effects, Link offers, Link operations, Link self, Link transactions) {
public Links(Link effects, Link offers, Link operations, Link self, Link transactions) {
this.effects = effects;
this.offers = offers;
this.operations = operations;
Expand Down

0 comments on commit aad2ca2

Please sign in to comment.