Currently used spotbugs version 3.1.1 does not support JDK10+. The newest version 3.1.8 runs fine with JDK11 so we can upgrade to this version.