[pmd] remove useless parentheses
throw illegal argument exception when min date or max date is null
throw illegal argument exception when min date is after max date