annotations

This commit is contained in:
Dmitry Jemerov
2012-08-15 13:42:42 +02:00
parent 3c6c502520
commit 9b9d11b4b0
2 changed files with 4 additions and 2 deletions
@@ -3,6 +3,7 @@ package com.jetbrains.python.psi.resolve;
import com.intellij.openapi.extensions.ExtensionPointName;
import com.intellij.psi.PsiElement;
import com.jetbrains.python.psi.impl.PyQualifiedName;
import org.jetbrains.annotations.NotNull;
import org.jetbrains.annotations.Nullable;
/**
@@ -21,5 +22,5 @@ public interface PyCanonicalPathProvider {
* @return the qualified name to use in the import statement, or null if no replacement is necessary.
*/
@Nullable
PyQualifiedName getCanonicalPath(PyQualifiedName qName, PsiElement foothold);
PyQualifiedName getCanonicalPath(@NotNull PyQualifiedName qName, @Nullable PsiElement foothold);
}
@@ -3,6 +3,7 @@ package com.jetbrains.python.codeInsight.stdlib;
import com.intellij.psi.PsiElement;
import com.jetbrains.python.psi.impl.PyQualifiedName;
import com.jetbrains.python.psi.resolve.PyCanonicalPathProvider;
import org.jetbrains.annotations.NotNull;
import org.jetbrains.annotations.Nullable;
import java.util.ArrayList;
@@ -14,7 +15,7 @@ import java.util.List;
public class PyStdlibCanonicalPathProvider implements PyCanonicalPathProvider {
@Nullable
@Override
public PyQualifiedName getCanonicalPath(PyQualifiedName qName, PsiElement foothold) {
public PyQualifiedName getCanonicalPath(@NotNull PyQualifiedName qName, PsiElement foothold) {
return restoreStdlibCanonicalPath(qName);
}