KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > com > puppycrawl > tools > checkstyle > checks > metrics > BooleanExpressionComplexityCheckTestInput


1 package com.puppycrawl.tools.checkstyle.checks.metrics;
2
3 public class BooleanExpressionComplexityCheckTestInput {
4     private boolean _a = false;
5     private boolean _b = false;
6     private boolean _c = false;
7     private boolean _d = false;
8
9     public void foo() {
10         if (_a && _b || _c ^ _d) {
11         }
12
13         if (((_a && (_b & _c)) || (_c ^ _d))) {
14         }
15
16         if (_a && _b && _c) {
17         }
18
19         if (_a & _b) {
20         }
21
22         if (_a) {
23         }
24     }
25
26     public boolean equals(Object JavaDoc object) {
27         return (((_a && (_b & _c)) || (_c ^ _d)));
28     }
29 }
30
Popular Tags