aboutsummaryrefslogtreecommitdiffstats
path: root/plugins/sonar-squid-java-plugin/test-resources/bytecode/lcom4/src/ExclusionOfFieldNamesFromLcom4Calculation.java
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/sonar-squid-java-plugin/test-resources/bytecode/lcom4/src/ExclusionOfFieldNamesFromLcom4Calculation.java')
-rw-r--r--plugins/sonar-squid-java-plugin/test-resources/bytecode/lcom4/src/ExclusionOfFieldNamesFromLcom4Calculation.java21
1 files changed, 18 insertions, 3 deletions
diff --git a/plugins/sonar-squid-java-plugin/test-resources/bytecode/lcom4/src/ExclusionOfFieldNamesFromLcom4Calculation.java b/plugins/sonar-squid-java-plugin/test-resources/bytecode/lcom4/src/ExclusionOfFieldNamesFromLcom4Calculation.java
index 8e0490f3ea2..760389da3bb 100644
--- a/plugins/sonar-squid-java-plugin/test-resources/bytecode/lcom4/src/ExclusionOfFieldNamesFromLcom4Calculation.java
+++ b/plugins/sonar-squid-java-plugin/test-resources/bytecode/lcom4/src/ExclusionOfFieldNamesFromLcom4Calculation.java
@@ -5,13 +5,28 @@ import java.util.logging.Logger;
public class ExclusionOfFieldNamesFromLcom4Calculation {
- private static final Logger LOG =Logger.getLogger("log");
+ private final Logger LOG = Logger.getLogger("log");
+ private boolean killAccessorBlockA;
+ private boolean killAccessorBlockB;
- public void firstMethod(){
+ public void firstMethodBlockA(){
+ secondMethodBlockA();
LOG.log(Level.INFO, "a message");
}
- public void secondMethod(){
+ public void secondMethodBlockA(){
LOG.log(Level.INFO, "a message");
+ killAccessorBlockA = true;
}
+
+ public void firstMethodBlockB(){
+ secondMethodBlockB();
+ LOG.log(Level.INFO, "a message");
+ }
+
+ public void secondMethodBlockB(){
+ LOG.log(Level.INFO, "a message");
+ killAccessorBlockB = true;
+ }
+
}