From 26b5a4c582b1e13fcfd30fe909758015a6be72cb Mon Sep 17 00:00:00 2001 From: AsamK Date: Sat, 23 Nov 2024 23:54:39 +0100 Subject: [PATCH] Small code improvement --- .../manager/syncStorage/DefaultStorageRecordProcessor.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/src/main/java/org/asamk/signal/manager/syncStorage/DefaultStorageRecordProcessor.java b/lib/src/main/java/org/asamk/signal/manager/syncStorage/DefaultStorageRecordProcessor.java index 68b5f9cc5..e9e4ef7f9 100644 --- a/lib/src/main/java/org/asamk/signal/manager/syncStorage/DefaultStorageRecordProcessor.java +++ b/lib/src/main/java/org/asamk/signal/manager/syncStorage/DefaultStorageRecordProcessor.java @@ -20,7 +20,7 @@ * our local store). We use it for a {@link TreeSet}, so mainly it's just important that the '0' * case is correct. Other cases are whatever, just make it something stable. */ -abstract class DefaultStorageRecordProcessor implements StorageRecordProcessor, Comparator { +abstract class DefaultStorageRecordProcessor> implements StorageRecordProcessor, Comparator { private static final Logger logger = LoggerFactory.getLogger(DefaultStorageRecordProcessor.class); private final Set matchedRecords = new TreeSet<>(this); @@ -76,7 +76,7 @@ public void process(E remote) throws SQLException { } private void debug(StorageId i, E record, String message) { - logger.debug("[" + i + "][" + record.getClass().getSimpleName() + "] " + message); + logger.debug("[{}][{}] {}", i, record.getClass().getSimpleName(), message); } /**