Skip to content

Commit

Permalink
chore: fix string method
Browse files Browse the repository at this point in the history
Signed-off-by: Ivan Ivanov <[email protected]>
  • Loading branch information
0xivanov committed Sep 25, 2024
1 parent 7a1da5b commit a6f5006
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
4 changes: 2 additions & 2 deletions sdk/src/main/java/com/hedera/hashgraph/sdk/Endpoint.java
Original file line number Diff line number Diff line change
Expand Up @@ -147,8 +147,8 @@ public String toString() {
if (this.domainName != null && !this.domainName.isEmpty()) {
return domainName + ":" + port;
} else {
return ((int) address[0] & 0x000000FF) + "." + ((int) address[1] & 0x000000FF) +
((int) address[2] & 0x000000FF) + "." + ((int) address[3] & 0x000000FF) +
return ((int) address[0] & 0x000000FF) + "." + ((int) address[1] & 0x000000FF) + "." +
((int) address[2] & 0x000000FF) + "." + ((int) address[3] & 0x000000FF) +
":" + port;
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -114,6 +114,7 @@ void canConnectToMainnetWithTLS() throws Exception {
succeededAtLeastOnce = true;
} catch (Throwable error) {
System.out.println("failed for " + entry);
System.out.println(error);
}
}

Expand Down

0 comments on commit a6f5006

Please sign in to comment.