NewFileSystem
Starting in JDK 13, this call is ambiguous with FileSystem.newFileSystem(Path,Map)

Severity
WARNING

The problem

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);

Suppression

Suppress false positives by adding the suppression annotation @SuppressWarnings("NewFileSystem") to the enclosing element.