File tree Expand file tree Collapse file tree 3 files changed +10
-6
lines changed
application/src/main/java/org/togetherjava/tjbot/commands/free
logviewer/src/main/java/org/togetherjava/tjbot/logwatcher/entities Expand file tree Collapse file tree 3 files changed +10
-6
lines changed Original file line number Diff line number Diff line change @@ -271,9 +271,10 @@ public void updateStatusFor(@NotNull Guild guild) {
271
271
}
272
272
long channelId = guildIdToStatusChannel .get (guild .getIdLong ());
273
273
TextChannel channel = guild .getTextChannelById (channelId );
274
- if (channel == null )
275
- throw new IllegalStateException ("Status channel %d does not exist in guild %s"
276
- .formatted (channelId , guild .getName ()));
274
+ if (channel == null ) {
275
+ throw new IllegalStateException (
276
+ "Status channel %d does not exist in guild %s" .formatted (channelId , guild .getName ()));
277
+ }
277
278
return channel ;
278
279
}
279
280
Original file line number Diff line number Diff line change @@ -164,10 +164,12 @@ public synchronized void setFree() {
164
164
public boolean equals (final Object o ) {
165
165
// TODO should I overload equals with equals(long) so that a Set may be used instead of a
166
166
// Map
167
- if (this == o )
167
+ if (this == o ) {
168
168
return true ;
169
- if (o == null || getClass () != o .getClass ())
169
+ }
170
+ if (o == null || getClass () != o .getClass ()) {
170
171
return false ;
172
+ }
171
173
172
174
ChannelStatus channelStatus = (ChannelStatus ) o ;
173
175
return channelId == channelStatus .channelId ;
Original file line number Diff line number Diff line change @@ -53,8 +53,9 @@ public Instant toInstant() {
53
53
54
54
@ Override
55
55
public boolean equals (Object o ) {
56
- if (!(o instanceof InstantWrapper other ))
56
+ if (!(o instanceof InstantWrapper other )) {
57
57
return false ;
58
+ }
58
59
59
60
return epochSecond == other .epochSecond && nanoOfSecond != other .nanoOfSecond ;
60
61
}
You can’t perform that action at this time.
0 commit comments