mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
PY-18039 PyPackageManager#getDependents() returns @NotNull value
This commit is contained in:
@@ -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());
|
||||
|
||||
Reference in New Issue
Block a user