]> source.dussan.org Git - gitblit.git/commitdiff
[findbugs] Fixed incorrect cache lookup keys in the Lucene repository indexer
authorJames Moger <james.moger@gitblit.com>
Fri, 18 Apr 2014 00:30:53 +0000 (20:30 -0400)
committerJames Moger <james.moger@gitblit.com>
Fri, 18 Apr 2014 03:07:51 +0000 (23:07 -0400)
src/main/java/com/gitblit/service/LuceneService.java

index 868a2953e13b67b6139a788a1d9629fadc15ae07..482be5c6ed1b5bb373df9d9bc39b3a03cc9576c5 100644 (file)
@@ -437,7 +437,7 @@ public class LuceneService implements Runnable {
                                        // skip non-annotated tags\r
                                        continue;\r
                                }\r
-                               if (!tags.containsKey(tag.getObjectId())) {\r
+                               if (!tags.containsKey(tag.getObjectId().getName())) {\r
                                        tags.put(tag.getReferencedObjectId().getName(), new ArrayList<String>());\r
                                }\r
                                tags.get(tag.getReferencedObjectId().getName()).add(tag.displayName);\r
@@ -760,7 +760,7 @@ public class LuceneService implements Runnable {
                                        // skip non-annotated tags\r
                                        continue;\r
                                }\r
-                               if (!tags.containsKey(tag.getObjectId())) {\r
+                               if (!tags.containsKey(tag.getObjectId().getName())) {\r
                                        tags.put(tag.getReferencedObjectId().getName(), new ArrayList<String>());\r
                                }\r
                                tags.get(tag.getReferencedObjectId().getName()).add(tag.displayName);\r