You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@shiro.apache.org by co...@apache.org on 2019/12/16 10:54:29 UTC
[shiro] branch master updated: update this.map to values
This is an automated email from the ASF dual-hosted git repository.
coheigea pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/shiro.git
The following commit(s) were added to refs/heads/master by this push:
new 57306ce update this.map to values
new 953d44d Merge pull request #188 from luohongtu/master
57306ce is described below
commit 57306ce66e90183b360b5af65da118d27112413c
Author: lht <lu...@163.com>
AuthorDate: Mon Dec 16 10:32:45 2019 +0800
update this.map to values
---
cache/src/main/java/org/apache/shiro/cache/MapCache.java | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/cache/src/main/java/org/apache/shiro/cache/MapCache.java b/cache/src/main/java/org/apache/shiro/cache/MapCache.java
index 024f5ef..06dfde9 100644
--- a/cache/src/main/java/org/apache/shiro/cache/MapCache.java
+++ b/cache/src/main/java/org/apache/shiro/cache/MapCache.java
@@ -82,10 +82,10 @@ public class MapCache<K, V> implements Cache<K, V> {
public Collection<V> values() {
Collection<V> values = map.values();
- if (!map.isEmpty()) {
+ if (!values.isEmpty()) {
return Collections.unmodifiableCollection(values);
}
- return Collections.emptySet();
+ return Collections.emptyList();
}
public String toString() {