see #11924 - remove deprecated code, reduce double precision in unit tests to avoid tiny differences with JDK9