diff --git a/framework/base/src/main/java/org/apache/ofbiz/base/metrics/MetricsFactory.java b/framework/base/src/main/java/org/apache/ofbiz/base/metrics/MetricsFactory.java index 3321be155d..2f52768300 100644 --- a/framework/base/src/main/java/org/apache/ofbiz/base/metrics/MetricsFactory.java +++ b/framework/base/src/main/java/org/apache/ofbiz/base/metrics/MetricsFactory.java @@ -5,9 +5,9 @@ * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. @@ -83,7 +83,7 @@ public final class MetricsFactory { *
Metrics instance
* @return A Metrics instance based on element attributes
* @throws IllegalArgumentException if element is null or if the name attribute is empty
@@ -95,7 +95,7 @@ public final class MetricsFactory {
Assert.notEmpty("name attribute", name);
Metrics result = METRICS_CACHE.get(name);
if (result == null) {
- int estimationSize = UtilProperties.getPropertyAsInteger("serverstats", "metrics.estimation.size", 100);
+ int estimationSize = UtilProperties.getPropertyAsInteger("serverstats", "metrics.estimation.size", 100);
String attributeValue = element.getAttribute("estimation-size");
if (!attributeValue.isEmpty()) {
estimationSize = Integer.parseInt(attributeValue);