]> source.dussan.org Git - sonarqube.git/commitdiff
Fix quality flaws
authorSimon Brandhof <simon.brandhof@gmail.com>
Mon, 15 Oct 2012 13:34:34 +0000 (15:34 +0200)
committerSimon Brandhof <simon.brandhof@gmail.com>
Mon, 15 Oct 2012 16:19:02 +0000 (18:19 +0200)
sonar-core/src/main/java/org/sonar/core/persistence/DefaultDatabase.java
sonar-server/src/main/java/org/sonar/server/ui/JRubyFacade.java

index 54744b10b6f3aa2e9c98dd78a34b8c9dbe687500..d12f3fa1e4986b7bc27b5205f8b628b138d546c1 100644 (file)
@@ -28,12 +28,16 @@ import org.slf4j.Logger;
 import org.slf4j.LoggerFactory;
 import org.sonar.api.config.Settings;
 import org.sonar.api.database.DatabaseProperties;
-import org.sonar.core.persistence.dialect.*;
+import org.sonar.core.persistence.dialect.Dialect;
+import org.sonar.core.persistence.dialect.DialectUtils;
+import org.sonar.core.persistence.dialect.H2;
+import org.sonar.core.persistence.dialect.Oracle;
+import org.sonar.core.persistence.dialect.PostgreSql;
 import org.sonar.jpa.session.CustomHibernateConnectionProvider;
 
 import javax.sql.DataSource;
+
 import java.sql.SQLException;
-import java.util.Arrays;
 import java.util.List;
 import java.util.Map;
 import java.util.Properties;
index 9f52e40f9b19403d1acd5d54999df77c520b1d40..7fa81d9328e87ed67500a56e6e354c1b2ac928f8 100644 (file)
@@ -21,6 +21,7 @@ package org.sonar.server.ui;
 
 import com.google.common.collect.ListMultimap;
 import com.google.common.collect.Lists;
+import org.json.simple.parser.ParseException;
 import org.slf4j.LoggerFactory;
 import org.sonar.api.CoreProperties;
 import org.sonar.api.config.License;
@@ -83,7 +84,7 @@ public final class JRubyFacade {
     return getContainer().getComponentByType(componentType);
   }
 
-  public List<MeasureFilterRow> executeMeasureFilter(String json, @Nullable Long userId) throws Exception {
+  public List<MeasureFilterRow> executeMeasureFilter(String json, @Nullable Long userId) throws ParseException {
     return get(MeasureFilterEngine.class).execute(json, userId);
   }