/*
- * Copyright 2000-2009 JetBrains s.r.o.
+ * Copyright 2000-2011 JetBrains s.r.o.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
import com.intellij.openapi.vfs.VirtualFileManager;
import org.jetbrains.annotations.NonNls;
import org.jetbrains.annotations.NotNull;
+import org.jetbrains.annotations.Nullable;
import java.io.File;
private PathUtil() {
}
- public static String getLocalPath(VirtualFile file) {
+ @Nullable
+ public static String getLocalPath(@Nullable VirtualFile file) {
if (file == null || !file.isValid()) {
return null;
}