[java] Disable Date deprecation notices