Better fix for without streams
*/
package io.micronaut.starter.feature.micrometer;
-import io.micronaut.core.naming.NameUtils;
-import io.micronaut.core.util.StringUtils;
import io.micronaut.starter.application.ApplicationType;
import io.micronaut.starter.feature.Category;
import io.micronaut.starter.feature.Feature;
import io.micronaut.starter.feature.FeatureContext;
import io.micronaut.starter.feature.other.Management;
-
-import java.util.Arrays;
-import java.util.stream.Collectors;
+import io.micronaut.starter.util.NameUtils;
public abstract class MicrometerFeature implements Feature {
@@ -60,6 +56,6 @@ public abstract class MicrometerFeature implements Feature {
@Override
public String getTitle() {
- return Arrays.stream(StringUtils.tokenizeToStringArray(getName(), "-")).map(NameUtils::capitalize).collect(Collectors.joining(" "));
+ return NameUtils.getNaturalName(io.micronaut.core.naming.NameUtils.dehyphenate(getName()));
}
}
