aboutsummaryrefslogtreecommitdiffstats
path: root/model/src/main/java/org
diff options
context:
space:
mode:
authorramverma <ram.krishna.verma@ericsson.com>2018-09-13 21:29:44 +0100
committerramverma <ram.krishna.verma@ericsson.com>2018-09-13 23:59:18 +0100
commit4b045ef40ee55394cc0a352c5460573e64be531b (patch)
tree97ace236daf21243a6bc64a93ce98436080c0ea7 /model/src/main/java/org
parente80efa0dbe903e976f5b2799144658c7ba02e534 (diff)
Fix all sonar issues in distribution
Change-Id: I93c77f929217c185c422fc8f16e9ac2fefe0fd42 Issue-ID: POLICY-1035 Signed-off-by: ramverma <ram.krishna.verma@ericsson.com>
Diffstat (limited to 'model/src/main/java/org')
-rw-r--r--model/src/main/java/org/onap/policy/distribution/model/OptimizationPolicy.java29
1 files changed, 15 insertions, 14 deletions
diff --git a/model/src/main/java/org/onap/policy/distribution/model/OptimizationPolicy.java b/model/src/main/java/org/onap/policy/distribution/model/OptimizationPolicy.java
index 797ea4b9..971077cc 100644
--- a/model/src/main/java/org/onap/policy/distribution/model/OptimizationPolicy.java
+++ b/model/src/main/java/org/onap/policy/distribution/model/OptimizationPolicy.java
@@ -5,24 +5,25 @@
* Licensed 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.
* See the License for the specific language governing permissions and
* limitations under the License.
- *
+ *
* SPDX-License-Identifier: Apache-2.0
* ============LICENSE_END=========================================================
*/
+
package org.onap.policy.distribution.model;
import java.util.Date;
/**
- * An optimization policy
+ * An optimization policy.
*/
public class OptimizationPolicy implements Policy {
@@ -48,7 +49,7 @@ public class OptimizationPolicy implements Policy {
return OPTIMIZATION;
}
- public void setPolicyName(String policyName) {
+ public void setPolicyName(final String policyName) {
this.policyName = policyName;
}
@@ -56,7 +57,7 @@ public class OptimizationPolicy implements Policy {
return policyDescription;
}
- public void setPolicyDescription(String policyDescription) {
+ public void setPolicyDescription(final String policyDescription) {
this.policyDescription = policyDescription;
}
@@ -64,7 +65,7 @@ public class OptimizationPolicy implements Policy {
return policyConfigType;
}
- public void setPolicyConfigType(String policyConfigType) {
+ public void setPolicyConfigType(final String policyConfigType) {
this.policyConfigType = policyConfigType;
}
@@ -72,7 +73,7 @@ public class OptimizationPolicy implements Policy {
return onapName;
}
- public void setOnapName(String onapName) {
+ public void setOnapName(final String onapName) {
this.onapName = onapName;
}
@@ -80,7 +81,7 @@ public class OptimizationPolicy implements Policy {
return configBody;
}
- public void setConfigBody(String configBody) {
+ public void setConfigBody(final String configBody) {
this.configBody = configBody;
}
@@ -88,7 +89,7 @@ public class OptimizationPolicy implements Policy {
return configBodyType;
}
- public void setConfigBodyType(String configBodyType) {
+ public void setConfigBodyType(final String configBodyType) {
this.configBodyType = configBodyType;
}
@@ -96,7 +97,7 @@ public class OptimizationPolicy implements Policy {
return timetolive;
}
- public void setTimetolive(Date timetolive) {
+ public void setTimetolive(final Date timetolive) {
this.timetolive = timetolive;
}
@@ -104,7 +105,7 @@ public class OptimizationPolicy implements Policy {
return guard;
}
- public void setGuard(String guard) {
+ public void setGuard(final String guard) {
this.guard = guard;
}
@@ -112,7 +113,7 @@ public class OptimizationPolicy implements Policy {
return riskLevel;
}
- public void setRiskLevel(String riskLevel) {
+ public void setRiskLevel(final String riskLevel) {
this.riskLevel = riskLevel;
}
@@ -120,7 +121,7 @@ public class OptimizationPolicy implements Policy {
return riskType;
}
- public void setRiskType(String riskType) {
+ public void setRiskType(final String riskType) {
this.riskType = riskType;
}
}