mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
Github: IDEA-111284 description field can be null and this is not critical error
This commit is contained in:
@@ -15,6 +15,7 @@
|
||||
*/
|
||||
package org.jetbrains.plugins.github.api;
|
||||
|
||||
import com.intellij.openapi.util.text.StringUtil;
|
||||
import org.jetbrains.annotations.NotNull;
|
||||
import org.jetbrains.annotations.Nullable;
|
||||
|
||||
@@ -74,13 +75,13 @@ public class GithubGist {
|
||||
}
|
||||
|
||||
public GithubGist(@NotNull String id,
|
||||
@NotNull String description,
|
||||
@Nullable String description,
|
||||
boolean isPublic,
|
||||
@NotNull String htmlUrl,
|
||||
@NotNull List<GistFile> files,
|
||||
@Nullable GithubUser user) {
|
||||
myId = id;
|
||||
myDescription = description;
|
||||
myDescription = StringUtil.notNullize(description);
|
||||
myIsPublic = isPublic;
|
||||
myHtmlUrl = htmlUrl;
|
||||
myFiles = files;
|
||||
|
||||
@@ -15,6 +15,7 @@
|
||||
*/
|
||||
package org.jetbrains.plugins.github.api;
|
||||
|
||||
import com.intellij.openapi.util.text.StringUtil;
|
||||
import org.jetbrains.annotations.NotNull;
|
||||
import org.jetbrains.annotations.Nullable;
|
||||
|
||||
@@ -41,7 +42,7 @@ public class GithubIssue {
|
||||
long number,
|
||||
@NotNull String state,
|
||||
@NotNull String title,
|
||||
@NotNull String body,
|
||||
@Nullable String body,
|
||||
@NotNull GithubUser user,
|
||||
@Nullable GithubUser assignee,
|
||||
@Nullable Date closedAt,
|
||||
@@ -51,7 +52,7 @@ public class GithubIssue {
|
||||
myNumber = number;
|
||||
myState = state;
|
||||
myTitle = title;
|
||||
myBody = body;
|
||||
myBody = StringUtil.notNullize(body);
|
||||
myUser = user;
|
||||
myAssignee = assignee;
|
||||
myClosedAt = closedAt;
|
||||
|
||||
@@ -15,6 +15,7 @@
|
||||
*/
|
||||
package org.jetbrains.plugins.github.api;
|
||||
|
||||
import com.intellij.openapi.util.text.StringUtil;
|
||||
import org.jetbrains.annotations.NotNull;
|
||||
import org.jetbrains.annotations.Nullable;
|
||||
|
||||
@@ -90,7 +91,7 @@ public class GithubPullRequest {
|
||||
public GithubPullRequest(long number,
|
||||
@NotNull String state,
|
||||
@NotNull String title,
|
||||
@NotNull String body,
|
||||
@Nullable String body,
|
||||
@NotNull String htmlUrl,
|
||||
@NotNull String diffUrl,
|
||||
@NotNull String patchUrl,
|
||||
@@ -105,7 +106,7 @@ public class GithubPullRequest {
|
||||
myNumber = number;
|
||||
myState = state;
|
||||
myTitle = title;
|
||||
myBody = body;
|
||||
myBody = StringUtil.notNullize(body);
|
||||
myHtmlUrl = htmlUrl;
|
||||
myDiffUrl = diffUrl;
|
||||
myPatchUrl = patchUrl;
|
||||
|
||||
@@ -15,6 +15,7 @@
|
||||
*/
|
||||
package org.jetbrains.plugins.github.api;
|
||||
|
||||
import com.intellij.openapi.util.text.StringUtil;
|
||||
import org.jetbrains.annotations.NotNull;
|
||||
import org.jetbrains.annotations.Nullable;
|
||||
|
||||
@@ -36,7 +37,7 @@ public class GithubRepo {
|
||||
@NotNull private GithubUser myOwner;
|
||||
|
||||
public GithubRepo(@NotNull String name,
|
||||
@NotNull String description,
|
||||
@Nullable String description,
|
||||
boolean isPrivate,
|
||||
boolean isFork,
|
||||
@NotNull String htmlUrl,
|
||||
@@ -44,7 +45,7 @@ public class GithubRepo {
|
||||
@Nullable String defaultBranch,
|
||||
@NotNull GithubUser owner) {
|
||||
myName = name;
|
||||
myDescription = description;
|
||||
myDescription = StringUtil.notNullize(description);
|
||||
myIsPrivate = isPrivate;
|
||||
myIsFork = isFork;
|
||||
myHtmlUrl = htmlUrl;
|
||||
|
||||
@@ -26,7 +26,7 @@ public class GithubRepoDetailed extends GithubRepo {
|
||||
@Nullable private GithubRepo mySource;
|
||||
|
||||
public GithubRepoDetailed(@NotNull String name,
|
||||
@NotNull String description,
|
||||
@Nullable String description,
|
||||
boolean isPrivate,
|
||||
boolean isFork,
|
||||
@NotNull String htmlUrl,
|
||||
|
||||
Reference in New Issue
Block a user