Skip to content

Commit 9100dda

Browse files
authored
Merge pull request #421 from swlodarski-sumoheavy/10.3.x-java-25-support
[#420] Add Java 25 support
2 parents e45eda3 + 3c02898 commit 9100dda

6 files changed

Lines changed: 14 additions & 9 deletions

File tree

.github/workflows/build.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,11 +8,11 @@ jobs:
88

99
strategy:
1010
matrix:
11-
java-version: [8, 11, 17, 21, 23]
11+
java-version: [8, 11, 17, 21, 23, 25]
1212

1313
steps:
14-
- uses: actions/checkout@v4
15-
- uses: actions/setup-java@v4
14+
- uses: actions/checkout@v6
15+
- uses: actions/setup-java@v5
1616
with:
1717
java-version: ${{ matrix.java-version }}
1818
distribution: 'corretto'

.github/workflows/documentation.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,8 @@ jobs:
1414
runs-on: ubuntu-latest
1515

1616
steps:
17-
- uses: actions/checkout@v4
18-
- uses: actions/setup-java@v4
17+
- uses: actions/checkout@v6
18+
- uses: actions/setup-java@v5
1919
with:
2020
java-version: 8
2121
distribution: 'corretto'
@@ -31,4 +31,4 @@ jobs:
3131
git config user.email ""
3232
git add docs/
3333
git commit -m "Update javadoc" || echo "No changes to commit"
34-
git push
34+
git push

pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66

77
<groupId>com.bitpay</groupId>
88
<artifactId>bitpay_sdk</artifactId>
9-
<version>10.2.5</version>
9+
<version>10.3.0</version>
1010
<packaging>jar</packaging>
1111

1212
<name>BitPay</name>

src/main/java/com/bitpay/sdk/Config.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ public class Config {
3434
/**
3535
* BitPay Plugin Info Version.
3636
*/
37-
public static final String BITPAY_PLUGIN_INFO = "BitPay_Java_Client_v10.2.5";
37+
public static final String BITPAY_PLUGIN_INFO = "BitPay_Java_Client_v10.3.0";
3838
/**
3939
* BitPay Api Frame.
4040
*/

src/main/java/com/bitpay/sdk/util/KeyUtils.java

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,11 @@ public KeyUtils() {
4848
public static boolean privateKeyExists(String privateKeyFile) {
4949
PrivateKeyFile = privateKeyFile;
5050

51+
// if the private key file is null or empty, return false
52+
if (privateKeyFile == null || privateKeyFile.isEmpty()) {
53+
return false;
54+
}
55+
5156
return new File(privateKeyFile).exists();
5257
}
5358

src/test/java/com/bitpay/sdk/ConfigTest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ public void it_should_returns_bitpay_api_version() {
5858

5959
@Test
6060
public void it_should_returns_bitpay_plugin_info() {
61-
Assertions.assertTrue(Config.BITPAY_PLUGIN_INFO.contains("BitPay_Java_Client_v10.2.5"));
61+
Assertions.assertTrue(Config.BITPAY_PLUGIN_INFO.contains("BitPay_Java_Client_v10.3.0"));
6262
}
6363

6464
@Test

0 commit comments

Comments
 (0)