File path: /jakarta-jmeter-2.3.2/src/org/apache/jmeter/monitor/parser/MonitorHandler.java | File path: /jakarta-jmeter-2.3.2/src/org/apache/jmeter/monitor/parser/MonitorHandler.java | |||
Method name: void endElement(String, String, String)
|
Method name: void endElement(String, String, String)
|
|||
Number of AST nodes: 8 | Number of AST nodes: 12 | |||
1 | if (qName.equals(Constants.THREADINFO)) {↵ | |||
1 | if (stacktree.peek() instanceof Status) {↵ | 2 | if (stacktree.peek() instanceof ThreadInfo) {↵ | |
2 | stacktree.pop();↵ | 3 | stacktree.pop();↵ | |
3 | }↵ | 4 | }↵ | |
4 | } else if (qName.equals(Constants.JVM)) {↵ | 5 | } else if (qName.equals(Constants.REQUESTINFO)) {↵ | |
5 | if (stacktree.peek() instanceof Jvm) {↵ | 6 | if (stacktree.peek() instanceof RequestInfo) {↵ | |
6 | stacktree.pop();↵ | 7 | stacktree.pop();↵ | |
7 | }↵ | 8 | }↵ | |
8 | } else if (qName.equals(Constants.MEMORY)) {↵ | 9 | } else if (qName.equals(Constants.WORKERS)) {↵ | |
9 | if (stacktree.peek() instanceof Memory) {↵ | 10 | if (stacktree.peek() instanceof Workers) {↵ | |
10 | stacktree.pop();↵ | 11 | stacktree.pop();↵ | |
11 | }↵ | 12 | }↵ | |
12 | } else if (qName.equals(Constants.CONNECTOR)) {↵ | 13 | } else if (qName.equals(Constants.WORKER)) {↵ | |
13 | if (stacktree.peek() instanceof Connector || stacktree.peek() instanceof Connector) {↵ | 14 | if (stacktree.peek() instanceof Worker || stacktree.peek() instanceof Worker) {↵ | |
14 | stacktree.pop();↵ | 15 | stacktree.pop();↵ | |
15 | } | 16 | }↵ | |
17 |
| |||
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.4 |
Clones location | Clones are in the same method |
Number of node comparisons | 8 |
Number of mapped statements | 2 |
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) | 0.7 |
Clone type | Type 2 |
ID | Statement | ID | Statement | ||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
2 | if (stacktree.peek() instanceof Status) |
| 14 | if (stacktree.peek() instanceof ThreadInfo) | |||||||||||
3 | stacktree.pop(); | 15 | stacktree.pop(); |
Row | Violation |
---|---|
1 | Type org.apache.jmeter.monitor.model.Status does not match with type org.apache.jmeter.monitor.model.ThreadInfo |