Optimize DependencySubsystemVector

This commit is contained in:
JeremyStar™ 2024-07-16 14:51:21 +02:00
parent 8470d37f37
commit 97dcc5263b
Signed by: JeremyStarTM
GPG key ID: E366BAEF67E4704D

View file

@ -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<? extends VersioningSystem> versioningSystem, @NotNull String version, @NotNull List<@NotNull String> dependencies, @NotNull SubsystemMainClass mainClass) {
super(identifier, versioningSystem, version, dependencies);
public DependencySubsystemVector(@NotNull Class<? extends VersioningSystem> 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<? extends VersioningSystem> versioningSystem, @NotNull String version, @NotNull SubsystemMainClass mainClass) {
super(identifier, versioningSystem, version);
public DependencySubsystemVector(@NotNull Class<? extends VersioningSystem> versioningSystem, @NotNull String version, @NotNull SubsystemMainClass mainClass) {
super(mainClass.getName(), versioningSystem, version);
this.mainClass = mainClass;
}
}