GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — Deprecate Box.removeByKeys() in favor of removeByIds() · jamesagada/objectbox-java@74a2b36

File tree

Expand file treeCollapse file tree
Open diff view settings
Filter options
  • objectbox-java/src/main/java/io/objectbox
    • Box.java
  • tests/objectbox-java-test/src/test/java/io/objectbox
    • BoxTest.java
Expand file treeCollapse file tree
Open diff view settings
Collapse file

‎objectbox-java/src/main/java/io/objectbox/Box.java‎

Copy file name to clipboardExpand all lines: objectbox-java/src/main/java/io/objectbox/Box.java
+7-1Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -420,10 +420,16 @@ public void remove(@Nullable long... ids) {
420420
}
421421
}
422422

423+
@Deprecated
424+
/** @deprecated use {@link #removeByIds(Collection)} instead. */
425+
public void removeByKeys(@Nullable Collection<Long> ids) {
426+
removeByIds(ids);
427+
}
428+
423429
/**
424430
* Due to type erasure collision, we cannot simply use "remove" as a method name here.
425431
*/
426-
public void removeByKeys(@Nullable Collection<Long> ids) {
432+
public void removeByIds(@Nullable Collection<Long> ids) {
427433
if (ids == null || ids.isEmpty()) {
428434
return;
429435
}
Collapse file

‎tests/objectbox-java-test/src/test/java/io/objectbox/BoxTest.java‎

Copy file name to clipboardExpand all lines: tests/objectbox-java-test/src/test/java/io/objectbox/BoxTest.java
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -244,7 +244,7 @@ public void testCollectionsNull() {
244244
box.put((TestEntity[]) null);
245245
box.remove((Collection) null);
246246
box.remove((long[]) null);
247-
box.removeByKeys(null);
247+
box.removeByIds(null);
248248
}
249249

250250
@Test

0 commit comments

Comments
0 (0)
You are visitor 01402792 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.