diff --git a/platform/core-impl/src/com/intellij/openapi/vfs/impl/jar/CoreJarFileSystem.java b/platform/core-impl/src/com/intellij/openapi/vfs/impl/jar/CoreJarFileSystem.java index 0d34db51b4e9..31c5ab232adc 100644 --- a/platform/core-impl/src/com/intellij/openapi/vfs/impl/jar/CoreJarFileSystem.java +++ b/platform/core-impl/src/com/intellij/openapi/vfs/impl/jar/CoreJarFileSystem.java @@ -20,7 +20,6 @@ import com.intellij.openapi.vfs.StandardFileSystems; import com.intellij.openapi.vfs.VirtualFile; import org.jetbrains.annotations.NonNls; import org.jetbrains.annotations.NotNull; -import org.jetbrains.annotations.Nullable; import java.io.IOException; import java.util.HashMap; @@ -47,13 +46,11 @@ public class CoreJarFileSystem extends DeprecatedVirtualFileSystem { String localPath = path.substring(0, separatorIndex); String pathInJar = path.substring(separatorIndex+2); CoreJarHandler handler = getHandler(localPath); - if (handler == null) - return null; return handler.findFileByPath(pathInJar); } - @Nullable - protected CoreJarHandler getHandler(String localPath) { + @NotNull + private CoreJarHandler getHandler(String localPath) { CoreJarHandler handler = myHandlers.get(localPath); if (handler == null) { handler = new CoreJarHandler(this, localPath);