Skip to content

Commit d93fa5f

Browse files
QueryObserverTest: remove unused annotation, return value.
1 parent 78f7778 commit d93fa5f

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

tests/objectbox-java-test/src/test/java/io/objectbox/query/QueryObserverTest.java

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -91,8 +91,7 @@ public void testTransformer() throws InterruptedException {
9191
query.subscribe().transform(new DataTransformer<List<TestEntity>, Integer>() {
9292

9393
@Override
94-
@SuppressWarnings("NullableProblems")
95-
public Integer transform(List<TestEntity> source) throws Exception {
94+
public Integer transform(List<TestEntity> source) {
9695
int sum = 0;
9796
for (TestEntity entity : source) {
9897
sum += entity.getSimpleInt();
@@ -118,8 +117,8 @@ public void onData(Integer data) {
118117
assertEquals(2003 + 2007 + 2002, (int) receivedSums.get(1));
119118
}
120119

121-
private List<TestEntity> putTestEntitiesScalars() {
122-
return putTestEntities(10, null, 2000);
120+
private void putTestEntitiesScalars() {
121+
putTestEntities(10, null, 2000);
123122
}
124123

125124
@Override

0 commit comments

Comments
 (0)