From 61ba2c6f5bd6592518d8d10f220c118710371d5d Mon Sep 17 00:00:00 2001 From: Michael Brohl Date: Mon, 18 Dec 2017 09:20:22 +0000 Subject: [PATCH] Improved: General refactoring and code improvements, package org.apache.ofbiz.base.metrics. (OFBIZ-9936) Thanks Dennis Balkir for reporting and providing the patch. git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1818536 13f79535-47bb-0310-9956-ffa450edef68 --- .../org/apache/ofbiz/base/metrics/MetricsFactory.java | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) 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 { * The metric threshold. The meaning of the threshold is determined by client code. * Defaults to "0.0". * - * + * * @param element The element whose attributes will be used to create the 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);