Buggy code:
public class ProjectDAOImpl implements ProjectDAO { @ Qualifier ( "jdbcTemplate" ) @ Autowired private JdbcTemplate jdbcTemplate ; private static final Logger LOGGER = Logger . getLogger ( ProjectDAOImpl . class ) ; public boolean saveProject ( final ProjectDetail projectDetail ) { } public Map < String , String > getAliasProjectNames ( ) { } public Map < String , String > getAliasProjectNames ( String empId ) { Map < String , String > aliasProjects = new LinkedHashMap < String , String > ( ) ; String sql ; List < Map < String , Object > > rows ; if ( ! ( isEmpty ( empId ) ) ) { <START_BUG> sql = "select<seq2seq4repair_space>ProjId,<seq2seq4repair_space>AliasProjName<seq2seq4repair_space>from<seq2seq4repair_space>project<seq2seq4repair_space>where<seq2seq4repair_space>ProjId<seq2seq4repair_space>in<seq2seq4repair_space>(select<seq2seq4repair_space>projectId<seq2seq4repair_space>from<seq2seq4repair_space>authoriseproject<seq2seq4repair_space>where<seq2seq4repair_space>empId<seq2seq4repair_space>=<seq2seq4repair_space>?)" ; <END_BUG> rows = jdbcTemplate . queryForList ( sql , empId ) ; } else { sql = "select<seq2seq4repair_space>ProjId,<seq2seq4repair_space>AliasProjName<seq2seq4repair_space>from<seq2seq4repair_space>project" ; rows = jdbcTemplate . queryForList ( sql ) ; } aliasProjects . put ( "0" , "--Please<seq2seq4repair_space>Select--" ) ; for ( Map < String , Object > row : rows ) { aliasProjects . put ( String . valueOf ( row . get ( "ProjId" ) ) , ( ( String ) ( row . get ( "AliasProjName" ) ) ) ) ; } return aliasProjects ; } public String fetchMainProjectType ( Integer mainProjectId ) { } public List < ProjectDetail > getProjectDocumentList ( String employeeId ) { } @ Override public List < ProjectDetail > getProjectDocumentList ( ) { } public ProjectDetail getProjectDocument ( String projectId , String employeeId ) { } private ProjectDetail buildProjectDetail ( Map < String , Object > row ) { } public boolean isAliasProjectAlreadyExisting ( String aliasName ) { } private String projQuery = "SELECT<seq2seq4repair_space>ProjId,<seq2seq4repair_space>ProjName,<seq2seq4repair_space>ProjectType<seq2seq4repair_space>,AliasProjName,<seq2seq4repair_space>AgreementNum,<seq2seq4repair_space>" + ( ( ( "CERNum,<seq2seq4repair_space>Amount,<seq2seq4repair_space>ContractorName,ContractorAliasName,<seq2seq4repair_space>ContractorAdd,<seq2seq4repair_space>AgreementValue,<seq2seq4repair_space>" + "TenderValue<seq2seq4repair_space>,<seq2seq4repair_space>ExcessInAmount,<seq2seq4repair_space>ExcessInPercentage,LessInPercentage,<seq2seq4repair_space>" ) + "CompletionDateForBonus<seq2seq4repair_space>,TenderDate,<seq2seq4repair_space>AgreementDate,<seq2seq4repair_space>CommencementDate,<seq2seq4repair_space>CompletedDate,workoutPercentage,workLocation,<seq2seq4repair_space>" ) + "AgreementPeriod<seq2seq4repair_space>FROM<seq2seq4repair_space>project" ) ; @ Override public void deleteProject ( Integer projectId ) { } @ Override public List < String > getDropDownValues ( String type ) { } }

Fix:
sql = "select<seq2seq4repair_space>ProjId,<seq2seq4repair_space>AliasProjName<seq2seq4repair_space>from<seq2seq4repair_space>project<seq2seq4repair_space>where<seq2seq4repair_space>ProjId<seq2seq4repair_space>in<seq2seq4repair_space>(select<seq2seq4repair_space>projectId<seq2seq4repair_space>from<seq2seq4repair_space>authoriseproject<seq2seq4repair_space>where<seq2seq4repair_space>empId<seq2seq4repair_space>=<seq2seq4repair_space>?)<seq2seq4repair_space>and<seq2seq4repair_space>mainProjId<seq2seq4repair_space>=<seq2seq4repair_space>0" ;