Code Review
/
policy
/
engine.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
|
inline
| side by side
Fixed the Sonar technical debt.
[policy/engine.git]
/
ONAP-REST
/
src
/
main
/
java
/
org
/
onap
/
policy
/
rest
/
adapter
/
Term.java
diff --git
a/ONAP-REST/src/main/java/org/onap/policy/rest/adapter/Term.java
b/ONAP-REST/src/main/java/org/onap/policy/rest/adapter/Term.java
index
7188e35
..
d709f0d
100644
(file)
--- a/
ONAP-REST/src/main/java/org/onap/policy/rest/adapter/Term.java
+++ b/
ONAP-REST/src/main/java/org/onap/policy/rest/adapter/Term.java
@@
-67,7
+67,7
@@
public class Term {
public List<String> getFromZones() {
if (fromZones==null)
{
public List<String> getFromZones() {
if (fromZones==null)
{
- fromZones= new ArrayList<
String
>();
+ fromZones= new ArrayList<>();
}
return fromZones;
}
}
return fromZones;
}
@@
-80,7
+80,7
@@
public class Term {
public List<String> getToZones() {
if (toZones==null)
{
public List<String> getToZones() {
if (toZones==null)
{
- toZones= new ArrayList<
String
>();
+ toZones= new ArrayList<>();
}
return toZones;
}
}
return toZones;
}
@@
-113,7
+113,7
@@
public class Term {
{
if(sourceList==null)
{
{
if(sourceList==null)
{
- sourceList= new ArrayList<
AddressJson
>();
+ sourceList= new ArrayList<>();
}
return this.sourceList;
}
}
return this.sourceList;
}
@@
-127,7
+127,7
@@
public class Term {
{
if(destinationList==null)
{
{
if(destinationList==null)
{
- destinationList= new ArrayList<
AddressJson
>();
+ destinationList= new ArrayList<>();
}
return this.destinationList;
}
}
return this.destinationList;
}
@@
-140,7
+140,7
@@
public class Term {
public List<ServicesJson> getSourceServices() {
if(sourceServices==null)
{
public List<ServicesJson> getSourceServices() {
if(sourceServices==null)
{
- sourceServices= new ArrayList<
ServicesJson
>();
+ sourceServices= new ArrayList<>();
}
return this.sourceServices;
}
}
return this.sourceServices;
}
@@
-153,7
+153,7
@@
public class Term {
public Set<ServicesJson> getDestServices() {
if(destServices==null)
{
public Set<ServicesJson> getDestServices() {
if(destServices==null)
{
- destServices= new HashSet<
ServicesJson
>();
+ destServices= new HashSet<>();
}
return this.destServices;
}
}
return this.destServices;
}