Skip to content

Commit

Permalink
refactor classes to be final
Browse files Browse the repository at this point in the history
  • Loading branch information
ankitsmt211 committed Nov 12, 2023
1 parent 20a2eb3 commit fedb8c6
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
/**
* Routine that deletes records from message_history post expiration hours.
*/
public class MessageHistoryRoutine implements Routine {
public final class MessageHistoryRoutine implements Routine {
private static final Logger logger = LoggerFactory.getLogger(MessageHistoryRoutine.class);
private static final int SCHEDULE_INTERVAL_SECONDS = 30;
private static final int EXPIRATION_HOURS = 24;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@

import static org.togetherjava.tjbot.db.generated.Tables.MESSAGE_HISTORY;

public class PurgeHistoryCommand extends SlashCommandAdapter {
public final class PurgeHistoryCommand extends SlashCommandAdapter {

private static final Logger logger = LoggerFactory.getLogger(PurgeHistoryCommand.class);
private static final String USER_OPTION = "user";
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
* Listens for new message throughout the guild, then stores some metadata for each message in a
* database.
*/
public class PurgeMessageListener extends MessageReceiverAdapter {
public final class PurgeMessageListener extends MessageReceiverAdapter {
private static final Logger logger = LoggerFactory.getLogger(PurgeMessageListener.class);
private static final int MESSAGES_RECORDS_LIMIT = 7500;
static AtomicInteger recordsCounter = new AtomicInteger(0);
Expand Down

0 comments on commit fedb8c6

Please sign in to comment.