From 2d82eec709d7076dc86ec51fce9e6cf22363075a Mon Sep 17 00:00:00 2001 From: Godin Date: Mon, 1 Nov 2010 15:18:10 +0000 Subject: SONAR-1832: * Improve performance for "Architecture rule" * Reduce number of violations whose line number is 0 --- .../bin/ArchitectureCheckToSqlFromUI.class | Bin 846 -> 526 bytes .../src/ArchitectureCheckToSqlFromUI.java | 18 ++---------------- 2 files changed, 2 insertions(+), 16 deletions(-) (limited to 'plugins/sonar-squid-java-plugin/test-resources') 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 Binary files a/plugins/sonar-squid-java-plugin/test-resources/bytecode/architecture/bin/ArchitectureCheckToSqlFromUI.class and b/plugins/sonar-squid-java-plugin/test-resources/bytecode/architecture/bin/ArchitectureCheckToSqlFromUI.class 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); } } -- cgit v1.2.3