Update README.md
Fix Invalid inferred types issue openjdk6