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: 18 | Number of AST nodes: 18 | |||
1 | if ((p = getProject().getProperty("ant.netrexxc.sourcedir")) != null) {↵ | 1 | if ((p = getProject().getProperty("ant.netrexxc.binary")) != null) {↵ | |
2 | this.sourcedir = Project.toBoolean(p);↵ | 2 | this.binary = Project.toBoolean(p);↵ | |
3 | }↵ | 3 | }↵ | |
4 | // classpath makes no sense↵ | |||
4 | if ((p = getProject().getProperty("ant.netrexxc.strictargs")) != null) {↵ | 5 | if ((p = getProject().getProperty("ant.netrexxc.comments")) != null) {↵ | |
5 | this.strictargs = Project.toBoolean(p);↵ | 6 | this.comments = Project.toBoolean(p);↵ | |
6 | }↵ | 7 | }↵ | |
7 | if ((p = getProject().getProperty("ant.netrexxc.strictassign")) != null) {↵ | 8 | if ((p = getProject().getProperty("ant.netrexxc.compact")) != null) {↵ | |
8 | this.strictassign = Project.toBoolean(p);↵ | 9 | this.compact = Project.toBoolean(p);↵ | |
9 | }↵ | 10 | }↵ | |
10 | if ((p = getProject().getProperty("ant.netrexxc.strictcase")) != null) {↵ | 11 | if ((p = getProject().getProperty("ant.netrexxc.compile")) != null) {↵ | |
11 | this.strictcase = Project.toBoolean(p);↵ | 12 | this.compile = Project.toBoolean(p);↵ | |
12 | }↵ | 13 | }↵ | |
13 | if ((p = getProject().getProperty("ant.netrexxc.strictimport")) != null) {↵ | 14 | if ((p = getProject().getProperty("ant.netrexxc.console")) != null) {↵ | |
14 | this.strictimport = Project.toBoolean(p);↵ | 15 | this.console = Project.toBoolean(p);↵ | |
15 | }↵ | 16 | }↵ | |
16 | if ((p = getProject().getProperty("ant.netrexxc.strictprops")) != null) {↵ | 17 | if ((p = getProject().getProperty("ant.netrexxc.crossref")) != null) {↵ | |
17 | this.strictprops = Project.toBoolean(p);↵ | 18 | this.crossref = Project.toBoolean(p);↵ | |
18 | }↵ | 19 | }↵ | |
19 | if ((p = getProject().getProperty("ant.netrexxc.strictsignal")) != null) {↵ | 20 | if ((p = getProject().getProperty("ant.netrexxc.decimal")) != null) {↵ | |
20 | this.strictsignal = Project.toBoolean(p);↵ | 21 | this.decimal = Project.toBoolean(p);↵ | |
22 | // destDir↵ | |||
21 | }↵ | 23 | }↵ | |
22 | if ((p = getProject().getProperty("ant.netrexxc.symbols")) != null) {↵ | 24 | if ((p = getProject().getProperty("ant.netrexxc.diag")) != null) {↵ | |
23 | this.symbols = Project.toBoolean(p);↵ | 25 | this.diag = Project.toBoolean(p);↵ | |
24 | }↵ | 26 | }↵ | |
25 | if ((p = getProject().getProperty("ant.netrexxc.time")) != null) {↵ | 27 | if ((p = getProject().getProperty("ant.netrexxc.explicit")) != null) {↵ | |
26 | this.time = Project.toBoolean(p);↵ | 28 | this.explicit = Project.toBoolean(p);↵ | |
27 | } | 29 |
| |
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) | 11.4 |
Clones location | Clones are in the same method |
Number of node comparisons | 216 |
Number of mapped statements | 18 |
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) | 13.4 |
Clone type | Type 2 |
ID | Statement | ID | Statement | |||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
30 | if ((p = getProject().getProperty("ant.netrexxc.sourcedir")) != null) |
| 2 | if ((p = getProject().getProperty("ant.netrexxc.binary")) != null) | ||||||||||||
31 | this.sourcedir = Project.toBoolean(p); |
| 3 | this.binary = Project.toBoolean(p); | ||||||||||||
32 | if ((p = getProject().getProperty("ant.netrexxc.strictargs")) != null) |
| 4 | if ((p = getProject().getProperty("ant.netrexxc.comments")) != null) | ||||||||||||
33 | this.strictargs = Project.toBoolean(p); |
| 5 | this.comments = Project.toBoolean(p); | ||||||||||||
34 | if ((p = getProject().getProperty("ant.netrexxc.strictassign")) != null) |
| 6 | if ((p = getProject().getProperty("ant.netrexxc.compact")) != null) | ||||||||||||
35 | this.strictassign = Project.toBoolean(p); |
| 7 | this.compact = Project.toBoolean(p); | ||||||||||||
36 | if ((p = getProject().getProperty("ant.netrexxc.strictcase")) != null) |
| 8 | if ((p = getProject().getProperty("ant.netrexxc.compile")) != null) | ||||||||||||
37 | this.strictcase = Project.toBoolean(p); |
| 9 | this.compile = Project.toBoolean(p); | ||||||||||||
38 | if ((p = getProject().getProperty("ant.netrexxc.strictimport")) != null) |
| 10 | if ((p = getProject().getProperty("ant.netrexxc.console")) != null) | ||||||||||||
39 | this.strictimport = Project.toBoolean(p); |
| 11 | this.console = Project.toBoolean(p); | ||||||||||||
40 | if ((p = getProject().getProperty("ant.netrexxc.strictprops")) != null) |
| 12 | if ((p = getProject().getProperty("ant.netrexxc.crossref")) != null) | ||||||||||||
41 | this.strictprops = Project.toBoolean(p); |
| 13 | this.crossref = Project.toBoolean(p); | ||||||||||||
42 | if ((p = getProject().getProperty("ant.netrexxc.strictsignal")) != null) |
| 14 | if ((p = getProject().getProperty("ant.netrexxc.decimal")) != null) | ||||||||||||
43 | this.strictsignal = Project.toBoolean(p); |
| 15 | this.decimal = Project.toBoolean(p); | ||||||||||||
44 | if ((p = getProject().getProperty("ant.netrexxc.symbols")) != null) |
| 16 | if ((p = getProject().getProperty("ant.netrexxc.diag")) != null) | ||||||||||||
45 | this.symbols = Project.toBoolean(p); |
| 17 | this.diag = Project.toBoolean(p); | ||||||||||||
46 | if ((p = getProject().getProperty("ant.netrexxc.time")) != null) |
| 18 | if ((p = getProject().getProperty("ant.netrexxc.explicit")) != null) | ||||||||||||
47 | this.time = Project.toBoolean(p); |
| 19 | this.explicit = Project.toBoolean(p); |
Row | Violation |
---|---|
1 | Expression this.sourcedir is a field being modified, and thus it cannot be parameterized |
2 | Expression this.binary is a field being modified, and thus it cannot be parameterized |
3 | Expression this.strictargs is a field being modified, and thus it cannot be parameterized |
4 | Expression this.comments is a field being modified, and thus it cannot be parameterized |
5 | Expression this.strictassign is a field being modified, and thus it cannot be parameterized |
6 | Expression this.compact is a field being modified, and thus it cannot be parameterized |
7 | Expression this.strictcase is a field being modified, and thus it cannot be parameterized |
8 | Expression this.compile is a field being modified, and thus it cannot be parameterized |
9 | Expression this.strictimport is a field being modified, and thus it cannot be parameterized |
10 | Expression this.console is a field being modified, and thus it cannot be parameterized |
11 | Expression this.strictprops is a field being modified, and thus it cannot be parameterized |
12 | Expression this.crossref is a field being modified, and thus it cannot be parameterized |
13 | Expression this.strictsignal is a field being modified, and thus it cannot be parameterized |
14 | Expression this.decimal is a field being modified, and thus it cannot be parameterized |
15 | Expression this.symbols is a field being modified, and thus it cannot be parameterized |
16 | Expression this.diag is a field being modified, and thus it cannot be parameterized |
17 | Expression this.time is a field being modified, and thus it cannot be parameterized |
18 | Expression this.explicit is a field being modified, and thus it cannot be parameterized |