summaryrefslogtreecommitdiffstats
path: root/plugins/sonar-squid-java-plugin/test-resources
diff options
context:
space:
mode:
authorGodin <mandrikov@gmail.com>2010-11-01 15:18:10 +0000
committerGodin <mandrikov@gmail.com>2010-11-01 15:18:10 +0000
commit2d82eec709d7076dc86ec51fce9e6cf22363075a (patch)
treed571510b6a4a6766db298fb9bb321c814e30576d /plugins/sonar-squid-java-plugin/test-resources
parent84d5dd9d058988d2ae665fef0fb11d6f2a52bb8b (diff)
downloadsonarqube-2d82eec709d7076dc86ec51fce9e6cf22363075a.tar.gz
sonarqube-2d82eec709d7076dc86ec51fce9e6cf22363075a.zip
SONAR-1832:
* Improve performance for "Architecture rule" * Reduce number of violations whose line number is 0
Diffstat (limited to 'plugins/sonar-squid-java-plugin/test-resources')
-rw-r--r--plugins/sonar-squid-java-plugin/test-resources/bytecode/architecture/bin/ArchitectureCheckToSqlFromUI.classbin846 -> 526 bytes
-rw-r--r--plugins/sonar-squid-java-plugin/test-resources/bytecode/architecture/src/ArchitectureCheckToSqlFromUI.java18
2 files changed, 2 insertions, 16 deletions
diff --git a/plugins/sonar-squid-java-plugin/test-resources/bytecode/architecture/bin/ArchitectureCheckToSqlFromUI.class b/plugins/sonar-squid-java-plugin/test-resources/bytecode/architecture/bin/ArchitectureCheckToSqlFromUI.class
index 03cfe2219d7..bf8f8c0c33d 100644
--- a/plugins/sonar-squid-java-plugin/test-resources/bytecode/architecture/bin/ArchitectureCheckToSqlFromUI.class
+++ b/plugins/sonar-squid-java-plugin/test-resources/bytecode/architecture/bin/ArchitectureCheckToSqlFromUI.class
Binary files differ
diff --git a/plugins/sonar-squid-java-plugin/test-resources/bytecode/architecture/src/ArchitectureCheckToSqlFromUI.java b/plugins/sonar-squid-java-plugin/test-resources/bytecode/architecture/src/ArchitectureCheckToSqlFromUI.java
index 18f58ba4801..eaa2d7f462f 100644
--- a/plugins/sonar-squid-java-plugin/test-resources/bytecode/architecture/src/ArchitectureCheckToSqlFromUI.java
+++ b/plugins/sonar-squid-java-plugin/test-resources/bytecode/architecture/src/ArchitectureCheckToSqlFromUI.java
@@ -1,21 +1,7 @@
-import java.sql.Connection;
-import java.sql.ResultSet;
-import java.sql.SQLException;
import java.sql.Statement;
-
public class ArchitectureCheckToSqlFromUI {
-
- ResultSet result;
-
- Connection connection;
-
- public ArchitectureCheckToSqlFromUI(Statement statement, String requete) {
- try {
- connection = statement.getConnection();
- result = statement.executeQuery(requete);
- } catch (SQLException sql) {
- sql.printStackTrace();
- }
+ public ArchitectureCheckToSqlFromUI(Statement statement) {
+ System.out.println(statement);
}
}