Skip to content

Commit

Permalink
Remove redundant parameter from configuration Builder constructor
Browse files Browse the repository at this point in the history
  • Loading branch information
mziccard committed Apr 6, 2016
1 parent 094c3b3 commit 1fb53fa
Show file tree
Hide file tree
Showing 7 changed files with 9 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -76,8 +76,8 @@ public abstract static class Builder<T extends DiskConfiguration, B extends Buil
this.type = type;
}

Builder(Type type, DiskConfiguration diskConfiguration) {
this.type = type;
Builder(DiskConfiguration diskConfiguration) {
this.type = diskConfiguration.type;
this.sizeGb = diskConfiguration.sizeGb;
this.diskType = diskConfiguration.diskType;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ private Builder() {
}

private Builder(DiskImageConfiguration imageConfiguration) {
super(Type.DISK, imageConfiguration);
super(imageConfiguration);
this.sourceDisk = imageConfiguration.sourceDisk;
this.sourceDiskId = imageConfiguration.sourceDiskId;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -73,8 +73,8 @@ public abstract static class Builder<T extends ImageConfiguration, B extends Bui
this.type = type;
}

Builder(Type type, ImageConfiguration imageConfiguration) {
this.type = type;
Builder(ImageConfiguration imageConfiguration) {
this.type = imageConfiguration.type;
this.sourceType = imageConfiguration.sourceType;
this.archiveSizeBytes = imageConfiguration.archiveSizeBytes;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ private Builder() {
}

private Builder(ImageDiskConfiguration configuration) {
super(Type.IMAGE, configuration);
super(configuration);
this.sourceImage = configuration.sourceImage;
this.sourceImageId = configuration.sourceImageId;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ private Builder() {
}

private Builder(SnapshotDiskConfiguration configuration) {
super(Type.SNAPSHOT, configuration);
super(configuration);
this.sourceSnapshot = configuration.sourceSnapshot;
this.sourceSnapshotId = configuration.sourceSnapshotId;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ private Builder() {
}

private Builder(StandardDiskConfiguration configuration) {
super(Type.STANDARD, configuration);
super(configuration);
}

private Builder(Disk diskPb) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ private Builder() {
}

private Builder(StorageImageConfiguration imageConfiguration) {
super(Type.STORAGE, imageConfiguration);
super(imageConfiguration);
this.containerType = imageConfiguration.containerType;
this.sha1 = imageConfiguration.sha1;
this.source = imageConfiguration.source;
Expand Down

0 comments on commit 1fb53fa

Please sign in to comment.