diff --git a/jkube-kit/enricher/specific/src/main/java/org/eclipse/jkube/kit/enricher/specific/KarafHealthCheckEnricher.java b/jkube-kit/enricher/specific/src/main/java/org/eclipse/jkube/kit/enricher/specific/KarafHealthCheckEnricher.java index f931e9587b..886dd3dd13 100644 --- a/jkube-kit/enricher/specific/src/main/java/org/eclipse/jkube/kit/enricher/specific/KarafHealthCheckEnricher.java +++ b/jkube-kit/enricher/specific/src/main/java/org/eclipse/jkube/kit/enricher/specific/KarafHealthCheckEnricher.java @@ -76,7 +76,7 @@ private Probe discoverKarafProbe(String path, int initialDelay) { Object startupFeatures = lookup.get(); if (!(startupFeatures instanceof Map)) { throw new IllegalArgumentException(String.format("For element %s was expected a complex object but a simple object was found of type %s and value %s", - "startupFeatures", startupFeatures.getClass(), startupFeatures.toString())); + "startupFeatures", startupFeatures.getClass(), startupFeatures)); } final Map startUpFeaturesObject = (Map) startupFeatures;