diff options
author | simonbrandhof <simon.brandhof@gmail.com> | 2011-02-03 17:37:34 +0100 |
---|---|---|
committer | simonbrandhof <simon.brandhof@gmail.com> | 2011-02-03 17:37:34 +0100 |
commit | 31af09b42f8aafb2a56522e8670b574603cd9eee (patch) | |
tree | 8ad623c3a6a658b4cb45a755367ad24adf995747 /tests/integration | |
parent | 68e772f2ce0b97b4c2cdb7f5d16c4bb6202b02d6 (diff) | |
download | sonarqube-31af09b42f8aafb2a56522e8670b574603cd9eee.tar.gz sonarqube-31af09b42f8aafb2a56522e8670b574603cd9eee.zip |
SONAR-2094 Do not delete ACTIVE_RULES rows when rules are disabled
Diffstat (limited to 'tests/integration')
-rw-r--r-- | tests/integration/tests/maven-projects/java-complexity/src/main/java/foo/AnonymousClass.java | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/tests/integration/tests/maven-projects/java-complexity/src/main/java/foo/AnonymousClass.java b/tests/integration/tests/maven-projects/java-complexity/src/main/java/foo/AnonymousClass.java index a7572a6d5a5..61b755b16c6 100644 --- a/tests/integration/tests/maven-projects/java-complexity/src/main/java/foo/AnonymousClass.java +++ b/tests/integration/tests/maven-projects/java-complexity/src/main/java/foo/AnonymousClass.java @@ -3,12 +3,13 @@ package foo; import java.io.Serializable; import java.lang.Runnable; -// class complexity: 4 public class AnonymousClass { - // method complexity: 3 - public void anonymousClassWithComplexity() { + // method complexity: 1 or 3 ? + public void hasComplexAnonymousClass() { Runnable runnable = new Runnable() { + + // method complexity: 2 public void run() { if (true) { System.out.println("true"); @@ -18,7 +19,7 @@ public class AnonymousClass { } // method complexity: 1 - public void anonymousClassWithZeroComplexity() { + public void hasEmptyAnonymousClass() { Serializable serializable = new Serializable() { }; |