Starting in JDK 13, calls to FileSystem.newFileSystem(path, null)
are
ambiguous.
The calls match both:
To disambiguate, add a cast to the desired type, to preserve the pre-JDK 13 behaviour.
That is, prefer this:
FileSystem.newFileSystem(path, (ClassLoader) null);
Instead of this:
FileSystem.newFileSystem(path, null);
Suppress false positives by adding the suppression annotation @SuppressWarnings("NewFileSystem")
to the enclosing element.