PMD rule: combined two if statements
Merge pull request #37 from EricDuell/master

PMD rule: combined two if statements