Skip to content

Commit

Permalink
removed unused constructor, fixed warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
damianopezzotti committed Dec 28, 2015
1 parent f33a2ac commit 8a35fb6
Show file tree
Hide file tree
Showing 4 changed files with 2 additions and 14 deletions.
3 changes: 0 additions & 3 deletions src/main/java/com/spotify/docker/client/messages/Network.java
Original file line number Diff line number Diff line change
Expand Up @@ -77,9 +77,6 @@ public String ipv6address() {
@JsonProperty("Options")
private Map<String, String> options;

private Network() {
}

public String name() {
return name;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -44,9 +44,6 @@ public class NetworkConfig {
@JsonProperty("CheckDuplicate")
private boolean checkDuplicate;

private NetworkConfig() {
}

private NetworkConfig(final Builder builder) {
this.name = builder.name;
this.options = builder.options;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,10 +31,7 @@
public class NetworkCreation {

@JsonProperty("Id") private String id;
@JsonProperty("Warnings") private ImmutableList<String> warnings;

public NetworkCreation() {
}
@JsonProperty("Warnings") private String warnings;

public NetworkCreation(final String id) {
this.id = id;
Expand All @@ -44,7 +41,7 @@ public String id() {
return id;
}

public List<String> getWarnings() {
public String getWarnings() {
return warnings;
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -37,9 +37,6 @@ public class NetworkSettings {
@JsonProperty("Ports") private Map<String, List<PortBinding>> ports;
@JsonProperty("MacAddress") private String macAddress;

private NetworkSettings() {
}

private NetworkSettings(final Builder builder) {
this.ipAddress = builder.ipAddress;
this.ipPrefixLen = builder.ipPrefixLen;
Expand Down

0 comments on commit 8a35fb6

Please sign in to comment.