From: James Moger Date: Fri, 18 Apr 2014 00:30:53 +0000 (-0400) Subject: [findbugs] Fixed incorrect cache lookup keys in the Lucene repository indexer X-Git-Tag: v1.5.0~29 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=b1d77ab9df4334e31db3e016f2a4ac77ea0cddb6;p=gitblit.git [findbugs] Fixed incorrect cache lookup keys in the Lucene repository indexer --- 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()); } 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()); } tags.get(tag.getReferencedObjectId().getName()).add(tag.displayName);