summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJames Moger <james.moger@gitblit.com>2014-04-17 20:30:53 -0400
committerJames Moger <james.moger@gitblit.com>2014-04-17 23:07:51 -0400
commitb1d77ab9df4334e31db3e016f2a4ac77ea0cddb6 (patch)
tree3d7c127229e4e4947204f5fedc8e6a3f3a6acaf0
parent23d0e14babe89fff39e377c8ea7295837b07a343 (diff)
downloadgitblit-b1d77ab9df4334e31db3e016f2a4ac77ea0cddb6.tar.gz
gitblit-b1d77ab9df4334e31db3e016f2a4ac77ea0cddb6.zip
[findbugs] Fixed incorrect cache lookup keys in the Lucene repository indexer
-rw-r--r--src/main/java/com/gitblit/service/LuceneService.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/main/java/com/gitblit/service/LuceneService.java b/src/main/java/com/gitblit/service/LuceneService.java
index 868a2953..482be5c6 100644
--- a/src/main/java/com/gitblit/service/LuceneService.java
+++ b/src/main/java/com/gitblit/service/LuceneService.java
@@ -437,7 +437,7 @@ public class LuceneService implements Runnable {
// skip non-annotated tags
continue;
}
- if (!tags.containsKey(tag.getObjectId())) {
+ if (!tags.containsKey(tag.getObjectId().getName())) {
tags.put(tag.getReferencedObjectId().getName(), new ArrayList<String>());
}
tags.get(tag.getReferencedObjectId().getName()).add(tag.displayName);
@@ -760,7 +760,7 @@ public class LuceneService implements Runnable {
// skip non-annotated tags
continue;
}
- if (!tags.containsKey(tag.getObjectId())) {
+ if (!tags.containsKey(tag.getObjectId().getName())) {
tags.put(tag.getReferencedObjectId().getName(), new ArrayList<String>());
}
tags.get(tag.getReferencedObjectId().getName()).add(tag.displayName);