Skip to content

Commit 1b5de5b

Browse files
authored
Move spotbugs suppression to class
1 parent 1d20b7a commit 1b5de5b

1 file changed

Lines changed: 1 addition & 3 deletions

File tree

src/main/java/org/kohsuke/github/GHPullRequest.java

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -647,6 +647,7 @@ public enum MergeMethod {
647647
* The status of auto merging a {@linkplain GHPullRequest}.
648648
*
649649
*/
650+
@SuppressFBWarnings(value = "UWF_UNWRITTEN_FIELD", justification = "Field comes from JSON deserialization")
650651
public static class AutoMerge {
651652

652653
private GHUser enabled_by;
@@ -669,7 +670,6 @@ public GHUser getEnabledBy() {
669670
*
670671
* @return the {@linkplain MergeMethod}
671672
*/
672-
@SuppressFBWarnings(value = "UWF_UNWRITTEN_FIELD", justification = "Field comes from JSON deserialization")
673673
public MergeMethod getMergeMethod() {
674674
return merge_method;
675675
}
@@ -679,7 +679,6 @@ public MergeMethod getMergeMethod() {
679679
*
680680
* @return the title of the commit
681681
*/
682-
@SuppressFBWarnings(value = "UWF_UNWRITTEN_FIELD", justification = "Field comes from JSON deserialization")
683682
public String getCommitTitle() {
684683
return commit_title;
685684
}
@@ -689,7 +688,6 @@ public String getCommitTitle() {
689688
*
690689
* @return the message of the commit
691690
*/
692-
@SuppressFBWarnings(value = "UWF_UNWRITTEN_FIELD", justification = "Field comes from JSON deserialization")
693691
public String getCommitMessage() {
694692
return commit_message;
695693
}

0 commit comments

Comments
 (0)