Add @Nullable/@NotNull annotations to PySkeletonGenerator.getProcessOutput() method signature

GitOrigin-RevId: ee07b42d6ab9c167b5ef5949822613be8713d965
This commit is contained in:
Alexander Koshevoy
2020-07-30 12:29:44 +03:00
committed by intellij-monorepo-bot
parent 52bf1d83b2
commit c0981499a1

View File

@@ -395,10 +395,11 @@ public class PySkeletonGenerator {
public void prepare() {
}
protected ProcessOutput getProcessOutput(String homePath,
@NotNull
protected ProcessOutput getProcessOutput(@Nullable String homePath,
String @NotNull [] commandLine,
@Nullable String stdin,
Map<String, String> extraEnv,
@Nullable Map<String, String> extraEnv,
int timeout) throws InvalidSdkException {
final byte[] bytes = stdin != null ? stdin.getBytes(StandardCharsets.UTF_8) : null;
return PySdkUtil.getProcessOutput(homePath, commandLine, extraEnv, timeout, bytes, true);