We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent bd4e15e commit 485be22Copy full SHA for 485be22
application/src/main/java/org/togetherjava/tjbot/config/StarboardConfig.java
@@ -5,6 +5,7 @@
5
import com.fasterxml.jackson.annotation.JsonRootName;
6
7
import java.util.List;
8
+import java.util.Objects;
9
10
@JsonRootName("starboard")
11
public final class StarboardConfig {
@@ -15,8 +16,8 @@ public final class StarboardConfig {
15
16
public StarboardConfig(
17
@JsonProperty(value = "emojiNames", required = true) List<String> emojiNames,
18
@JsonProperty(value = "channelName", required = true) String channelName) {
- this.emojiNames = emojiNames;
19
- this.channelName = channelName;
+ this.emojiNames = Objects.requireNonNull(emojiNames);
20
+ this.channelName = Objects.requireNonNull(channelName);
21
}
22
23
/**
0 commit comments