Pmd warnings fixed

pmd warnings fixed.

jenkins test successful:
https://jenkins.catrob.at/job/Catroid-Multi-Job-Custom-Branch/1405/
(except two test fails but which occurs also in the master sometimes)