Buggy code:
public class DBConnector { private static DBConnector instance ; private String connectionPath ; private boolean cacheResults = true ; private int knownPeopleSize = - 1 ; private int peopleSize = - 1 ; private int synonymSize = - 1 ; private int peopleSame = - 1 ; public static DBConnector getInstance ( ) { } private DBConnector ( ) { } private void init ( ) throws ClassNotFoundException , SQLException { } public void createTables ( ) throws SQLException { } public void createTablesUnpure ( ) throws SQLException { } public void createPurifiedAttributes ( ) throws SQLException { } public void createTagTableUnpure ( String tag ) throws SQLException { } public Connection getConnection ( ) throws ClassNotFoundException , SQLException { } public int getPeopleSize ( ) throws ClassNotFoundException , SQLException { } public int getKnownPeopleSize ( ) throws ClassNotFoundException , SQLException { } public int [ ] getAllKnownRelationships ( ) throws ClassNotFoundException , SQLException { } public int [ ] getAllKnownRelationshipsOfPerson ( int personId ) throws ClassNotFoundException , SQLException { } public String getPersonName ( int id ) throws ClassNotFoundException , SQLException { Connection conn = getConnection ( ) ; <START_BUG> PreparedStatement prep = conn . prepareStatement ( ( "select<seq2seq4repair_space>name<seq2seq4repair_space>from<seq2seq4repair_space>name<seq2seq4repair_space>inner<seq2seq4repair_space>join<seq2seq4repair_space>peopleuri_modified<seq2seq4repair_space>on<seq2seq4repair_space>name.localUrl<seq2seq4repair_space>=<seq2seq4repair_space>peopleuri_modified.localUrl<seq2seq4repair_space>and<seq2seq4repair_space>" + "name.context<seq2seq4repair_space>=<seq2seq4repair_space>peopleuri_modified.context<seq2seq4repair_space>where<seq2seq4repair_space>personid<seq2seq4repair_space>=<seq2seq4repair_space>(?)" ) ) ; <END_BUG> prep . setInt ( 1 , id ) ; ResultSet rs = prep . executeQuery ( ) ; String name = null ; if ( rs . next ( ) ) { name = rs . getString ( 1 ) ; } conn . close ( ) ; return name ; } public String getPersonTag ( String tag , int id ) throws ClassNotFoundException , SQLException { } public String getPersonURI ( int id ) throws ClassNotFoundException , SQLException { } public String getPersonContext ( int id ) throws ClassNotFoundException , SQLException { } public int getSynonymSize ( ) throws ClassNotFoundException , SQLException { } public int [ ] getAllSynonyms ( ) throws ClassNotFoundException , SQLException { } public Person [ ] getAllPeople ( ) throws ClassNotFoundException , SQLException { } public int getSamePeopleSize ( ) throws ClassNotFoundException , SQLException { } public int [ ] getSamePeople ( ) throws ClassNotFoundException , SQLException { } public String [ ] getField ( String field ) throws ClassNotFoundException , SQLException { } public int [ ] getPeopleWithSimilarAttributes ( ) throws ClassNotFoundException , SQLException { } }

Fix:
PreparedStatement prep = conn . prepareStatement ( ( "select<seq2seq4repair_space>value<seq2seq4repair_space>from<seq2seq4repair_space>name<seq2seq4repair_space>inner<seq2seq4repair_space>join<seq2seq4repair_space>peopleuri_modified<seq2seq4repair_space>on<seq2seq4repair_space>name.localUrl<seq2seq4repair_space>=<seq2seq4repair_space>peopleuri_modified.localUrl<seq2seq4repair_space>and<seq2seq4repair_space>" + "name.context<seq2seq4repair_space>=<seq2seq4repair_space>peopleuri_modified.context<seq2seq4repair_space>where<seq2seq4repair_space>personid<seq2seq4repair_space>=<seq2seq4repair_space>(?)" ) ) ;