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/MenuFactory.java | |||
Method name: void initializeMenus()
|
Method name: void initializeMenus()
|
|||
Number of AST nodes: 12 | Number of AST nodes: 12 | |||
1 | if (categories.contains(CONTROLLERS)) {↵ | 1 | if (categories.contains(TIMERS)) {↵ | |
2 | controllers.add(new MenuInfo(item.getStaticLabel(), name));↵ | 2 | timers.add(new MenuInfo(item.getStaticLabel(), name));↵ | |
3 | }↵ | 3 | }↵ | |
4 | if (categories.contains(NON_TEST_ELEMENTS)) {↵ | 4 | if (categories.contains(↵ | |
5 | nonTestElement↵ | 5 | POST_PROCESSORS)) {↵ | |
6 | s.add(new MenuInfo(item.getStaticLabel(), name));↵ | 6 | postProcessors.add(new MenuInfo(item.getStaticLabel(), name));↵ | |
7 | }↵ | 7 | }↵ | |
8 | if (categories.contains(LISTENERS)) {↵ | 8 | if (categories.contains(PRE_PROCESSORS)) {↵ | |
9 | listeners.add(new MenuInfo(item.getStaticLabel(), name));↵ | 9 | preProcessors.add(new MenuInfo(item.getStaticLabel(), name));↵ | |
10 | }↵ | 10 | }↵ | |
11 | if (categories.contains(CONFIG_ELEMENTS)) {↵ | 11 | if (categories.contains(CONTROLLERS)) {↵ | |
12 | configElements.add(new MenuInfo(item.getStaticLabel(), name));↵ | 12 | controllers.add(new MenuInfo(item.getStaticLabel(), name));↵ | |
13 | }↵ | 13 | }↵ | |
14 | if (categories.contains(TABLES)) {↵ | 14 | if (categories.contains(SAMPLERS)) {↵ | |
15 | tables.add(new MenuInfo(item.getStaticLabel(), name));↵ | 15 | samplers.add(new MenuInfo(item.getStaticLabel(), name));↵ | |
16 | }↵ | 16 | }↵ | |
17 | if (categories.contains(REPORT_PAGE)) {↵ | 17 | if (categories.contains(↵ | |
18 | reportPage↵ | 18 | NON_TEST_ELEMENTS)) {↵ | |
19 | .add(new MenuInfo(item.getStaticLabel(), name));↵ | 19 | nonTestElements.add(new MenuInfo(item.getStaticLabel(), name));↵ | |
20 | } | 20 |
| |
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) | 2.8 |
Clones location | Clones are in different classes |
Number of node comparisons | 100 |
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) | 54.2 |
Clone type | Type 2 |
ID | Statement | ID | Statement | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
43 | if (categories.contains(CONTROLLERS)) | 47 | if (categories.contains(CONTROLLERS)) | |||||||||||
44 | controllers.add(new MenuInfo(item.getStaticLabel(), name)); | 48 | controllers.add(new MenuInfo(item.getStaticLabel(), name)); | |||||||||||
45 | if (categories.contains(NON_TEST_ELEMENTS)) | 51 | if (categories.contains(NON_TEST_ELEMENTS)) | |||||||||||
46 | nonTestElements.add(new MenuInfo(item.getStaticLabel(), name)); | 52 | nonTestElements.add(new MenuInfo(item.getStaticLabel(), name)); | |||||||||||
47 | if (categories.contains(LISTENERS)) |
| 45 | if (categories.contains(PRE_PROCESSORS)) | ||||||||||
48 | listeners.add(new MenuInfo(item.getStaticLabel(), name)); |
| 46 | preProcessors.add(new MenuInfo(item.getStaticLabel(), name)); | ||||||||||
49 | if (categories.contains(CONFIG_ELEMENTS)) |
| 49 | if (categories.contains(SAMPLERS)) | ||||||||||
50 | configElements.add(new MenuInfo(item.getStaticLabel(), name)); |
| 50 | samplers.add(new MenuInfo(item.getStaticLabel(), name)); | ||||||||||
51 | if (categories.contains(TABLES)) |
| 43 | if (categories.contains(POST_PROCESSORS)) | ||||||||||
52 | tables.add(new MenuInfo(item.getStaticLabel(), name)); |
| 44 | postProcessors.add(new MenuInfo(item.getStaticLabel(), name)); | ||||||||||
53 | if (categories.contains(REPORT_PAGE)) |
| 41 | if (categories.contains(TIMERS)) | ||||||||||
54 | reportPage.add(new MenuInfo(item.getStaticLabel(), name)); |
| 42 | timers.add(new MenuInfo(item.getStaticLabel(), name)); |
Row | Violation |
---|