Skip to content

Commit

Permalink
Clean up visibility for implementation classes in teh client
Browse files Browse the repository at this point in the history
  • Loading branch information
ml-james committed Nov 23, 2024
1 parent 0cb11c8 commit 7c7ec66
Show file tree
Hide file tree
Showing 23 changed files with 30 additions and 536 deletions.
7 changes: 3 additions & 4 deletions client/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -48,9 +48,9 @@ sourceSets {
dependencies {

// main dependencies
api 'com.fasterxml.jackson.core:jackson-databind:2.17.2'
api 'com.fasterxml.jackson.core:jackson-annotations:2.17.2'
api 'com.fasterxml.jackson.core:jackson-core:2.17.2'
implementation 'com.fasterxml.jackson.core:jackson-databind:2.17.2'
implementation 'com.fasterxml.jackson.core:jackson-annotations:2.17.2'
implementation 'com.fasterxml.jackson.core:jackson-core:2.17.2'

// integration test dependencies
integrationTestImplementation project(path: ':shared', configuration: 'sharedTestSupport')
Expand Down Expand Up @@ -108,7 +108,6 @@ tasks.processTestResources {
check.dependsOn unitTest
check.dependsOn integrationTest
check.dependsOn checkstyleMain
check.dependsOn checkstyleTest
check.dependsOn checkstyleIntegrationTest

javadoc {
Expand Down

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ public interface SimulateTransactionResponse

AccountInfoData getAccounts();

List<Instruction> getInnerInstructions();
List<InnerInstruction> getInnerInstructions();

Blockhash getReplacementBlockhash();

Expand Down
24 changes: 0 additions & 24 deletions client/src/main/java/com/lmax/solana4j/client/api/Transaction.java

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@


@JsonDeserialize(using = AccountInfoDataDTO.AccountInfoDataDeserializer.class)
class AccountInfoDataDTO implements AccountInfoData
final class AccountInfoDataDTO implements AccountInfoData
{
private final List<String> accountInfoEncoded;
private final AccountInfoParsedData accountInfoParsed;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,12 +14,12 @@
import java.util.List;

@JsonDeserialize(using = AccountKeysDTO.AccountKeyDeserializer.class)
public class AccountKeysDTO implements AccountKeys
final class AccountKeysDTO implements AccountKeys
{
private final List<String> accountKeysEncoded;
private final List<AccountKeyParsed> accountKeysParsed;

public AccountKeysDTO(final List<String> accountKeysEncoded, final List<AccountKeyParsed> accountKeysParsed)
AccountKeysDTO(final List<String> accountKeysEncoded, final List<AccountKeyParsed> accountKeysParsed)
{
this.accountKeysEncoded = accountKeysEncoded;
this.accountKeysParsed = accountKeysParsed;
Expand Down Expand Up @@ -93,7 +93,7 @@ public String toString()
}
}

public static class AccountKeyDeserializer extends JsonDeserializer<AccountKeysDTO>
static class AccountKeyDeserializer extends JsonDeserializer<AccountKeysDTO>
{
@Override
public AccountKeysDTO deserialize(final JsonParser parser, final DeserializationContext context) throws IOException
Expand Down

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
import com.lmax.solana4j.client.api.Context;
import com.lmax.solana4j.client.api.SolanaRpcResponse;

public final class BalanceDTO implements SolanaRpcResponse<Long>
final class BalanceDTO implements SolanaRpcResponse<Long>
{
private final ContextDTO context;
private final Long value;
Expand Down
Loading

0 comments on commit 7c7ec66

Please sign in to comment.