diff options
author | 2018-02-06 12:42:50 -0500 | |
---|---|---|
committer | 2018-02-06 14:48:13 -0500 | |
commit | cd417e811577a3efd26a57c3cad3a48d42d9e2d6 (patch) | |
tree | 3402444b5b17585db5d8e8f3bad5748168b272d3 /ONAP-XACML/src/main/java/org/onap/policy/xacml/util/MetricsUtil.java | |
parent | 549cafbb3b5b5c9298e8c7371835f5c58633349f (diff) |
Continue addressing technical debt for ONAP-XACML
Fix all sonar issues that do not require code refactoring
Issue-ID: POLICY-475
Change-Id: Iefa91e0048b7041c96d47bce7ec99034d6fcc427
Signed-off-by: Gao, Chenfei (cg287m) <cgao@research.att.com>
Diffstat (limited to 'ONAP-XACML/src/main/java/org/onap/policy/xacml/util/MetricsUtil.java')
-rw-r--r-- | ONAP-XACML/src/main/java/org/onap/policy/xacml/util/MetricsUtil.java | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/ONAP-XACML/src/main/java/org/onap/policy/xacml/util/MetricsUtil.java b/ONAP-XACML/src/main/java/org/onap/policy/xacml/util/MetricsUtil.java index fd8b3c6c0..58f5a49e1 100644 --- a/ONAP-XACML/src/main/java/org/onap/policy/xacml/util/MetricsUtil.java +++ b/ONAP-XACML/src/main/java/org/onap/policy/xacml/util/MetricsUtil.java @@ -2,7 +2,7 @@ * ============LICENSE_START======================================================= * ONAP-XACML * ================================================================================ - * Copyright (C) 2017 AT&T Intellectual Property. All rights reserved. + * Copyright (C) 2017-2018 AT&T Intellectual Property. All rights reserved. * ================================================================================ * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -21,6 +21,12 @@ package org.onap.policy.xacml.util; public class MetricsUtil { + private MetricsUtil() { + // + // private constructor to hide the implicit public one for utility class + // + } + public static class AvgLatency { private long cumLatency = 0; private long count = 0; |