File path: /jakarta-jmeter-2.3.2/src/org/apache/jmeter/JMeter.java | File path: /jakarta-jmeter-2.3.2/src/org/apache/jmeter/JMeterReport.java | |||
Method name: void run(String, String, boolean, String)
|
Method name: void run(String, String, boolean)
|
|||
Number of AST nodes: 5 | Number of AST nodes: 5 | |||
1 | if (summariserName.length() > 0) {↵ | 1 | if (summariserName.length() > 0) {↵ | |
2 | log.info("Creating summariser <" + summariserName + ">");↵ | 2 | log.info("Creating summariser <" + summariserName + ">");↵ | |
3 | println("Creating summariser <" + summariserName + ">");↵ | 3 | System.out.println("Creating summariser <" + summariserName + ">");↵ | |
4 | Summariser summer = new Summariser(summariserName);↵ | 4 | Summariser summer = new Summariser(summariserName);↵ | |
5 | tree.add(tree.getArray()[0], summer);↵ | 5 | tree.add(tree.getArray()[0], summer);↵ | |
6 | } | 6 |
| |
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) | 0.5 |
Clones location | Clones are in different classes |
Number of node comparisons | 26 |
Number of mapped statements | 5 |
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) | 18.8 |
Clone type | Type 2 |
ID | Statement | ID | Statement | |||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
26 | if (summariserName.length() > 0) | 17 | if (summariserName.length() > 0) | |||||||||||||||
27 | log.info("Creating summariser <" + summariserName + ">"); | 18 | log.info("Creating summariser <" + summariserName + ">"); | |||||||||||||||
28 | println("Creating summariser <" + summariserName + ">"); |
| 19 | System.out.println("Creating summariser <" + summariserName + ">"); | ||||||||||||||
29 | Summariser summer = new Summariser(summariserName); | 20 | Summariser summer = new Summariser(summariserName); | |||||||||||||||
30 | tree.add(tree.getArray()[0], summer); | 21 | tree.add(tree.getArray()[0], summer); |
Row | Violation |
---|---|
1 | Expression println("Creating summariser <" + summariserName + ">") cannot be parameterized, because it has dependencies to/from statements that will be extracted |
2 | Expression System.out.println("Creating summariser <" + summariserName + ">") cannot be parameterized, because it has dependencies to/from statements that will be extracted |
3 | Expression println("Creating summariser <" + summariserName + ">") is a void method call, and thus it cannot be parameterized |
4 | Expression System.out.println("Creating summariser <" + summariserName + ">") is a void method call, and thus it cannot be parameterized |