Skip to content

Commit ae65b8a

Browse files
made classes that extend NotificationService final
1 parent 5201b3c commit ae65b8a

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

src/main/java/net/javadiscord/javabot/systems/notification/GuildNotificationService.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
/**
99
* Sends notifications within a single {@link Guild}.
1010
*/
11-
public non-sealed class GuildNotificationService extends NotificationService {
11+
public final class GuildNotificationService extends NotificationService {
1212

1313
private final Guild guild;
1414
private final GuildConfig config;

src/main/java/net/javadiscord/javabot/systems/notification/NotificationService.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
* Abstract class used for sending Notifications to Discord Users and Channels.
1111
*/
1212
@Slf4j
13-
public abstract sealed class NotificationService permits GuildNotificationService, QOTWNotificationService {
13+
public abstract class NotificationService {
1414
void sendDirectMessageNotification(User user, MessageEmbed message) {
1515
user.openPrivateChannel().queue(
1616
channel -> channel.sendMessageEmbeds(message).queue(),

src/main/java/net/javadiscord/javabot/systems/notification/QOTWNotificationService.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525
* Sends Notifications regarding QOTW.
2626
*/
2727
@Slf4j
28-
public non-sealed class QOTWNotificationService extends NotificationService {
28+
public final class QOTWNotificationService extends NotificationService {
2929

3030
@Nullable
3131
private final User user;

0 commit comments

Comments
 (0)