[Releng] Fix new deprecation warnings with Java 9++
3 files changed