When you try to create a query from an empty BooleanJunction an exception is thrown. However, the BooleanJunction interface offers no way to check if it is empty, requiring you to manually keep check if it might be empty. This doesn't make sense.
I recommend adding an isEmpty method to the BooleanJunction interface.
|