From 5af0e0779610017b6056b63278e1a16c6d49d25b Mon Sep 17 00:00:00 2001 From: Simon Brandhof Date: Tue, 29 Jul 2014 00:00:04 +0200 Subject: SONAR-5487 Check minimal required version of Oracle JDBC driver (11.2) --- .../main/java/org/sonar/batch/bootstrap/BatchDatabase.java | 13 ------------- 1 file changed, 13 deletions(-) (limited to 'sonar-batch/src/main/java/org/sonar/batch/bootstrap') diff --git a/sonar-batch/src/main/java/org/sonar/batch/bootstrap/BatchDatabase.java b/sonar-batch/src/main/java/org/sonar/batch/bootstrap/BatchDatabase.java index b639c72a988..e4944f5bd5d 100644 --- a/sonar-batch/src/main/java/org/sonar/batch/bootstrap/BatchDatabase.java +++ b/sonar-batch/src/main/java/org/sonar/batch/bootstrap/BatchDatabase.java @@ -29,10 +29,7 @@ import java.util.Properties; */ public class BatchDatabase extends DefaultDatabase { - private final AnalysisMode analysisMode; - public BatchDatabase(Settings settings, - AnalysisMode analysisMode, // The dependency on JdbcDriverHolder is required to be sure that the JDBC driver // has been downloaded and injected into classloader JdbcDriverHolder jdbcDriverHolder, @@ -41,16 +38,13 @@ public class BatchDatabase extends DefaultDatabase { // changed settings PreviewDatabase dryRun) { super(settings); - this.analysisMode = analysisMode; } public BatchDatabase(Settings settings, - AnalysisMode analysisMode, // The dependency on JdbcDriverHolder is required to be sure that the JDBC driver // has been downloaded and injected into classloader JdbcDriverHolder jdbcDriverHolder) { super(settings); - this.analysisMode = analysisMode; } @Override @@ -63,11 +57,4 @@ public class BatchDatabase extends DefaultDatabase { // SONAR-2965 properties.setProperty("sonar.jdbc.defaultAutoCommit", "false"); } - - @Override - protected void checkH2Database() { - if (!analysisMode.isPreview()) { - super.checkH2Database(); - } - } } -- cgit v1.2.3