From 4d194ed92b6608da69022464acea8ae16926e900 Mon Sep 17 00:00:00 2001 From: Christian Koop Date: Sat, 26 Nov 2022 20:40:57 +0100 Subject: [PATCH] Rename constant into upper case to match code conventions --- .../songoda/core/configuration/songoda/SongodaYamlConfig.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Core/src/main/java/com/songoda/core/configuration/songoda/SongodaYamlConfig.java b/Core/src/main/java/com/songoda/core/configuration/songoda/SongodaYamlConfig.java index 37af9013..78287078 100644 --- a/Core/src/main/java/com/songoda/core/configuration/songoda/SongodaYamlConfig.java +++ b/Core/src/main/java/com/songoda/core/configuration/songoda/SongodaYamlConfig.java @@ -31,7 +31,7 @@ import java.util.logging.Logger; // TODO: Allow registering load-Listeners // TODO: Provide method to only save if changed public class SongodaYamlConfig extends YamlConfiguration { - protected static final String cannotCreateBackupCopyExceptionPrefix = "Unable to create backup copy of config file: "; + protected static final String CANNOT_CREATE_BACKUP_COPY_EXCEPTION_PREFIX = "Unable to create backup copy of config file: "; public final @NotNull File file; protected final @NotNull Logger logger; @@ -239,7 +239,7 @@ public class SongodaYamlConfig extends YamlConfiguration { this.logger.info("Created backup copy of config file '" + this.file.getPath() + "' to '" + targetPath + "'"); } catch (IOException ex) { - throw new IOException(cannotCreateBackupCopyExceptionPrefix + this.file.getPath(), ex); + throw new IOException(CANNOT_CREATE_BACKUP_COPY_EXCEPTION_PREFIX + this.file.getPath(), ex); } } }