File tree Expand file tree Collapse file tree 1 file changed +3
-6
lines changed
algoliasearch-core/src/main/java/com/algolia/model/search Expand file tree Collapse file tree 1 file changed +3
-6
lines changed Original file line number Diff line number Diff line change @@ -12,7 +12,7 @@ public class BatchResponse {
12
12
private Long taskID ;
13
13
14
14
@ SerializedName ("objectIDs" )
15
- private List <String > objectIDs = null ;
15
+ private List <String > objectIDs = new ArrayList <>() ;
16
16
17
17
public BatchResponse setTaskID (Long taskID ) {
18
18
this .taskID = taskID ;
@@ -24,7 +24,7 @@ public BatchResponse setTaskID(Long taskID) {
24
24
*
25
25
* @return taskID
26
26
*/
27
- @ javax .annotation .Nullable
27
+ @ javax .annotation .Nonnull
28
28
public Long getTaskID () {
29
29
return taskID ;
30
30
}
@@ -35,9 +35,6 @@ public BatchResponse setObjectIDs(List<String> objectIDs) {
35
35
}
36
36
37
37
public BatchResponse addObjectIDs (String objectIDsItem ) {
38
- if (this .objectIDs == null ) {
39
- this .objectIDs = new ArrayList <>();
40
- }
41
38
this .objectIDs .add (objectIDsItem );
42
39
return this ;
43
40
}
@@ -47,7 +44,7 @@ public BatchResponse addObjectIDs(String objectIDsItem) {
47
44
*
48
45
* @return objectIDs
49
46
*/
50
- @ javax .annotation .Nullable
47
+ @ javax .annotation .Nonnull
51
48
public List <String > getObjectIDs () {
52
49
return objectIDs ;
53
50
}
You can’t perform that action at this time.
0 commit comments