Skip to content

Commit

Permalink
chore: Various code cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
peacekeeper committed Oct 22, 2023
1 parent 8157a62 commit 312b9e2
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions src/main/java/com/danubetech/libindy/IndyConnection.java
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@

public class IndyConnection {

private static Logger log = LoggerFactory.getLogger(IndyConnection.class);
private static final Logger log = LoggerFactory.getLogger(IndyConnection.class);

private String network;
private String poolConfigName;
Expand Down Expand Up @@ -234,7 +234,7 @@ public synchronized void retrieveTaa() throws IndyConnectionException {
}

public static String getNetwork(String didNetworkPrefix) {
return didNetworkPrefix.equals("") ? "_" : didNetworkPrefix.substring(0, didNetworkPrefix.length()-1);
return didNetworkPrefix.isEmpty() ? "_" : didNetworkPrefix.substring(0, didNetworkPrefix.length()-1);
}

public static String getDidNetworkPrefix(String network) {
Expand Down
2 changes: 1 addition & 1 deletion src/main/java/com/danubetech/libindy/IndyConnector.java
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@

public class IndyConnector {

private static Logger log = LoggerFactory.getLogger(IndyConnector.class);
private static final Logger log = LoggerFactory.getLogger(IndyConnector.class);

private String poolConfigs;
private String poolVersions;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@

public class LibIndyInitializer {

private static Logger log = LoggerFactory.getLogger(LibIndyInitializer.class);
private static final Logger log = LoggerFactory.getLogger(LibIndyInitializer.class);

private String libIndyPath;

Expand Down
2 changes: 1 addition & 1 deletion src/test/java/com/danubetech/IndyConnectionTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
public class IndyConnectionTest {

@Test
public void testIndyConnectionNetwork() throws Exception {
public void testIndyConnectionNetwork() {

assertEquals(IndyConnection.getNetwork(""), "_");
assertEquals(IndyConnection.getNetwork("dummy:"), "dummy");
Expand Down

0 comments on commit 312b9e2

Please sign in to comment.