fixed pmd warnings.

jenkins test successful:
https://jenkins.catrob.at/job/Catroid-Multi-Job-Custom-Branch/1301/
(checkstyle warnings removed)