Buggy code:
@ SuppressWarnings ( "unchecked" ) @ Override public List < Code > getCurriculumCodeByDepth ( Integer depth ) { } @ SuppressWarnings ( "unchecked" ) @ Override public Code findFirstChildTaxonomyCodeByDepth ( Integer codeId , Integer depth ) { } @ SuppressWarnings ( { "unchecked" , "rawtypes" } ) @ Override public List < CodeType > findAllTaxonomyLevels ( ) { } @ SuppressWarnings ( "unchecked" ) @ Override public List < Code > findCodeByType ( Integer taxonomyLevel ) { } @ Override public List < Code > getCodesOfConent ( Long contentId ) { } @ Override @ Cacheable ( "gooruCache" ) public List < Code > findParentTaxonomy ( Integer codeId , boolean reverse ) { } @ Override public List < Code > findParentTaxonomyCodes ( Integer codeId , List < Code > codeList ) { } @ Override public List < Code > findSiblingTaxonomy ( Code code ) { } @ Override public void updateTaxonomyAssociation ( Code taxonomy , List < Code > codes ) { } @ Override public void deleteTaxonomyMapping ( Code taxonomy , List < Code > codes ) { } @ Cacheable ( "gooruCache" ) @ Override public List < Code > findTaxonomyMappings ( String codeIds ) { } @ Override public List < Code > findTaxonomyMappings ( List < Code > codeIdList , boolean excludeTaxonomyPreference ) { } public List < Code > findParentTaxonomyCodesByCodeId ( int codeId , List < Code > parentCodeList ) { } @ Override @ Cacheable ( "gooruCache" ) public String findRootLevelTaxonomy ( Code code ) { } @ Override public void writeToDisk ( Code root ) throws Exception { } @ Override public String findTaxonomyTree ( String taxonomyCode , String format ) throws Exception { } public TaxonomyNode convertXmlToJson ( Node node ) { } @ SuppressWarnings ( "rawtypes" ) public void updateOrders ( ) { } @ Override public Code findByLabel ( String label ) { } @ Override @ Cacheable ( "gooruCache" ) public Code findByParent ( String label , Integer parentId ) { } @ Override public List < Code > findAllByRoot ( Integer codeId ) { } @ Override @ Cacheable ( "gooruCache" ) public Code findCodeByCodeId ( Integer codeId ) { } @ Override public Code findCodeByCodeUId ( String codeUId ) { } @ SuppressWarnings ( "unchecked" ) @ Override public List < Code > listTaxonomy ( Map < String , String > filters ) { } @ Override public List < Map < String , String > > findAllMappedStandards ( String code , Map < String , String > filters ) { } @ Override public List < Integer > findSourceCodeByTargetCode ( Integer targetCodeId ) { } @ Override @ Cacheable ( "gooruCache" ) public Code findCode ( Integer codeId , String organizationUid ) { } @ SuppressWarnings ( "unchecked" ) @ Override public List < Integer > getCodeIdByContentIds ( String contentIds ) { } @ SuppressWarnings ( "unchecked" ) @ Override public List < Code > getCodeByContentIds ( String contentIds ) { } @ Override @ Cacheable ( "gooruCache" ) public String getFindTaxonomyList ( String excludeCode ) { } @ Cacheable ( "gooruCache" ) @ Override public String getFindTaxonomyCodeList ( String codeIds ) { } @ Cacheable ( "gooruCache" ) @ Override public String findTaxonomyRootCode ( String code ) { } @ Override public Code findTaxonomyCodeById ( Integer codeId ) { } @ SuppressWarnings ( "unchecked" ) @ Override public List < CodeOrganizationAssoc > findCodeByParentCodeId ( String code , String creatorUid , Integer limit , Integer offset , String fetchType , String organizationCode , String rootNodeId , String depth ) { } @ SuppressWarnings ( "unchecked" ) @ Override public List < User > getFeaturedUser ( String organizationCode ) { } @ Override public List < Code > findCodeByMappedLevel ( Long contentId ) { } @ SuppressWarnings ( "unchecked" ) @ Override public List < CodeUserAssoc > getUserCodeAssoc ( Integer codeId , String organizationCode ) { } @ SuppressWarnings ( "unchecked" ) @ Override public List < Code > getCodeByDepth ( String organizationCode , Short depth , String creatorUid ) { } @ SuppressWarnings ( "unchecked" ) @ Override public List < Object [ ] > getCollectionStandards ( Integer codeId , String text , Integer limit , Integer offset ) { String sql = ( "select<seq2seq4repair_space>distinct<seq2seq4repair_space>ifnull(c.common_core_dot_notation,<seq2seq4repair_space>c.display_code)<seq2seq4repair_space>as<seq2seq4repair_space>code_notation,<seq2seq4repair_space>c.code_id,<seq2seq4repair_space>c.label,c.code_uid,<seq2seq4repair_space>c.root_node_id<seq2seq4repair_space>from<seq2seq4repair_space>taxonomy_association<seq2seq4repair_space>ta<seq2seq4repair_space>inner<seq2seq4repair_space>join<seq2seq4repair_space>code<seq2seq4repair_space>c<seq2seq4repair_space>on<seq2seq4repair_space>ta.target_code_id<seq2seq4repair_space>=<seq2seq4repair_space>c.code_id<seq2seq4repair_space>where<seq2seq4repair_space>ifnull(c.common_core_dot_notation,<seq2seq4repair_space>c.display_code)<seq2seq4repair_space>like<seq2seq4repair_space>'" + text ) + "%'<seq2seq4repair_space>and<seq2seq4repair_space>depth<seq2seq4repair_space>!=<seq2seq4repair_space>0" ; if ( codeId != null ) { sql += "<seq2seq4repair_space>and<seq2seq4repair_space>ta.source_code_id<seq2seq4repair_space>=" + codeId ; } <START_BUG> if ( ( ! ( UserGroupSupport . getTaxonomyPreference ( ) . isEmpty ( ) ) ) && ( ( UserGroupSupport . getTaxonomyPreference ( ) ) != null ) ) { <END_BUG> sql += ( "<seq2seq4repair_space>and<seq2seq4repair_space>c.root_node_id<seq2seq4repair_space>in<seq2seq4repair_space>(" + ( UserGroupSupport . getTaxonomyPreference ( ) ) ) + ")" ; } Query query = getSession ( ) . createSQLQuery ( sql ) ; query . setFirstResult ( ( offset == null ? OFFSET : offset ) ) ; query . setMaxResults ( ( limit != null ? limit > ( MAX_LIMIT ) ? MAX_LIMIT : limit : LIMIT ) ) ; return query . list ( ) ; } @ Override public List < Code > findParentTaxonomyCodeLevels ( Integer codeId , List < Code > codeList ) { } private Code getTaxonomyCodeById ( Integer codeId ) { } @ Cacheable ( "gooruCache" ) @ Override public String findTaxonomyCodeLabels ( String codeIds ) { } @ SuppressWarnings ( "unchecked" ) @ Cacheable ( "gooruCache" ) @ Override public List < Code > findCodeCommonCoreNotation ( ) { } @ Cacheable ( "gooruCache" ) @ Override public String findGooruTaxonomyCourse ( List < String > codeIds ) { } @ Override @ Cacheable ( "gooruCache" ) public Code findCodeByCodeIds ( Integer codeId ) { } @ SuppressWarnings ( "unchecked" ) @ Override public List < Code > findCodeStartWith ( String codeStartWith , Short depth ) { } public JdbcTemplate getJdbcTemplateReadOnly ( ) { } public RedisService getRedisService ( ) { } public JdbcTemplate getJdbcTemplate ( ) { } }

Fix:
if ( ( ( UserGroupSupport . getTaxonomyPreference ( ) ) != null ) && ( ! ( UserGroupSupport . getTaxonomyPreference ( ) . isEmpty ( ) ) ) ) {