Skip to content

Commit

Permalink
Use Java 11 construct for creating Map
Browse files Browse the repository at this point in the history
  • Loading branch information
geoand committed Jul 26, 2022
1 parent be83da6 commit c712bf1
Showing 1 changed file with 6 additions and 9 deletions.
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
package io.quarkus.container.image.deployment;

import java.util.HashMap;
import java.util.HashSet;
import java.util.Map;
import java.util.Optional;
Expand All @@ -11,14 +10,12 @@

public final class ContainerImageCapabilitiesUtil {

public final static Map<String, String> CAPABILITY_TO_EXTENSION_NAME = new HashMap<>();
static {
CAPABILITY_TO_EXTENSION_NAME.put(Capability.CONTAINER_IMAGE_JIB, "quarkus-container-image-jib");
CAPABILITY_TO_EXTENSION_NAME.put(Capability.CONTAINER_IMAGE_DOCKER, "quarkus-container-image-docker");
CAPABILITY_TO_EXTENSION_NAME.put(Capability.CONTAINER_IMAGE_S2I, "quarkus-container-image-s2i");
CAPABILITY_TO_EXTENSION_NAME.put(Capability.CONTAINER_IMAGE_OPENSHIFT, "quarkus-container-image-openshift");
CAPABILITY_TO_EXTENSION_NAME.put(Capability.CONTAINER_IMAGE_BUILDPACK, "quarkus-container-image-buildpack");
}
public final static Map<String, String> CAPABILITY_TO_EXTENSION_NAME = Map.of(
Capability.CONTAINER_IMAGE_JIB, "quarkus-container-image-jib",
Capability.CONTAINER_IMAGE_DOCKER, "quarkus-container-image-docker",
Capability.CONTAINER_IMAGE_S2I, "quarkus-container-image-s2i",
Capability.CONTAINER_IMAGE_OPENSHIFT, "quarkus-container-image-openshift",
Capability.CONTAINER_IMAGE_BUILDPACK, "quarkus-container-image-buildpack");

private ContainerImageCapabilitiesUtil() {
}
Expand Down

0 comments on commit c712bf1

Please sign in to comment.