Code Review
/
nonrtric.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
|
inline
| side by side
Fixed the Dmaap publisher issue
[nonrtric.git]
/
policy-agent
/
src
/
main
/
java
/
org
/
oransc
/
policyagent
/
repository
/
Policies.java
diff --git
a/policy-agent/src/main/java/org/oransc/policyagent/repository/Policies.java
b/policy-agent/src/main/java/org/oransc/policyagent/repository/Policies.java
index
58c91b3
..
a279db5
100644
(file)
--- a/
policy-agent/src/main/java/org/oransc/policyagent/repository/Policies.java
+++ b/
policy-agent/src/main/java/org/oransc/policyagent/repository/Policies.java
@@
-21,6
+21,7
@@
package org.oransc.policyagent.repository;
import java.util.Collection;
package org.oransc.policyagent.repository;
import java.util.Collection;
+import java.util.Collections;
import java.util.HashMap;
import java.util.Map;
import java.util.Set;
import java.util.HashMap;
import java.util.Map;
import java.util.Set;
@@
-68,7
+69,7
@@
public class Policies {
if (map == null) {
return new Vector<Policy>();
}
if (map == null) {
return new Vector<Policy>();
}
- return
map.values(
);
+ return
Collections.unmodifiableCollection(map.values()
);
}
public synchronized boolean containsPolicy(String id) {
}
public synchronized boolean containsPolicy(String id) {
@@
-88,7
+89,7
@@
public class Policies {
}
public synchronized Collection<Policy> getAll() {
}
public synchronized Collection<Policy> getAll() {
- return
policiesId.values(
);
+ return
Collections.unmodifiableCollection(policiesId.values()
);
}
public synchronized Collection<Policy> getForService(String service) {
}
public synchronized Collection<Policy> getForService(String service) {