File path: /apache-ant-1.7.0/src/org/apache/tools/ant/taskdefs/optional/NetRexxC.java | File path: /apache-ant-1.7.0/src/org/apache/tools/ant/taskdefs/optional/NetRexxC.java | |||
Method name: void init()
|
Method name: void init()
|
|||
Number of AST nodes: 12 | Number of AST nodes: 12 | |||
1 | if ((p = getProject().getProperty("ant.netrexxc.binary")) != null) {↵ | 1 | if ((p = getProject().getProperty("ant.netrexxc.strictcase")) != null) {↵ | |
2 | this.binary = Project.toBoolean(p);↵ | 2 | this.strictcase = Project.toBoolean(p);↵ | |
3 | }↵ | 3 | }↵ | |
4 | // classpath makes no sense↵ | |||
5 | if ((p = getProject().getProperty("ant.netrexxc.comments")) != null) {↵ | 4 | if ((p = getProject().getProperty("ant.netrexxc.strictimport")) != null) {↵ | |
6 | this.comments = Project.toBoolean(p);↵ | 5 | this.strictimport = Project.toBoolean(p);↵ | |
7 | }↵ | 6 | }↵ | |
8 | if ((p = getProject().getProperty("ant.netrexxc.compact")) != null) {↵ | 7 | if ((p = getProject().getProperty("ant.netrexxc.strictprops")) != null) {↵ | |
9 | this.compact = Project.toBoolean(p);↵ | 8 | this.strictprops = Project.toBoolean(p);↵ | |
10 | }↵ | 9 | }↵ | |
11 | if ((p = getProject().getProperty("ant.netrexxc.compile")) != null) {↵ | 10 | if ((p = getProject().getProperty("ant.netrexxc.strictsignal")) != null) {↵ | |
12 | this.compile = Project.toBoolean(p);↵ | 11 | this.strictsignal = Project.toBoolean(p);↵ | |
13 | }↵ | 12 | }↵ | |
14 | if ((p = getProject().getProperty("ant.netrexxc.console")) != null) {↵ | 13 | if ((p = getProject().getProperty("ant.netrexxc.symbols")) != null) {↵ | |
15 | this.console = Project.toBoolean(p);↵ | 14 | this.symbols = Project.toBoolean(p);↵ | |
16 | }↵ | 15 | }↵ | |
17 | if ((p = getProject().getProperty("ant.netrexxc.crossref")) != null) {↵ | 16 | if ((p = getProject().getProperty("ant.netrexxc.time")) != null) {↵ | |
18 | this.crossref = Project.toBoolean(p);↵ | 17 | this.time = Project.toBoolean(p);↵ | |
19 | } | 18 |
| |
See real code fragment | See real code fragment |
Number of common nesting structure subtrees | 1 |
Number of refactorable cases | 0 |
Number of non-refactorable cases | 1 |
Time elapsed for finding largest common nesting structure subtrees (ms) | 5.2 |
Clones location | Clones are in the same method |
Number of node comparisons | 99 |
Number of mapped statements | 12 |
Number of unmapped statements in the first code fragment | 0 |
Number of unmapped statements in the second code fragment | 0 |
Time elapsed for statement mapping (ms) | 7.8 |
Clone type | Type 2 |
ID | Statement | ID | Statement | |||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
2 | if ((p = getProject().getProperty("ant.netrexxc.binary")) != null) |
| 36 | if ((p = getProject().getProperty("ant.netrexxc.strictcase")) != null) | ||||||||||||
3 | this.binary = Project.toBoolean(p); |
| 37 | this.strictcase = Project.toBoolean(p); | ||||||||||||
4 | if ((p = getProject().getProperty("ant.netrexxc.comments")) != null) |
| 38 | if ((p = getProject().getProperty("ant.netrexxc.strictimport")) != null) | ||||||||||||
5 | this.comments = Project.toBoolean(p); |
| 39 | this.strictimport = Project.toBoolean(p); | ||||||||||||
6 | if ((p = getProject().getProperty("ant.netrexxc.compact")) != null) |
| 40 | if ((p = getProject().getProperty("ant.netrexxc.strictprops")) != null) | ||||||||||||
7 | this.compact = Project.toBoolean(p); |
| 41 | this.strictprops = Project.toBoolean(p); | ||||||||||||
8 | if ((p = getProject().getProperty("ant.netrexxc.compile")) != null) |
| 42 | if ((p = getProject().getProperty("ant.netrexxc.strictsignal")) != null) | ||||||||||||
9 | this.compile = Project.toBoolean(p); |
| 43 | this.strictsignal = Project.toBoolean(p); | ||||||||||||
10 | if ((p = getProject().getProperty("ant.netrexxc.console")) != null) |
| 44 | if ((p = getProject().getProperty("ant.netrexxc.symbols")) != null) | ||||||||||||
11 | this.console = Project.toBoolean(p); |
| 45 | this.symbols = Project.toBoolean(p); | ||||||||||||
12 | if ((p = getProject().getProperty("ant.netrexxc.crossref")) != null) |
| 46 | if ((p = getProject().getProperty("ant.netrexxc.time")) != null) | ||||||||||||
13 | this.crossref = Project.toBoolean(p); |
| 47 | this.time = Project.toBoolean(p); |
Row | Violation |
---|---|
1 | Expression this.binary is a field being modified, and thus it cannot be parameterized |
2 | Expression this.strictcase is a field being modified, and thus it cannot be parameterized |
3 | Expression this.comments is a field being modified, and thus it cannot be parameterized |
4 | Expression this.strictimport is a field being modified, and thus it cannot be parameterized |
5 | Expression this.compact is a field being modified, and thus it cannot be parameterized |
6 | Expression this.strictprops is a field being modified, and thus it cannot be parameterized |
7 | Expression this.compile is a field being modified, and thus it cannot be parameterized |
8 | Expression this.strictsignal is a field being modified, and thus it cannot be parameterized |
9 | Expression this.console is a field being modified, and thus it cannot be parameterized |
10 | Expression this.symbols is a field being modified, and thus it cannot be parameterized |
11 | Expression this.crossref is a field being modified, and thus it cannot be parameterized |
12 | Expression this.time is a field being modified, and thus it cannot be parameterized |