fixed pmd warnings.
Merge pull request #924 from Catrobat/PMDWarningsPart8

fixed pmd warnings.