Fix some minor warnings.
Merge pull request #12 from philipa/master

Fix Java warnings.