File path: /jakarta-jmeter-2.3.2/src/org/apache/jmeter/gui/util/ReportMenuFactory.java | File path: /jakarta-jmeter-2.3.2/src/org/apache/jmeter/gui/util/ReportMenuFactory.java | |||
Method name: void initializeMenus()
|
Method name: void initializeMenus()
|
|||
Number of AST nodes: 6 | Number of AST nodes: 6 | |||
1 | if (categories.contains(POST_PROCESSORS)) {↵ | 1 | if (categories.contains(↵ | |
2 | postProcessor↵ | 2 | CONFIG_ELEMENTS)) {↵ | |
3 | s.add(new MenuInfo(item.getStaticLabel(), name));↵ | 3 | configElements.add(new MenuInfo(item.getStaticLabel(), name));↵ | |
4 | }↵ | 4 | }↵ | |
5 | if (categories.contains(PRE_PROCESSORS)) {↵ | 5 | if (categories.contains(↵ | |
6 | preProcessor↵ | 6 | TABLES)) {↵ | |
7 | s.add(new MenuInfo(item.getStaticLabel(), name));↵ | 7 | tables.add(new MenuInfo(item.getStaticLabel(), name));↵ | |
8 | }↵ | 8 | }↵ | |
9 | if (categories.contains(CONTROLLERS)) {↵ | 9 | if (categories.contains(↵ | |
10 | controllers↵ | 10 | REPORT_PAGE)) {↵ | |
11 | .add(new MenuInfo(item.getStaticLabel(), name));↵ | 11 | reportPage.add(new MenuInfo(item.getStaticLabel(), name));↵ | |
12 | } | 12 |
| |
See real code fragment | See real code fragment |
Number of common nesting structure subtrees | 1 |
Number of refactorable cases | 1 |
Number of non-refactorable cases | 0 |
Time elapsed for finding largest common nesting structure subtrees (ms) | 0.7 |
Clones location | Clones are in the same method |
Number of node comparisons | 28 |
Number of mapped statements | 6 |
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) | 15.7 |
Clone type | Type 2 |
ID | Statement | ID | Statement | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
39 | if (categories.contains(POST_PROCESSORS)) |
| 49 | if (categories.contains(CONFIG_ELEMENTS)) | ||||||||||
40 | postProcessors.add(new MenuInfo(item.getStaticLabel(), name)); |
| 50 | configElements.add(new MenuInfo(item.getStaticLabel(), name)); | ||||||||||
41 | if (categories.contains(PRE_PROCESSORS)) |
| 51 | if (categories.contains(TABLES)) | ||||||||||
42 | preProcessors.add(new MenuInfo(item.getStaticLabel(), name)); |
| 52 | tables.add(new MenuInfo(item.getStaticLabel(), name)); | ||||||||||
43 | if (categories.contains(CONTROLLERS)) |
| 53 | if (categories.contains(REPORT_PAGE)) | ||||||||||
44 | controllers.add(new MenuInfo(item.getStaticLabel(), name)); |
| 54 | reportPage.add(new MenuInfo(item.getStaticLabel(), name)); |
Row | Violation |
---|