Buggy code:
private static final String ACTIVITYALIAS_TRANSACTION_ID = ( ( IssueSearch . ACTIVITYALIAS ) + "." ) + ( IssueSearch . ACT_TRAN_ID ) ; private static final String ACTIVITYALIAS_TRAN_ID__EQUALS__ACTIVITYSETALIAS_TRAN_ID = ( ( ( ( IssueSearch . ACTIVITYALIAS_TRANSACTION_ID ) + "=" ) + ( IssueSearch . ACTIVITYSETALIAS ) ) + "." ) + ( IssueSearch . ACTSET_TRAN_ID ) ; private static final String ACT_ISSUE_ID = ActivityPeer . ISSUE_ID . substring ( ( ( ActivityPeer . ISSUE_ID . indexOf ( '.' ) ) + 1 ) ) ; private static final String ACTIVITYALIAS_ISSUE_ID = ( ( IssueSearch . ACTIVITYALIAS ) + "." ) + ( IssueSearch . ACT_ISSUE_ID ) ; private static final String ACTIVITYALIAS_ISSUE_ID__EQUALS__ISSUEPEER_ISSUE_ID = ( ( IssueSearch . ACTIVITYALIAS_ISSUE_ID ) + "=" ) + ( IssuePeer . ISSUE_ID ) ; private static final String END_DATE = ActivityPeer . END_DATE . substring ( ( ( ActivityPeer . END_DATE . indexOf ( '.' ) ) + 1 ) ) ; private static final String ACT_ATTR_ID = ActivityPeer . ATTRIBUTE_ID . substring ( ( ( ActivityPeer . ATTRIBUTE_ID . indexOf ( '.' ) ) + 1 ) ) ; private static final String AV_ATTR_ID = AttributeValuePeer . ATTRIBUTE_ID . substring ( ( ( AttributeValuePeer . ATTRIBUTE_ID . indexOf ( '.' ) ) + 1 ) ) ; private static final String ACTIVITYALIAS_ATTRIBUTE_ID = ( ( IssueSearch . ACTIVITYALIAS ) + "." ) + ( IssueSearch . ACT_ATTR_ID ) ; private static final String ACTIVITYALIAS_ATTR_ID__EQUALS__USERAVALIAS_ATTR_ID = ( ( ( ( IssueSearch . ACTIVITYALIAS_ATTRIBUTE_ID ) + "=" ) + ( IssueSearch . USERAVALIAS ) ) + "." ) + ( IssueSearch . AV_ATTR_ID ) ; private static final String USERAVALIAS_ISSUE_ID = ( ( IssueSearch . USERAVALIAS ) + "." ) + ( IssueSearch . AV_ISSUE_ID ) ; private static final String USERAVALIAS_ISSUE_ID__EQUALS__ISSUEPEER_ISSUE_ID = ( ( IssueSearch . USERAVALIAS_ISSUE_ID ) + "=" ) + ( IssuePeer . ISSUE_ID ) ; private static final String ACTIVITYALIAS_ISSUE_ID__EQUALS__USERAVALIAS_ISSUE_ID = ( ( ( ( IssueSearch . ACTIVITYALIAS_ISSUE_ID ) + "=" ) + ( IssueSearch . USERAVALIAS ) ) + "." ) + ( IssueSearch . AV_ISSUE_ID ) ; private static final String ACT_NEW_USER_ID = NEW_USER_ID . substring ( ( ( NEW_USER_ID . indexOf ( '.' ) ) + 1 ) ) ; private static final String ACTIVITYALIAS_NEW_USER_ID = ( ( IssueSearch . ACTIVITYALIAS ) + "." ) + ( IssueSearch . ACT_NEW_USER_ID ) ; private static final String ACTIVITYALIAS_NEW_USER_ID__EQUALS__USERAVALIAS_USER_ID = ( ( ( ( IssueSearch . ACTIVITYALIAS_NEW_USER_ID ) + "=" ) + ( IssueSearch . USERAVALIAS ) ) + "." ) + ( IssueSearch . AV_USER_ID ) ; private static String WHERE = "<seq2seq4repair_space>WHERE<seq2seq4repair_space>" ; private static String FROM = "<seq2seq4repair_space>FROM<seq2seq4repair_space>" ; private static String ORDER_BY = "<seq2seq4repair_space>ORDER<seq2seq4repair_space>BY<seq2seq4repair_space>" ; private static String BASE_OPTION_SORT_LEFT_JOIN = "<seq2seq4repair_space>LEFT<seq2seq4repair_space>OUTER<seq2seq4repair_space>JOIN<seq2seq4repair_space>SCARAB_R_MODULE_OPTION<seq2seq4repair_space>sortRMO<seq2seq4repair_space>ON<seq2seq4repair_space>" + ( "(SCARAB_ISSUE.MODULE_ID=sortRMO.MODULE_ID<seq2seq4repair_space>AND<seq2seq4repair_space>SCARAB_ISSUE.TYPE_ID=" + "sortRMO.ISSUE_TYPE_ID<seq2seq4repair_space>AND<seq2seq4repair_space>sortRMO.OPTION_ID=" ) ; private static int NO_ATTRIBUTE_SORT = - 1 ; private SimpleDateFormat formatter ; private String searchWords ; private String commentQuery ; private NumberKey [ ] textScope ; private String minId ; private String maxId ; private String minDate ; private String maxDate ; private int minVotes ; private NumberKey stateChangeAttributeId ; private NumberKey stateChangeFromOptionId ; private NumberKey stateChangeToOptionId ; private String stateChangeFromDate ; private String stateChangeToDate ; private NumberKey sortAttributeId ; private String sortPolarity ; private MITList mitList ; private List userIdList ; private List userSearchCriteriaList ; private List lastUsedAVList ; private boolean modified ; private int lastTotalIssueCount = - 1 ; private List lastMatchingIssueIds = null ; private List lastQueryResults = null ; private List issueListAttributeColumns ; private LRUMap moduleMap = new LRUMap ( 20 ) ; private LRUMap rmitMap = new LRUMap ( 20 ) ; public IssueSearch ( Issue issue ) throws Exception { } public IssueSearch ( Module module , IssueType issueType ) throws Exception { } public IssueSearch ( MITList mitList ) throws Exception { } public boolean isXMITSearch ( ) { } public void setIssueListAttributeColumns ( List rmuas ) { } public List getIssueListAttributeColumns ( ) { } public List getUserIdList ( ) { } public SequencedHashMap getCommonAttributeValuesMap ( ) throws Exception { } private SequencedHashMap getMITAttributeValuesMap ( ) throws Exception { SequencedHashMap result = null ; List attributes = mitList . getCommonAttributes ( ) ; <START_BUG> HashMap siaValuesMap = getAttributeValuesMap ( ) ; <END_BUG> if ( attributes != null ) { result = new SequencedHashMap ( ( ( int ) ( ( 1.25 * ( attributes . size ( ) ) ) + 1 ) ) ) ; Iterator i = attributes . iterator ( ) ; while ( i . hasNext ( ) ) { Attribute attribute = ( ( Attribute ) ( i . next ( ) ) ) ; String key = attribute . getName ( ) . toUpperCase ( ) ; if ( siaValuesMap . containsKey ( key ) ) { result . put ( key , siaValuesMap . get ( key ) ) ; } else { AttributeValue aval = AttributeValue . getNewInstance ( attribute , this ) ; addAttributeValue ( aval ) ; result . put ( key , aval ) ; } } } return result ; } public List getUserAttributes ( ) throws Exception { } public List getLeafRModuleOptions ( Attribute attribute ) throws Exception { } public List getCommonOptionTree ( Attribute attribute ) throws Exception { } public String getSearchWords ( ) { } public void setSearchWords ( String v ) { } public String getCommentQuery ( ) { } public void setCommentQuery ( String v ) { } public NumberKey [ ] getTextScope ( ) throws Exception { } private NumberKey [ ] getTextScopeForAll ( ) throws Exception { } public void setTextScope ( NumberKey [ ] v ) throws Exception { } public String getMinId ( ) { } public void setMinId ( String v ) { } public String getMaxId ( ) { } public void setMaxId ( String v ) { } public String getMinDate ( ) { }

Fix:
Map siaValuesMap = getAttributeValuesMap ( ) ;