From b4eabae312095a1003ddae548f627780af200489 Mon Sep 17 00:00:00 2001 From: JeremyStarTM Date: Sun, 9 Jun 2024 16:46:24 +0200 Subject: [PATCH] Rename BuildInfo to EngineInformation --- .../info/{BuildInfo.java => EngineInformation.java} | 10 +++++----- .../base/data/placeholders/EngineDependencyJansi.java | 4 ++-- .../EngineDependencyJetbrainsAnnotations.java | 4 ++-- .../base/data/placeholders/EngineDependencyLombok.java | 4 ++-- .../base/data/placeholders/EnginePluginLombok.java | 4 ++-- .../base/data/placeholders/EnginePluginShadow.java | 4 ++-- .../base/data/placeholders/EngineVersionFork.java | 4 ++-- .../base/data/placeholders/EngineVersionType.java | 4 ++-- .../data/placeholders/EngineVersionTyperelease.java | 4 ++-- .../base/data/placeholders/EngineVersionVersion.java | 4 ++-- .../sosengine/base/types/VersionType.java | 4 ++-- 11 files changed, 25 insertions(+), 25 deletions(-) rename base/src/main/java/de/staropensource/sosengine/base/data/info/{BuildInfo.java => EngineInformation.java} (96%) diff --git a/base/src/main/java/de/staropensource/sosengine/base/data/info/BuildInfo.java b/base/src/main/java/de/staropensource/sosengine/base/data/info/EngineInformation.java similarity index 96% rename from base/src/main/java/de/staropensource/sosengine/base/data/info/BuildInfo.java rename to base/src/main/java/de/staropensource/sosengine/base/data/info/EngineInformation.java index 46b5afb..5d5074c 100644 --- a/base/src/main/java/de/staropensource/sosengine/base/data/info/BuildInfo.java +++ b/base/src/main/java/de/staropensource/sosengine/base/data/info/EngineInformation.java @@ -35,20 +35,20 @@ import java.util.Properties; */ @SuppressWarnings({ "unused", "JavadocDeclaration", "JavadocBlankLines" }) @Getter -public class BuildInfo { +public class EngineInformation { /** * Instance. * * @since 1-alpha0 * * -- GETTER -- - * Returns the {@link BuildInfo} instance. + * Returns the {@link EngineInformation} instance. * - * @return {@link BuildInfo} instance + * @return {@link EngineInformation} instance * @since 1-alpha0 */ @Getter - private static BuildInfo instance; + private static EngineInformation instance; /** * Provides the engine's version. @@ -175,7 +175,7 @@ public class BuildInfo { * * @since 1-alpha0 */ - public BuildInfo() { + public EngineInformation() { LoggerInstance logger = new LoggerInstance(new LogIssuer(getClass(), CodePart.ENGINE)); // Only allow one instance diff --git a/base/src/main/java/de/staropensource/sosengine/base/data/placeholders/EngineDependencyJansi.java b/base/src/main/java/de/staropensource/sosengine/base/data/placeholders/EngineDependencyJansi.java index ea16524..1b61def 100644 --- a/base/src/main/java/de/staropensource/sosengine/base/data/placeholders/EngineDependencyJansi.java +++ b/base/src/main/java/de/staropensource/sosengine/base/data/placeholders/EngineDependencyJansi.java @@ -20,7 +20,7 @@ package de.staropensource.sosengine.base.data.placeholders; import de.staropensource.sosengine.base.classes.Placeholder; -import de.staropensource.sosengine.base.data.info.BuildInfo; +import de.staropensource.sosengine.base.data.info.EngineInformation; import org.jetbrains.annotations.NotNull; /** @@ -48,6 +48,6 @@ public class EngineDependencyJansi implements Placeholder { @NotNull @Override public String replace(@NotNull String text) { - return text.replace("%" + getName() + "%", BuildInfo.getInstance().getDependencyJansi()); + return text.replace("%" + getName() + "%", EngineInformation.getInstance().getDependencyJansi()); } } diff --git a/base/src/main/java/de/staropensource/sosengine/base/data/placeholders/EngineDependencyJetbrainsAnnotations.java b/base/src/main/java/de/staropensource/sosengine/base/data/placeholders/EngineDependencyJetbrainsAnnotations.java index ce9e4d3..f1fbe14 100644 --- a/base/src/main/java/de/staropensource/sosengine/base/data/placeholders/EngineDependencyJetbrainsAnnotations.java +++ b/base/src/main/java/de/staropensource/sosengine/base/data/placeholders/EngineDependencyJetbrainsAnnotations.java @@ -20,7 +20,7 @@ package de.staropensource.sosengine.base.data.placeholders; import de.staropensource.sosengine.base.classes.Placeholder; -import de.staropensource.sosengine.base.data.info.BuildInfo; +import de.staropensource.sosengine.base.data.info.EngineInformation; import org.jetbrains.annotations.NotNull; /** @@ -48,6 +48,6 @@ public class EngineDependencyJetbrainsAnnotations implements Placeholder { @NotNull @Override public String replace(@NotNull String text) { - return text.replace("%" + getName() + "%", BuildInfo.getInstance().getDependencyJetbrainsAnnotations()); + return text.replace("%" + getName() + "%", EngineInformation.getInstance().getDependencyJetbrainsAnnotations()); } } diff --git a/base/src/main/java/de/staropensource/sosengine/base/data/placeholders/EngineDependencyLombok.java b/base/src/main/java/de/staropensource/sosengine/base/data/placeholders/EngineDependencyLombok.java index ecb19c1..6b979c2 100644 --- a/base/src/main/java/de/staropensource/sosengine/base/data/placeholders/EngineDependencyLombok.java +++ b/base/src/main/java/de/staropensource/sosengine/base/data/placeholders/EngineDependencyLombok.java @@ -20,7 +20,7 @@ package de.staropensource.sosengine.base.data.placeholders; import de.staropensource.sosengine.base.classes.Placeholder; -import de.staropensource.sosengine.base.data.info.BuildInfo; +import de.staropensource.sosengine.base.data.info.EngineInformation; import org.jetbrains.annotations.NotNull; /** @@ -48,6 +48,6 @@ public class EngineDependencyLombok implements Placeholder { @NotNull @Override public String replace(@NotNull String text) { - return text.replace("%" + getName() + "%", BuildInfo.getInstance().getDependencyLombok()); + return text.replace("%" + getName() + "%", EngineInformation.getInstance().getDependencyLombok()); } } diff --git a/base/src/main/java/de/staropensource/sosengine/base/data/placeholders/EnginePluginLombok.java b/base/src/main/java/de/staropensource/sosengine/base/data/placeholders/EnginePluginLombok.java index b835f27..81c0d07 100644 --- a/base/src/main/java/de/staropensource/sosengine/base/data/placeholders/EnginePluginLombok.java +++ b/base/src/main/java/de/staropensource/sosengine/base/data/placeholders/EnginePluginLombok.java @@ -20,7 +20,7 @@ package de.staropensource.sosengine.base.data.placeholders; import de.staropensource.sosengine.base.classes.Placeholder; -import de.staropensource.sosengine.base.data.info.BuildInfo; +import de.staropensource.sosengine.base.data.info.EngineInformation; import org.jetbrains.annotations.NotNull; /** @@ -48,6 +48,6 @@ public class EnginePluginLombok implements Placeholder { @NotNull @Override public String replace(@NotNull String text) { - return text.replace("%" + getName() + "%", BuildInfo.getInstance().getPluginLombok()); + return text.replace("%" + getName() + "%", EngineInformation.getInstance().getPluginLombok()); } } diff --git a/base/src/main/java/de/staropensource/sosengine/base/data/placeholders/EnginePluginShadow.java b/base/src/main/java/de/staropensource/sosengine/base/data/placeholders/EnginePluginShadow.java index 2b94238..8543420 100644 --- a/base/src/main/java/de/staropensource/sosengine/base/data/placeholders/EnginePluginShadow.java +++ b/base/src/main/java/de/staropensource/sosengine/base/data/placeholders/EnginePluginShadow.java @@ -20,7 +20,7 @@ package de.staropensource.sosengine.base.data.placeholders; import de.staropensource.sosengine.base.classes.Placeholder; -import de.staropensource.sosengine.base.data.info.BuildInfo; +import de.staropensource.sosengine.base.data.info.EngineInformation; import org.jetbrains.annotations.NotNull; /** @@ -48,6 +48,6 @@ public class EnginePluginShadow implements Placeholder { @NotNull @Override public String replace(@NotNull String text) { - return text.replace("%" + getName() + "%", BuildInfo.getInstance().getPluginShadow()); + return text.replace("%" + getName() + "%", EngineInformation.getInstance().getPluginShadow()); } } diff --git a/base/src/main/java/de/staropensource/sosengine/base/data/placeholders/EngineVersionFork.java b/base/src/main/java/de/staropensource/sosengine/base/data/placeholders/EngineVersionFork.java index 3f5ccb1..7ab2cf3 100644 --- a/base/src/main/java/de/staropensource/sosengine/base/data/placeholders/EngineVersionFork.java +++ b/base/src/main/java/de/staropensource/sosengine/base/data/placeholders/EngineVersionFork.java @@ -20,7 +20,7 @@ package de.staropensource.sosengine.base.data.placeholders; import de.staropensource.sosengine.base.classes.Placeholder; -import de.staropensource.sosengine.base.data.info.BuildInfo; +import de.staropensource.sosengine.base.data.info.EngineInformation; import org.jetbrains.annotations.NotNull; /** @@ -48,6 +48,6 @@ public class EngineVersionFork implements Placeholder { @NotNull @Override public String replace(@NotNull String text) { - return text.replace("%" + getName() + "%", BuildInfo.getInstance().getVersioningFork()); + return text.replace("%" + getName() + "%", EngineInformation.getInstance().getVersioningFork()); } } diff --git a/base/src/main/java/de/staropensource/sosengine/base/data/placeholders/EngineVersionType.java b/base/src/main/java/de/staropensource/sosengine/base/data/placeholders/EngineVersionType.java index 9278a06..7835725 100644 --- a/base/src/main/java/de/staropensource/sosengine/base/data/placeholders/EngineVersionType.java +++ b/base/src/main/java/de/staropensource/sosengine/base/data/placeholders/EngineVersionType.java @@ -20,7 +20,7 @@ package de.staropensource.sosengine.base.data.placeholders; import de.staropensource.sosengine.base.classes.Placeholder; -import de.staropensource.sosengine.base.data.info.BuildInfo; +import de.staropensource.sosengine.base.data.info.EngineInformation; import org.jetbrains.annotations.NotNull; /** @@ -48,6 +48,6 @@ public class EngineVersionType implements Placeholder { @NotNull @Override public String replace(@NotNull String text) { - return text.replace("%" + getName() + "%", BuildInfo.getInstance().getVersioningType().name().toLowerCase()); + return text.replace("%" + getName() + "%", EngineInformation.getInstance().getVersioningType().name().toLowerCase()); } } diff --git a/base/src/main/java/de/staropensource/sosengine/base/data/placeholders/EngineVersionTyperelease.java b/base/src/main/java/de/staropensource/sosengine/base/data/placeholders/EngineVersionTyperelease.java index 1867620..fb4c360 100644 --- a/base/src/main/java/de/staropensource/sosengine/base/data/placeholders/EngineVersionTyperelease.java +++ b/base/src/main/java/de/staropensource/sosengine/base/data/placeholders/EngineVersionTyperelease.java @@ -20,7 +20,7 @@ package de.staropensource.sosengine.base.data.placeholders; import de.staropensource.sosengine.base.classes.Placeholder; -import de.staropensource.sosengine.base.data.info.BuildInfo; +import de.staropensource.sosengine.base.data.info.EngineInformation; import org.jetbrains.annotations.NotNull; /** @@ -48,6 +48,6 @@ public class EngineVersionTyperelease implements Placeholder { @NotNull @Override public String replace(@NotNull String text) { - return text.replace("%" + getName() + "%", String.valueOf(BuildInfo.getInstance().getVersioningTyperelease())); + return text.replace("%" + getName() + "%", String.valueOf(EngineInformation.getInstance().getVersioningTyperelease())); } } diff --git a/base/src/main/java/de/staropensource/sosengine/base/data/placeholders/EngineVersionVersion.java b/base/src/main/java/de/staropensource/sosengine/base/data/placeholders/EngineVersionVersion.java index 7c07eba..e1b8a14 100644 --- a/base/src/main/java/de/staropensource/sosengine/base/data/placeholders/EngineVersionVersion.java +++ b/base/src/main/java/de/staropensource/sosengine/base/data/placeholders/EngineVersionVersion.java @@ -20,7 +20,7 @@ package de.staropensource.sosengine.base.data.placeholders; import de.staropensource.sosengine.base.classes.Placeholder; -import de.staropensource.sosengine.base.data.info.BuildInfo; +import de.staropensource.sosengine.base.data.info.EngineInformation; import org.jetbrains.annotations.NotNull; /** @@ -48,6 +48,6 @@ public class EngineVersionVersion implements Placeholder { @NotNull @Override public String replace(@NotNull String text) { - return text.replace("%" + getName() + "%", String.valueOf(BuildInfo.getInstance().getVersioningVersion())); + return text.replace("%" + getName() + "%", String.valueOf(EngineInformation.getInstance().getVersioningVersion())); } } diff --git a/base/src/main/java/de/staropensource/sosengine/base/types/VersionType.java b/base/src/main/java/de/staropensource/sosengine/base/types/VersionType.java index e75e37a..1a2deb4 100644 --- a/base/src/main/java/de/staropensource/sosengine/base/types/VersionType.java +++ b/base/src/main/java/de/staropensource/sosengine/base/types/VersionType.java @@ -19,12 +19,12 @@ package de.staropensource.sosengine.base.types; -import de.staropensource.sosengine.base.data.info.BuildInfo; +import de.staropensource.sosengine.base.data.info.EngineInformation; /** * Provides all available version types. * - * @see BuildInfo#versioningType + * @see EngineInformation#versioningType * @since 1-alpha0 */ @SuppressWarnings({ "unused" })