Fix build with Java 12+
PR: 247334 Submitted by: Michael Osipov <michael.osipov@siemens.com> (maintainer) MFH: 2020Q2