DockerComposeConfiguration : Use Map.getOrDefault
instead of conditional statement
#1814
Labels
Map.getOrDefault
instead of conditional statement
#1814
Description
In DockerComposeConfiguration constructor, this code is using ternary operator to assign default values. We should use JDK's inbuilt
getOrDefault
method that's available on Map interfacedocker-maven-plugin/src/main/java/io/fabric8/maven/docker/config/handler/compose/DockerComposeConfiguration.java
Lines 11 to 13 in 99c52cb
The text was updated successfully, but these errors were encountered: