Skip to content

Commit ee1b8cf

Browse files
committed
Remove "Stats" from "networks" field in statistics
1 parent ef03027 commit ee1b8cf

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

src/main/java/com/github/dockerjava/api/model/Statistics.java

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -23,10 +23,10 @@ public class Statistics {
2323
*/
2424
@CheckForNull
2525
@JsonProperty("networks")
26-
private Map<String, Object> networksStats;
26+
private Map<String, Object> networks;
2727

2828
/**
29-
* @deprecated as of Docker Remote API 1.21, replaced by {@link #networksStats}
29+
* @deprecated as of Docker Remote API 1.21, replaced by {@link #networks}
3030
*/
3131
@Deprecated
3232
@JsonProperty("network")
@@ -45,12 +45,12 @@ public class Statistics {
4545
* @since Docker Remote API 1.21
4646
*/
4747
@CheckForNull
48-
public Map<String, Object> getNetworksStats() {
49-
return networksStats;
48+
public Map<String, Object> getNetworks() {
49+
return networks;
5050
}
5151

5252
/**
53-
* @deprecated as of Docker Remote API 1.21, replaced by {@link #getNetworksStats()}
53+
* @deprecated as of Docker Remote API 1.21, replaced by {@link #getNetworks()}
5454
*/
5555
@Deprecated
5656
public Map<String, Object> getNetworkStats() {

0 commit comments

Comments
 (0)