File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed
objectbox-java/src/main/java/io/objectbox/query
tests/objectbox-java-test/src/test/java/io/objectbox/query Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -182,7 +182,7 @@ private void ensureNoComparator() {
182
182
*/
183
183
@ Nullable
184
184
public T findUnique () {
185
- ensureNoFilterNoComparator ();
185
+ ensureNoFilter (); // Comparator is fine: does not make any difference for a unique result
186
186
return callInReadTx (new Callable <T >() {
187
187
@ Override
188
188
public T call () {
Original file line number Diff line number Diff line change @@ -144,8 +144,8 @@ public void comparator_findFirst_unsupported() {
144
144
.findFirst ();
145
145
}
146
146
147
- @ Test ( expected = UnsupportedOperationException . class )
148
- public void comparator_findUnique_unsupported () {
147
+ @ Test
148
+ public void comparator_findUnique_supported () {
149
149
box .query ()
150
150
.sort (createTestComparator ())
151
151
.build ()
You can’t perform that action at this time.
0 commit comments