Optimize DependencySubsystemVector
This commit is contained in:
parent
8470d37f37
commit
97dcc5263b
1 changed files with 5 additions and 7 deletions
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue