Skip to content

Commit bb7f0dd

Browse files
committed
chore: replace usages of boxed primitives where possible
1 parent 5b0e6d6 commit bb7f0dd

2 files changed

Lines changed: 7 additions & 7 deletions

File tree

src/main/java/io/weaviate/client6/v1/api/collections/aggregate/GroupedBy.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,12 +13,12 @@ public String text() {
1313
}
1414

1515
public boolean isInteger() {
16-
return value instanceof String;
16+
return value instanceof Long;
1717
}
1818

19-
public Integer integer() {
20-
checkPropertyType(this::isInteger, "Integer");
21-
return (Integer) value;
19+
public Long integer() {
20+
checkPropertyType(this::isInteger, "Long");
21+
return (Long) value;
2222
}
2323

2424
private void checkPropertyType(Supplier<Boolean> check, String expected) {

src/main/java/io/weaviate/client6/v1/api/collections/query/BaseQueryOptions.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -47,17 +47,17 @@ public static abstract class Builder<SELF extends Builder<SELF, T>, T extends Ob
4747
private List<QueryReference> returnReferences = new ArrayList<>();
4848
private List<Metadata> returnMetadata = new ArrayList<>();
4949

50-
public final SELF limit(Integer limit) {
50+
public final SELF limit(int limit) {
5151
this.limit = limit;
5252
return (SELF) this;
5353
}
5454

55-
public final SELF offset(Integer offset) {
55+
public final SELF offset(int offset) {
5656
this.offset = offset;
5757
return (SELF) this;
5858
}
5959

60-
public final SELF autocut(Integer autocut) {
60+
public final SELF autocut(int autocut) {
6161
this.autocut = autocut;
6262
return (SELF) this;
6363
}

0 commit comments

Comments
 (0)