Skip to content

Commit

Permalink
Remove the use of com.google.common.collect.ImmutableList.
Browse files Browse the repository at this point in the history
  • Loading branch information
overcat committed Sep 12, 2023
1 parent 89ac36d commit 7592437
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 6 deletions.
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
package org.stellar.sdk.responses;

import com.google.common.collect.ImmutableList;
import com.google.gson.Gson;
import com.google.gson.GsonBuilder;
import com.google.gson.JsonDeserializationContext;
Expand All @@ -26,7 +25,6 @@ public EffectResponse deserialize(
.registerTypeAdapter(LiquidityPoolID.class, new LiquidityPoolIDDeserializer())
.registerTypeAdapter(LiquidityPoolType.class, new LiquidityPoolTypeDeserializer())
.registerTypeAdapter(Predicate.class, new PredicateDeserializer())
.registerTypeAdapter(ImmutableList.class, new ImmutableListDeserializer())
.create();

int type = json.getAsJsonObject().get("type_i").getAsInt();
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package org.stellar.sdk.responses.effects;

import com.google.common.collect.ImmutableList;
import com.google.gson.annotations.SerializedName;
import java.util.List;

/**
* Represents liquidity_pool_revoked effect response.
Expand All @@ -16,14 +16,14 @@ public class LiquidityPoolRevokedEffectResponse extends EffectResponse {
protected final LiquidityPool liquidityPool;

@SerializedName("reserves_revoked")
protected final ImmutableList<LiquidityPoolClaimableAssetAmount> reservesRevoked;
protected final List<LiquidityPoolClaimableAssetAmount> reservesRevoked;

@SerializedName("shares_revoked")
protected final String sharesRevoked;

public LiquidityPoolRevokedEffectResponse(
LiquidityPool liquidityPool,
ImmutableList<LiquidityPoolClaimableAssetAmount> reservesRevoked,
List<LiquidityPoolClaimableAssetAmount> reservesRevoked,
String sharesRevoked) {
this.liquidityPool = liquidityPool;
this.reservesRevoked = reservesRevoked;
Expand All @@ -34,7 +34,7 @@ public LiquidityPool getLiquidityPool() {
return liquidityPool;
}

public ImmutableList<LiquidityPoolClaimableAssetAmount> getReservesRevoked() {
public List<LiquidityPoolClaimableAssetAmount> getReservesRevoked() {
return reservesRevoked;
}

Expand Down

0 comments on commit 7592437

Please sign in to comment.