- fix to java snippets.