Code Review
/
nonrtric.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
|
inline
| side by side
Remove code smell and bug
[nonrtric.git]
/
policy-agent
/
src
/
main
/
java
/
org
/
oransc
/
policyagent
/
repository
/
PolicyTypes.java
diff --git
a/policy-agent/src/main/java/org/oransc/policyagent/repository/PolicyTypes.java
b/policy-agent/src/main/java/org/oransc/policyagent/repository/PolicyTypes.java
index
7723983
..
7798231
100644
(file)
--- a/
policy-agent/src/main/java/org/oransc/policyagent/repository/PolicyTypes.java
+++ b/
policy-agent/src/main/java/org/oransc/policyagent/repository/PolicyTypes.java
@@
-28,10
+28,7
@@
import java.util.Map;
import org.oransc.policyagent.exceptions.ServiceException;
public class PolicyTypes {
import org.oransc.policyagent.exceptions.ServiceException;
public class PolicyTypes {
- private Map<String, PolicyType> types = new HashMap<String, PolicyType>();
-
- public PolicyTypes() {
- }
+ private Map<String, PolicyType> types = new HashMap<>();
public synchronized PolicyType getType(String name) throws ServiceException {
PolicyType t = types.get(name);
public synchronized PolicyType getType(String name) throws ServiceException {
PolicyType t = types.get(name);