diff --git a/rre-core/src/main/java/io/sease/rre/core/domain/metrics/MetricClassConfigurationManager.java b/rre-core/src/main/java/io/sease/rre/core/domain/metrics/MetricClassConfigurationManager.java index ac518f4d..d4a4f270 100644 --- a/rre-core/src/main/java/io/sease/rre/core/domain/metrics/MetricClassConfigurationManager.java +++ b/rre-core/src/main/java/io/sease/rre/core/domain/metrics/MetricClassConfigurationManager.java @@ -12,20 +12,13 @@ */ public class MetricClassConfigurationManager { - private static MetricClassConfigurationManager instance; + private static MetricClassConfigurationManager INSTANCE = new MetricClassConfigurationManager(); private BigDecimal defaultMaximumGrade = BigDecimal.valueOf(3); private BigDecimal defaultMissingGrade = BigDecimal.valueOf(2); - private MetricClassConfigurationManager() { - // Private constructor - } - public static MetricClassConfigurationManager getInstance() { - if (instance == null) { - instance = new MetricClassConfigurationManager(); - } - return instance; + return INSTANCE; } /**