From 97dcc5263bd9539578fe21082c278baa02bb2323 Mon Sep 17 00:00:00 2001 From: JeremyStarTM Date: Tue, 16 Jul 2024 14:51:21 +0200 Subject: [PATCH] Optimize DependencySubsystemVector --- .../internal/types/DependencySubsystemVector.java | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) diff --git a/base/src/main/java/de/staropensource/sosengine/base/internal/types/DependencySubsystemVector.java b/base/src/main/java/de/staropensource/sosengine/base/internal/types/DependencySubsystemVector.java index 1d06b39..752915f 100644 --- a/base/src/main/java/de/staropensource/sosengine/base/internal/types/DependencySubsystemVector.java +++ b/base/src/main/java/de/staropensource/sosengine/base/internal/types/DependencySubsystemVector.java @@ -58,36 +58,34 @@ public class DependencySubsystemVector extends DependencyVector { * @since v1-alpha1 */ public DependencySubsystemVector(@NotNull DependencyVector vector, @NotNull SubsystemMainClass mainClass) { - super(vector.getIdentifier(), vector.getVersioningSystem(), vector.getVersion(), vector.getDependencies()); + super(mainClass.getName(), vector.getVersioningSystem(), vector.getVersion(), vector.getDependencies()); this.mainClass = mainClass; } /** * Creates a new dependency vector. * - * @param identifier identifier * @param versioningSystem versioning system to use * @param version version * @param dependencies dependencies in the usual format ({@code dependencyA}, {@code dependencyB=5.1}, {@code dependencyC>3.1}, {@code dependencyD<6.1}) * @param mainClass {@link SubsystemMainClass} to associate * @since v1-alpha1 */ - public DependencySubsystemVector(@NotNull String identifier, @NotNull Class versioningSystem, @NotNull String version, @NotNull List<@NotNull String> dependencies, @NotNull SubsystemMainClass mainClass) { - super(identifier, versioningSystem, version, dependencies); + public DependencySubsystemVector(@NotNull Class versioningSystem, @NotNull String version, @NotNull List<@NotNull String> dependencies, @NotNull SubsystemMainClass mainClass) { + super(mainClass.getName(), versioningSystem, version, dependencies); this.mainClass = mainClass; } /** * Creates a new dependency vector. * - * @param identifier identifier * @param versioningSystem versioning system to use * @param version version * @param mainClass {@link SubsystemMainClass} to associate * @since v1-alpha1 */ - public DependencySubsystemVector(@NotNull String identifier, @NotNull Class versioningSystem, @NotNull String version, @NotNull SubsystemMainClass mainClass) { - super(identifier, versioningSystem, version); + public DependencySubsystemVector(@NotNull Class versioningSystem, @NotNull String version, @NotNull SubsystemMainClass mainClass) { + super(mainClass.getName(), versioningSystem, version); this.mainClass = mainClass; } }