IJPL-187780 IJ-CR-172557 Remove excessive synchronization in ClassPath constructor

(cherry picked from commit 6bcd30e81761d6334b6f8bd5390c97e5f9161cf1)

GitOrigin-RevId: 69d8d451c32cbdbd79330ab42867177edc1de1ff
This commit is contained in:
Vladimir Lagunov
2025-08-17 22:16:51 +02:00
committed by intellij-monorepo-bot
parent f1c481dea7
commit a0a85e00c9

View File

@@ -92,9 +92,7 @@ public final class ClassPath {
this.mimicJarUrlConnection = mimicJarUrlConnection;
this.files = files.toArray(new Path[]{});
synchronized (this) {
filesConvertedToDefaultFs = false;
}
filesConvertedToDefaultFs = false;
if (resourceFileFactory == null) {
this.resourceFileFactory = file -> new JdkZipResourceFile(file, configuration.lockJars);
}