Code Review
/
nonrtric.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
|
inline
| side by side
Merge "Rename artifacts in A1 controller"
[nonrtric.git]
/
policy-agent
/
src
/
main
/
java
/
org
/
oransc
/
policyagent
/
repository
/
Rics.java
diff --git
a/policy-agent/src/main/java/org/oransc/policyagent/repository/Rics.java
b/policy-agent/src/main/java/org/oransc/policyagent/repository/Rics.java
index
3b8e587
..
7faa376
100644
(file)
--- a/
policy-agent/src/main/java/org/oransc/policyagent/repository/Rics.java
+++ b/
policy-agent/src/main/java/org/oransc/policyagent/repository/Rics.java
@@
-20,9
+20,11
@@
package org.oransc.policyagent.repository;
package org.oransc.policyagent.repository;
+import java.util.Collection;
import java.util.HashMap;
import java.util.Map;
import java.util.Optional;
import java.util.HashMap;
import java.util.Map;
import java.util.Optional;
+import java.util.Vector;
import org.oransc.policyagent.exceptions.ServiceException;
import org.oransc.policyagent.exceptions.ServiceException;
@@
-36,8
+38,8
@@
public class Rics {
registeredRics.put(ric.name(), ric);
}
registeredRics.put(ric.name(), ric);
}
- public synchronized
Iterable
<Ric> getRics() {
- return
registeredRics.values(
);
+ public synchronized
Collection
<Ric> getRics() {
+ return
new Vector<>(registeredRics.values()
);
}
public synchronized Ric getRic(String name) throws ServiceException {
}
public synchronized Ric getRic(String name) throws ServiceException {