Merge pull request #5 from mknoszlig/master

Fix java code.