Class PriorityStatisticsMapper

java.lang.Object
com.atlassian.jira.issue.statistics.AbstractConstantStatisticsMapper
com.atlassian.jira.issue.statistics.PriorityStatisticsMapper
All Implemented Interfaces:
SearchRequestAppender.Factory<IssueConstant>, StatisticsMapper<IssueConstant>, FieldValueLoader<IssueConstant>
Direct Known Subclasses:
ReversePriorityStatisticsMapper

public class PriorityStatisticsMapper extends AbstractConstantStatisticsMapper implements SearchRequestAppender.Factory<IssueConstant>
PriorityStatisticsMapper.

It is extremely important to minimise the references in this class, because Lucene keeps a global cache of these objects in a WeakHashMap. If this class has lots of outgoing references, then the retained size increases if this class is held onto, and also the risk of a circular reference back to the key of the WeakHashMap increases, which means it can't be garbage collected.