Skip to content

Commit 6ad6f45

Browse files
Cursor: use generic argument name in checkApplyToManyToDb().
1 parent 3e8a231 commit 6ad6f45

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

objectbox-java/src/main/java/io/objectbox/Cursor.java

+3-3
Original file line numberDiff line numberDiff line change
@@ -327,9 +327,9 @@ public void modifyRelationsSingle(int relationId, long key, long targetKey, bool
327327
nativeModifyRelationsSingle(cursor, relationId, key, targetKey, remove);
328328
}
329329

330-
protected <TARGET> void checkApplyToManyToDb(List<TARGET> orders, Class<TARGET> targetClass) {
331-
if (orders instanceof ToMany) {
332-
ToMany<TARGET> toMany = (ToMany<TARGET>) orders;
330+
protected <TARGET> void checkApplyToManyToDb(List<TARGET> relationField, Class<TARGET> targetClass) {
331+
if (relationField instanceof ToMany) {
332+
ToMany<TARGET> toMany = (ToMany<TARGET>) relationField;
333333
if (toMany.internalCheckApplyToDbRequired()) {
334334
try (Cursor<TARGET> targetCursor = getRelationTargetCursor(targetClass)) {
335335
toMany.internalApplyToDb(this, targetCursor);

0 commit comments

Comments
 (0)