fixed PMDWarnings.

PMDWarnings fixed.
jenkins tests successful:
https://jenkins.catrob.at/job/Catroid-Multi-Job-Custom-Branch/1383/
(one test fails but has nothing to do with my changes).