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() {
182182 */
183183 @ Nullable
184184 public T findUnique () {
185- ensureNoFilterNoComparator ();
185+ ensureNoFilter (); // Comparator is fine: does not make any difference for a unique result
186186 return callInReadTx (new Callable <T >() {
187187 @ Override
188188 public T call () {
Original file line number Diff line number Diff line change @@ -144,8 +144,8 @@ public void comparator_findFirst_unsupported() {
144144 .findFirst ();
145145 }
146146
147- @ Test ( expected = UnsupportedOperationException . class )
148- public void comparator_findUnique_unsupported () {
147+ @ Test
148+ public void comparator_findUnique_supported () {
149149 box .query ()
150150 .sort (createTestComparator ())
151151 .build ()
You can’t perform that action at this time.
0 commit comments