Skip to content

Commit 45039a9

Browse files
authored
Release v3 24.13 (#92)
* Update version to 24.13.0 * Change action branches from `main` to `v3` * Update maven packages * Fix tests
1 parent c75b702 commit 45039a9

File tree

7 files changed

+19
-16
lines changed

7 files changed

+19
-16
lines changed

.github/workflows/check-badges.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,9 @@ name: Check badges in README.md
22

33
on:
44
push:
5-
branches: [ main ]
5+
branches: [ v3 ]
66
pull_request:
7-
branches: [ main ]
7+
branches: [ v3 ]
88

99
jobs:
1010
build-and-test:

.github/workflows/check-style.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,9 @@ name: Java check style
22

33
on:
44
push:
5-
branches: [ main ]
5+
branches: [ v3 ]
66
pull_request:
7-
branches: [ main ]
7+
branches: [ v3 ]
88

99
jobs:
1010
lint:

.github/workflows/maven.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,9 @@ name: Java CI with Maven
55

66
on:
77
push:
8-
branches: [ main ]
8+
branches: [ v3 ]
99
pull_request:
10-
branches: [ main ]
10+
branches: [ v3 ]
1111

1212
jobs:
1313
test:

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
[![Maven metadata URL](https://img.shields.io/maven-metadata/v?metadataUrl=https%3A%2F%2Freleases.aspose.cloud%2Fjava%2Frepo%2Fcom%2Faspose%2Faspose-barcode-cloud%2Fmaven-metadata.xml)](https://releases.aspose.cloud/java/repo/com/aspose/aspose-barcode-cloud/)
66

77
- API version: 3.0
8-
- SDK version: 24.12.0
8+
- SDK version: 24.13.0
99

1010
## Demo applications
1111

@@ -68,7 +68,7 @@ Add this dependency to your project's POM:
6868
<dependency>
6969
<groupId>com.aspose</groupId>
7070
<artifactId>aspose-barcode-cloud</artifactId>
71-
<version>24.12.0</version>
71+
<version>24.13.0</version>
7272
<scope>compile</scope>
7373
</dependency>
7474
```
@@ -83,7 +83,7 @@ mvn clean package
8383

8484
Then manually install the following JARs:
8585

86-
- `target/aspose-barcode-cloud-24.12.0.jar`
86+
- `target/aspose-barcode-cloud-24.13.0.jar`
8787
- `target/lib/*.jar`
8888

8989
## Getting Started

pom.xml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
<artifactId>aspose-barcode-cloud</artifactId>
77
<packaging>jar</packaging>
88
<name>aspose-barcode-cloud</name>
9-
<version>24.12.0</version>
9+
<version>24.13.0</version>
1010
<url>https://www.aspose.cloud</url>
1111
<description>Aspose.BarCode Cloud SDK for Java</description>
1212
<scm>
@@ -197,10 +197,10 @@
197197
<maven.compiler.source>${java.version}</maven.compiler.source>
198198
<maven.compiler.target>${java.version}</maven.compiler.target>
199199
<gson-fire-version>1.9.0</gson-fire-version>
200-
<gson-version>2.11.0</gson-version>
201-
<swagger-core-version>1.6.14</swagger-core-version>
200+
<gson-version>2.13.1</gson-version>
201+
<swagger-core-version>1.6.16</swagger-core-version>
202202
<okhttp-version>4.12.0</okhttp-version>
203-
<threetenbp-version>1.7.0</threetenbp-version>
203+
<threetenbp-version>1.7.1</threetenbp-version>
204204
<maven-plugin-version>1.0.0</maven-plugin-version>
205205
<junit-version>4.13.2</junit-version>
206206
<versions-maven-plugin.version>2.18.0</versions-maven-plugin.version>

src/main/java/com/aspose/barcode/cloud/ApiClient.java

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@
4141
/** ApiClient. */
4242
public class ApiClient {
4343
public final String apiVersion = "v3.0";
44-
public final String clientVersion = "24.12.0";
44+
public final String clientVersion = "24.13.0";
4545

4646
private String baseUrl = "https://api.aspose.cloud";
4747
private String tokenUrl = baseUrl + "/connect/token";
@@ -680,7 +680,10 @@ public <T> T handleResponse(Response response, Type returnType) throws ApiExcept
680680
response.message(), e, response.code(), response.headers().toMultimap());
681681
}
682682

683-
throw new ApiException(response.message(), response.code(), errorResponse);
683+
throw new ApiException(
684+
response.message().isEmpty() ? String.valueOf(response.code()) : response.message(),
685+
response.code(),
686+
errorResponse);
684687
}
685688

686689
/**

src/test/java/com/aspose/barcode/cloud/test/ExceptionTest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ public void ExceptionMessageParsed() {
3131
} catch (ApiException e) {
3232
thrown = true;
3333
assertEquals(400, e.getHttpCode());
34-
assertEquals("com.aspose.barcode.cloud.ApiException: Bad Request", e.toString());
34+
assertEquals("com.aspose.barcode.cloud.ApiException: 400", e.toString());
3535
assertEquals(
3636
"errorInvalidInputData: Barcode.Text is not provided.\n"
3737
+ "Operation Failed. The input data is not valid.",

0 commit comments

Comments
 (0)