BUILD.md: update JDK version
deprecate unused method