Fix PMD warnings.