Skip to content

Commit a176b6d

Browse files
fix!: change Usage.Detail count and limit properties from int to long type
1 parent 205a65d commit a176b6d

File tree

2 files changed

+6
-5
lines changed

2 files changed

+6
-5
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
1212
### Removed
1313
### Fixed
1414
* Fixed examples in readme.
15+
* `Usage.Detail` `count` and `detail` properties type changed from `int` to `long`.
1516
### Security
1617

1718

deepl-java/src/main/java/com/deepl/api/Usage.java

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -35,21 +35,21 @@ public class Usage {
3535

3636
/** Stores the amount used and maximum amount for one usage type. */
3737
public static class Detail {
38-
private final int count;
39-
private final int limit;
38+
private final long count;
39+
private final long limit;
4040

41-
public Detail(int count, int limit) {
41+
public Detail(long count, long limit) {
4242
this.count = count;
4343
this.limit = limit;
4444
}
4545

4646
/** @return The currently used number of items for this usage type. */
47-
public int getCount() {
47+
public long getCount() {
4848
return count;
4949
}
5050

5151
/** @return The maximum permitted number of items for this usage type. */
52-
public int getLimit() {
52+
public long getLimit() {
5353
return limit;
5454
}
5555

0 commit comments

Comments
 (0)