Re-arrange methods to make diff easier to read
@@ -263,9 +263,17 @@ public abstract class ContainerConfig {
abstract ImmutableSet.Builder<String> volumesBuilder();
- public abstract Builder volumes(final Set<String> volumes);
+ public Builder addVolume(final String volume) {
+ volumesBuilder().add(volume);
+ return this;
+ }
- public abstract Builder volumes(final String... volumes);
+ public Builder addVolumes(final String... volumes) {
+ for (final String volume : volumes) {
+ volumesBuilder().add(volume);
+ }
+ return this;
+ }
/**
* @deprecated As of 8.10.0, use {@link #volumes(Set)} or
@@ -277,17 +285,9 @@ public abstract class ContainerConfig {
return this;
}
- public Builder addVolume(final String volume) {
- volumesBuilder().add(volume);
- return this;
- }
+ public abstract Builder volumes(final Set<String> volumes);
- public Builder addVolumes(final String... volumes) {
- for (final String volume : volumes) {
- volumesBuilder().add(volume);
- }
- return this;
- }
+ public abstract Builder volumes(final String... volumes);
public abstract Builder workingDir(final String workingDir);
