GeezerVison is showing github.com — Use Java 8 features (#1250) · orzeh/docker-java@89cdae2
File treeExpand file treeCollapse file tree Open diff view settings docker-java-api/src/main/java/com/github/dockerjava/api/model test/java/com/github/dockerjava
Some content is hiddenLarge Commits have some content hidden by default. Use the searchbox below for content that may be hidden. Dismiss bannerExpand file treeCollapse file tree Open diff view settings Collapse file Copy file name to clipboardExpand all lines: docker-java-api/src/main/java/com/github/dockerjava/api/model/Binds.java +1-1Lines changed: 1 addition & 1 deletion | Original file line number | Diff line number | Diff line change |
|---|
@@ -55,7 +55,7 @@ public static class Deserializer extends JsonDeserializer<Binds> { | 55 | 55 | public Binds deserialize(JsonParser jsonParser, DeserializationContext deserializationContext) | 56 | 56 | throws IOException, JsonProcessingException { | 57 | 57 |
| 58 | | - List<Bind> binds = new ArrayList<Bind>(); | | 58 | + List<Bind> binds = new ArrayList<>(); | 59 | 59 | ObjectCodec oc = jsonParser.getCodec(); | 60 | 60 | JsonNode node = oc.readTree(jsonParser); | 61 | 61 | for (Iterator<JsonNode> it = node.elements(); it.hasNext();) { | |
Collapse file Copy file name to clipboardExpand all lines: docker-java-api/src/main/java/com/github/dockerjava/api/model/ExposedPorts.java +1-1Lines changed: 1 addition & 1 deletion | Original file line number | Diff line number | Diff line change |
|---|
@@ -61,7 +61,7 @@ public static class Deserializer extends JsonDeserializer<ExposedPorts> { | 61 | 61 | public ExposedPorts deserialize(JsonParser jsonParser, DeserializationContext deserializationContext) | 62 | 62 | throws IOException, JsonProcessingException { | 63 | 63 |
| 64 | | - List<ExposedPort> exposedPorts = new ArrayList<ExposedPort>(); | | 64 | + List<ExposedPort> exposedPorts = new ArrayList<>(); | 65 | 65 | ObjectCodec oc = jsonParser.getCodec(); | 66 | 66 | JsonNode node = oc.readTree(jsonParser); | 67 | 67 | for (Iterator<Map.Entry<String, JsonNode>> it = node.fields(); it.hasNext();) { | |
Collapse file Copy file name to clipboardExpand all lines: docker-java-api/src/main/java/com/github/dockerjava/api/model/Links.java +1-1Lines changed: 1 addition & 1 deletion | Original file line number | Diff line number | Diff line change |
|---|
@@ -57,7 +57,7 @@ public static class Deserializer extends JsonDeserializer<Links> { | 57 | 57 | @Override | 58 | 58 | public Links deserialize(final JsonParser jsonParser, final DeserializationContext deserializationContext) | 59 | 59 | throws IOException, JsonProcessingException { | 60 | | - final List<Link> binds = new ArrayList<Link>(); | | 60 | + final List<Link> binds = new ArrayList<>(); | 61 | 61 | final ObjectCodec oc = jsonParser.getCodec(); | 62 | 62 | final JsonNode node = oc.readTree(jsonParser); | 63 | 63 | for (final Iterator<JsonNode> it = node.elements(); it.hasNext();) { | |
Collapse file Copy file name to clipboardExpand all lines: docker-java-api/src/main/java/com/github/dockerjava/api/model/Ports.java +1-1Lines changed: 1 addition & 1 deletion | Original file line number | Diff line number | Diff line change |
|---|
| 39 | 39 | public class Ports implements Serializable { | 40 | 40 | private static final long serialVersionUID = 1L; | 41 | 41 |
| 42 | | - private final Map<ExposedPort, Binding[]> ports = new HashMap<ExposedPort, Binding[]>(); | | 42 | + private final Map<ExposedPort, Binding[]> ports = new HashMap<>(); | 43 | 43 |
| 44 | 44 | /** | 45 | 45 | * Creates a {@link Ports} object with no {@link PortBinding}s. Use {@link #bind(ExposedPort, Binding)} or {@link #add(PortBinding...)} | |
Collapse file Copy file name to clipboardExpand all lines: docker-java-api/src/main/java/com/github/dockerjava/api/model/VolumeBinds.java +1-1Lines changed: 1 addition & 1 deletion | Original file line number | Diff line number | Diff line change |
|---|
@@ -54,7 +54,7 @@ public static final class Deserializer extends JsonDeserializer<VolumeBinds> { | 54 | 54 | public VolumeBinds deserialize(JsonParser jsonParser, DeserializationContext deserializationContext) | 55 | 55 | throws IOException, JsonProcessingException { | 56 | 56 |
| 57 | | - List<VolumeBind> binds = new ArrayList<VolumeBind>(); | | 57 | + List<VolumeBind> binds = new ArrayList<>(); | 58 | 58 | ObjectCodec oc = jsonParser.getCodec(); | 59 | 59 | JsonNode node = oc.readTree(jsonParser); | 60 | 60 | for (Iterator<Map.Entry<String, JsonNode>> it = node.fields(); it.hasNext();) { | |
Collapse file Copy file name to clipboardExpand all lines: docker-java-api/src/main/java/com/github/dockerjava/api/model/Volumes.java +1-1Lines changed: 1 addition & 1 deletion | Original file line number | Diff line number | Diff line change |
|---|
@@ -61,7 +61,7 @@ public static class Deserializer extends JsonDeserializer<Volumes> { | 61 | 61 | public Volumes deserialize(JsonParser jsonParser, DeserializationContext deserializationContext) | 62 | 62 | throws IOException, JsonProcessingException { | 63 | 63 |
| 64 | | - List<Volume> volumes = new ArrayList<Volume>(); | | 64 | + List<Volume> volumes = new ArrayList<>(); | 65 | 65 | ObjectCodec oc = jsonParser.getCodec(); | 66 | 66 | JsonNode node = oc.readTree(jsonParser); | 67 | 67 | for (Iterator<Map.Entry<String, JsonNode>> it = node.fields(); it.hasNext();) { | |
Collapse file Copy file name to clipboardExpand all lines: docker-java-api/src/main/java/com/github/dockerjava/api/model/VolumesRW.java +1-1Lines changed: 1 addition & 1 deletion | Original file line number | Diff line number | Diff line change |
|---|
@@ -55,7 +55,7 @@ public static final class Deserializer extends JsonDeserializer<VolumesRW> { | 55 | 55 | public VolumesRW deserialize(JsonParser jsonParser, DeserializationContext deserializationContext) | 56 | 56 | throws IOException, JsonProcessingException { | 57 | 57 |
| 58 | | - List<VolumeRW> volumesRW = new ArrayList<VolumeRW>(); | | 58 | + List<VolumeRW> volumesRW = new ArrayList<>(); | 59 | 59 | ObjectCodec oc = jsonParser.getCodec(); | 60 | 60 | JsonNode node = oc.readTree(jsonParser); | 61 | 61 |
| |
Collapse file Copy file name to clipboardExpand all lines: docker-java/src/main/java/com/github/dockerjava/core/DefaultDockerClientConfig.java +1-1Lines changed: 1 addition & 1 deletion | Original file line number | Diff line number | Diff line change |
|---|
@@ -54,7 +54,7 @@ public class DefaultDockerClientConfig implements Serializable, DockerClientConf | 54 | 54 |
| 55 | 55 | private static final String DOCKER_JAVA_PROPERTIES = "docker-java.properties"; | 56 | 56 |
| 57 | | - private static final Set<String> CONFIG_KEYS = new HashSet<String>(); | | 57 | + private static final Set<String> CONFIG_KEYS = new HashSet<>(); | 58 | 58 |
| 59 | 59 | static { | 60 | 60 | CONFIG_KEYS.add(DOCKER_HOST); | |
Collapse file Copy file name to clipboardExpand all lines: docker-java/src/main/java/com/github/dockerjava/core/DockerConfigFile.java +1-1Lines changed: 1 addition & 1 deletion | Original file line number | Diff line number | Diff line change |
|---|
@@ -33,7 +33,7 @@ public class DockerConfigFile { | 33 | 33 | private final Map<String, AuthConfig> auths; | 34 | 34 |
| 35 | 35 | public DockerConfigFile() { | 36 | | - this(new HashMap<String, AuthConfig>()); | | 36 | + this(new HashMap<>()); | 37 | 37 | } | 38 | 38 |
| 39 | 39 | private DockerConfigFile(Map<String, AuthConfig> authConfigMap) { | |
Collapse file Copy file name to clipboardExpand all lines: docker-java/src/main/java/com/github/dockerjava/core/GoLangFileMatch.java +1-1Lines changed: 1 addition & 1 deletion | Original file line number | Diff line number | Diff line change |
|---|
@@ -64,7 +64,7 @@ public static boolean match(String pattern, File file) { | 64 | 64 | * Returns the matching patterns for the given string | 65 | 65 | */ | 66 | 66 | public static List<String> match(List<String> patterns, String name) { | 67 | | - List<String> matches = new ArrayList<String>(); | | 67 | + List<String> matches = new ArrayList<>(); | 68 | 68 | for (String pattern : patterns) { | 69 | 69 | if (match(pattern, name)) { | 70 | 70 | matches.add(pattern); | |
|