PY-18039 PyPackageManager#getDependents() returns @NotNull value

This commit is contained in:
Mikhail Golubev
2016-06-23 17:40:56 +03:00
parent 1e2d9ca81d
commit 38731649c6
3 changed files with 3 additions and 3 deletions
@@ -62,6 +62,6 @@ public abstract class PyPackageManager {
@Nullable
public abstract List<PyRequirement> getRequirements(@NotNull Module module);
@Nullable
@NotNull
public abstract Set<PyPackage> getDependents(@NotNull PyPackage pkg) throws ExecutionException;
}
@@ -278,7 +278,7 @@ public class PyPackageManagerImpl extends PyPackageManager {
}
@Override
@Nullable
@NotNull
public Set<PyPackage> getDependents(@NotNull PyPackage pkg) throws ExecutionException {
final List<PyPackage> packages = refreshAndGetPackages(false);
final Set<PyPackage> dependents = new HashSet<>();
@@ -148,7 +148,7 @@ public class PyPackageManagersImpl extends PyPackageManagers {
return null;
}
@Nullable
@NotNull
@Override
public Set<PyPackage> getDependents(@NotNull PyPackage pkg) throws ExecutionException {
throw new ExecutionException(getErrorMessage());