Skip to content

Commit 2628c92

Browse files
algolia-botshortcutsmillotp
committed
chore: generated code for commit da452042. [skip ci]
algolia/api-clients-automation@da45204 Co-authored-by: algolia-bot <[email protected]> Co-authored-by: Clément Vannicatte <[email protected]> Co-authored-by: Pierre Millot <[email protected]>
1 parent 044121f commit 2628c92

File tree

1 file changed

+3
-6
lines changed

1 file changed

+3
-6
lines changed

algoliasearch-core/src/main/java/com/algolia/model/search/BatchResponse.java

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ public class BatchResponse {
1212
private Long taskID;
1313

1414
@SerializedName("objectIDs")
15-
private List<String> objectIDs = null;
15+
private List<String> objectIDs = new ArrayList<>();
1616

1717
public BatchResponse setTaskID(Long taskID) {
1818
this.taskID = taskID;
@@ -24,7 +24,7 @@ public BatchResponse setTaskID(Long taskID) {
2424
*
2525
* @return taskID
2626
*/
27-
@javax.annotation.Nullable
27+
@javax.annotation.Nonnull
2828
public Long getTaskID() {
2929
return taskID;
3030
}
@@ -35,9 +35,6 @@ public BatchResponse setObjectIDs(List<String> objectIDs) {
3535
}
3636

3737
public BatchResponse addObjectIDs(String objectIDsItem) {
38-
if (this.objectIDs == null) {
39-
this.objectIDs = new ArrayList<>();
40-
}
4138
this.objectIDs.add(objectIDsItem);
4239
return this;
4340
}
@@ -47,7 +44,7 @@ public BatchResponse addObjectIDs(String objectIDsItem) {
4744
*
4845
* @return objectIDs
4946
*/
50-
@javax.annotation.Nullable
47+
@javax.annotation.Nonnull
5148
public List<String> getObjectIDs() {
5249
return objectIDs;
5350
}

0 commit comments

Comments
 (0)