@@ -208,7 +208,7 @@ private void printState(FileWriter writer, StateToReproduce state) {
208208 sb .append (databaseProvider .getLoggableFactory ()
209209 .getInfo (state .getDatabaseName (), state .getDatabaseVersion (), state .getSeedValue ()).getLogString ());
210210
211- for (Query s : state .getStatements ()) {
211+ for (Query <?> s : state .getStatements ()) {
212212 sb .append (s .getQueryString ());
213213 sb .append ('\n' );
214214 }
@@ -221,23 +221,23 @@ private void printState(FileWriter writer, StateToReproduce state) {
221221
222222 }
223223
224- public static class QueryManager {
224+ public static class QueryManager < C extends SQLancerDBConnection > {
225225
226- private final GlobalState <?, ?, ? > globalState ;
226+ private final GlobalState <?, ?, C > globalState ;
227227
228- QueryManager (GlobalState <?, ?, ? > globalState ) {
228+ QueryManager (GlobalState <?, ?, C > globalState ) {
229229 this .globalState = globalState ;
230230 }
231231
232- public boolean execute (Query q , String ... fills ) throws Exception {
232+ public boolean execute (Query < C > q , String ... fills ) throws Exception {
233233 globalState .getState ().logStatement (q );
234234 boolean success ;
235235 success = q .execute (globalState , fills );
236236 Main .nrSuccessfulActions .addAndGet (1 );
237237 return success ;
238238 }
239239
240- public SQLancerResultSet executeAndGet (Query q , String ... fills ) throws Exception {
240+ public SQLancerResultSet executeAndGet (Query < C > q , String ... fills ) throws Exception {
241241 globalState .getState ().logStatement (q );
242242 SQLancerResultSet result ;
243243 result = q .executeAndGet (globalState , fills );
@@ -259,8 +259,7 @@ public static void main(String[] args) {
259259 System .exit (executeMain (args ));
260260 }
261261
262- public static class DBMSExecutor <G extends GlobalState <O , ?, C >, O extends DBMSSpecificOptions <?>, C
263- extends SQLancerDBConnection > {
262+ public static class DBMSExecutor <G extends GlobalState <O , ?, C >, O extends DBMSSpecificOptions <?>, C extends SQLancerDBConnection > {
264263
265264 private final DatabaseProvider <G , O , C > provider ;
266265 private final MainOptions options ;
@@ -309,7 +308,7 @@ public void run() throws Exception {
309308 state .setMainOptions (options );
310309 state .setDmbsSpecificOptions (command );
311310 try (C con = provider .createDatabase (state )) {
312- QueryManager manager = new QueryManager (state );
311+ QueryManager < C > manager = new QueryManager <> (state );
313312 try {
314313 stateToRepro .databaseVersion = con .getDatabaseVersion ();
315314 } catch (Exception e ) {
@@ -354,8 +353,7 @@ public StateToReproduce getStateToReproduce() {
354353 }
355354 }
356355
357- public static class DBMSExecutorFactory <G extends GlobalState <O , ?, C >, O extends DBMSSpecificOptions <?>,
358- C extends SQLancerDBConnection > {
356+ public static class DBMSExecutorFactory <G extends GlobalState <O , ?, C >, O extends DBMSSpecificOptions <?>, C extends SQLancerDBConnection > {
359357
360358 private final DatabaseProvider <G , O , C > provider ;
361359 private final MainOptions options ;
0 commit comments