File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed
objectbox-java/src/main/java/io/objectbox Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -339,7 +339,8 @@ public long put(T entity) {
339
339
/**
340
340
* Puts the given entities in a box using a single transaction.
341
341
*/
342
- public void put (@ Nullable T ... entities ) {
342
+ @ SafeVarargs // Not using T... as Object[], no ClassCastException expected.
343
+ public final void put (@ Nullable T ... entities ) {
343
344
if (entities == null || entities .length == 0 ) {
344
345
return ;
345
346
}
@@ -488,8 +489,9 @@ public boolean remove(T object) {
488
489
/**
489
490
* Removes (deletes) the given Objects in a single transaction.
490
491
*/
492
+ @ SafeVarargs // Not using T... as Object[], no ClassCastException expected.
491
493
@ SuppressWarnings ("Duplicates" ) // Detected duplicate has different type
492
- public void remove (@ Nullable T ... objects ) {
494
+ public final void remove (@ Nullable T ... objects ) {
493
495
if (objects == null || objects .length == 0 ) {
494
496
return ;
495
497
}
You can’t perform that action at this time.
0 commit comments