diff options
author | Godin <mandrikov@gmail.com> | 2010-11-01 15:18:10 +0000 |
---|---|---|
committer | Godin <mandrikov@gmail.com> | 2010-11-01 15:18:10 +0000 |
commit | 2d82eec709d7076dc86ec51fce9e6cf22363075a (patch) | |
tree | d571510b6a4a6766db298fb9bb321c814e30576d /plugins/sonar-squid-java-plugin/test-resources | |
parent | 84d5dd9d058988d2ae665fef0fb11d6f2a52bb8b (diff) | |
download | sonarqube-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')
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 Binary files differindex 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 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); } } |