diff options
author | Simon Brandhof <simon.brandhof@gmail.com> | 2011-10-13 10:56:49 +0200 |
---|---|---|
committer | Simon Brandhof <simon.brandhof@gmail.com> | 2011-10-13 10:56:49 +0200 |
commit | 53d0cab8c9c2d4666c39c65e532f7e900f34d3be (patch) | |
tree | 3b607fe8eb17608ad459138838cabc878bc7e34d /plugins/sonar-squid-java-plugin | |
parent | d9512997b317c7a01d480e9b9a81422996146c88 (diff) | |
download | sonarqube-53d0cab8c9c2d4666c39c65e532f7e900f34d3be.tar.gz sonarqube-53d0cab8c9c2d4666c39c65e532f7e900f34d3be.zip |
Remove some ignored tests and fix some commented-out code
Diffstat (limited to 'plugins/sonar-squid-java-plugin')
6 files changed, 8 insertions, 39 deletions
diff --git a/plugins/sonar-squid-java-plugin/src/main/java/org/sonar/java/bytecode/check/ArchitectureCheck.java b/plugins/sonar-squid-java-plugin/src/main/java/org/sonar/java/bytecode/check/ArchitectureCheck.java index 24d58e6dd9a..0f05863e1c2 100644 --- a/plugins/sonar-squid-java-plugin/src/main/java/org/sonar/java/bytecode/check/ArchitectureCheck.java +++ b/plugins/sonar-squid-java-plugin/src/main/java/org/sonar/java/bytecode/check/ArchitectureCheck.java @@ -31,6 +31,7 @@ import org.sonar.java.PatternUtils; import org.sonar.java.bytecode.asm.AsmClass; import org.sonar.java.bytecode.asm.AsmEdge; import org.sonar.java.bytecode.asm.AsmMethod; +import org.sonar.java.bytecode.visitor.BytecodeVisitor; import org.sonar.squid.api.CheckMessage; import org.sonar.squid.api.SourceFile; import org.sonar.squid.api.SourceMethod; @@ -38,7 +39,7 @@ import org.sonar.squid.api.SourceMethod; import com.google.common.collect.Maps; @Rule(key = "ArchitecturalConstraint", cardinality = Cardinality.MULTIPLE, priority = Priority.MAJOR) -public class ArchitectureCheck extends BytecodeCheck { +public class ArchitectureCheck extends BytecodeVisitor { @RuleProperty private String fromClasses = ""; diff --git a/plugins/sonar-squid-java-plugin/src/main/java/org/sonar/java/bytecode/check/BytecodeCheck.java b/plugins/sonar-squid-java-plugin/src/main/java/org/sonar/java/bytecode/check/BytecodeCheck.java deleted file mode 100644 index 19792e6d29c..00000000000 --- a/plugins/sonar-squid-java-plugin/src/main/java/org/sonar/java/bytecode/check/BytecodeCheck.java +++ /dev/null @@ -1,30 +0,0 @@ -/* - * Sonar, open source software quality management tool. - * Copyright (C) 2008-2011 SonarSource - * mailto:contact AT sonarsource DOT com - * - * Sonar is free software; you can redistribute it and/or - * modify it under the terms of the GNU Lesser General Public - * License as published by the Free Software Foundation; either - * version 3 of the License, or (at your option) any later version. - * - * Sonar is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - * Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public - * License along with Sonar; if not, write to the Free Software - * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02 - */ -package org.sonar.java.bytecode.check; - -import org.sonar.java.bytecode.visitor.BytecodeVisitor; -import org.sonar.squid.api.CodeCheck; - -public abstract class BytecodeCheck extends BytecodeVisitor { - -// public String getKey() { -// return getClass().getSimpleName(); -// } -} diff --git a/plugins/sonar-squid-java-plugin/src/main/java/org/sonar/java/bytecode/check/CallToDeprecatedMethodCheck.java b/plugins/sonar-squid-java-plugin/src/main/java/org/sonar/java/bytecode/check/CallToDeprecatedMethodCheck.java index 4ed21642c5d..b959769fa4c 100644 --- a/plugins/sonar-squid-java-plugin/src/main/java/org/sonar/java/bytecode/check/CallToDeprecatedMethodCheck.java +++ b/plugins/sonar-squid-java-plugin/src/main/java/org/sonar/java/bytecode/check/CallToDeprecatedMethodCheck.java @@ -24,11 +24,12 @@ import org.sonar.check.Rule; import org.sonar.java.bytecode.asm.AsmClass; import org.sonar.java.bytecode.asm.AsmEdge; import org.sonar.java.bytecode.asm.AsmMethod; +import org.sonar.java.bytecode.visitor.BytecodeVisitor; import org.sonar.squid.api.CheckMessage; import org.sonar.squid.api.SourceFile; @Rule(key = "CallToDeprecatedMethod", priority = Priority.MINOR) -public class CallToDeprecatedMethodCheck extends BytecodeCheck { +public class CallToDeprecatedMethodCheck extends BytecodeVisitor { private AsmClass asmClass; diff --git a/plugins/sonar-squid-java-plugin/src/main/java/org/sonar/java/bytecode/check/UnusedPrivateMethodCheck.java b/plugins/sonar-squid-java-plugin/src/main/java/org/sonar/java/bytecode/check/UnusedPrivateMethodCheck.java index 5b2d9337a26..da138179f9a 100644 --- a/plugins/sonar-squid-java-plugin/src/main/java/org/sonar/java/bytecode/check/UnusedPrivateMethodCheck.java +++ b/plugins/sonar-squid-java-plugin/src/main/java/org/sonar/java/bytecode/check/UnusedPrivateMethodCheck.java @@ -23,12 +23,13 @@ import org.sonar.check.Priority; import org.sonar.check.Rule; import org.sonar.java.bytecode.asm.AsmClass; import org.sonar.java.bytecode.asm.AsmMethod; +import org.sonar.java.bytecode.visitor.BytecodeVisitor; import org.sonar.squid.api.CheckMessage; import org.sonar.squid.api.SourceFile; import org.sonar.squid.api.SourceMethod; @Rule(key = "UnusedPrivateMethod", priority = Priority.MAJOR) -public class UnusedPrivateMethodCheck extends BytecodeCheck { +public class UnusedPrivateMethodCheck extends BytecodeVisitor { private AsmClass asmClass; diff --git a/plugins/sonar-squid-java-plugin/src/main/java/org/sonar/java/bytecode/check/UnusedProtectedMethodCheck.java b/plugins/sonar-squid-java-plugin/src/main/java/org/sonar/java/bytecode/check/UnusedProtectedMethodCheck.java index a167205ae3b..b9fdcc41223 100644 --- a/plugins/sonar-squid-java-plugin/src/main/java/org/sonar/java/bytecode/check/UnusedProtectedMethodCheck.java +++ b/plugins/sonar-squid-java-plugin/src/main/java/org/sonar/java/bytecode/check/UnusedProtectedMethodCheck.java @@ -23,12 +23,13 @@ import org.sonar.check.Priority; import org.sonar.check.Rule; import org.sonar.java.bytecode.asm.AsmClass; import org.sonar.java.bytecode.asm.AsmMethod; +import org.sonar.java.bytecode.visitor.BytecodeVisitor; import org.sonar.squid.api.CheckMessage; import org.sonar.squid.api.SourceFile; import org.sonar.squid.api.SourceMethod; @Rule(key = "UnusedProtectedMethod", priority = Priority.MAJOR) -public class UnusedProtectedMethodCheck extends BytecodeCheck { +public class UnusedProtectedMethodCheck extends BytecodeVisitor { private AsmClass asmClass; diff --git a/plugins/sonar-squid-java-plugin/src/main/java/org/sonar/java/squid/check/SquidCheck.java b/plugins/sonar-squid-java-plugin/src/main/java/org/sonar/java/squid/check/SquidCheck.java index ff82b806007..279f808684f 100644 --- a/plugins/sonar-squid-java-plugin/src/main/java/org/sonar/java/squid/check/SquidCheck.java +++ b/plugins/sonar-squid-java-plugin/src/main/java/org/sonar/java/squid/check/SquidCheck.java @@ -17,7 +17,6 @@ * License along with Sonar; if not, write to the Free Software * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02 */ - package org.sonar.java.squid.check; import org.sonar.java.squid.visitor.SquidVisitor; @@ -26,10 +25,6 @@ import org.sonar.squid.api.SourceFile; import org.sonar.squid.api.SourceMethod; public class SquidCheck implements SquidVisitor { -// -// public String getKey() { -// return getClass().getSimpleName(); -// } public void visitFile(SourceFile sourceFile) { } |