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: 14 | Number of AST nodes: 14 | |||
1 | if (categories.contains(PRE_PROCESSORS)) {↵ | 1 | if (categories.contains(PRE_PROCESSORS)) {↵ | |
2 | preProcessors.add(new MenuInfo(item.getStaticLabel(), name));↵ | 2 | preProcessors.add(new MenuInfo(item.getStaticLabel(), name));↵ | |
3 | }↵ | 3 | }↵ | |
4 | if (categories.contains(CONTROLLERS)) {↵ | 4 | if (categories.contains(CONTROLLERS)) {↵ | |
5 | controllers.add(new MenuInfo(item.getStaticLabel(), name));↵ | 5 | controllers.add(new MenuInfo(item.getStaticLabel(), name));↵ | |
6 | }↵ | 6 | }↵ | |
7 | if (categories.contains(SAMPLERS)) {↵ | |||
8 | samplers.add(new MenuInfo(item.getStaticLabel(), name));↵ | |||
9 | }↵ | |||
7 | if (categories.contains(NON_TEST_ELEMENTS)) {↵ | 10 | if (categories.contains(NON_TEST_ELEMENTS)) {↵ | |
8 | nonTestElements.add(new MenuInfo(item.getStaticLabel(), name));↵ | 11 | nonTestElements.add(new MenuInfo(item.getStaticLabel(), name));↵ | |
9 | }↵ | 12 | }↵ | |
10 | if (categories.contains(LISTENERS)) {↵ | 13 | if (categories.contains(LISTENERS)) {↵ | |
11 | listeners.add(new MenuInfo(item.getStaticLabel(), name));↵ | 14 | listeners.add(new MenuInfo(item.getStaticLabel(), name));↵ | |
12 | }↵ | 15 | }↵ | |
13 | if (categories.contains(CONFIG_ELEMENTS)) {↵ | 16 | if (categories.contains(CONFIG_ELEMENTS)) {↵ | |
14 | configElements.add(new MenuInfo(item.getStaticLabel(), name));↵ | 17 | configElements.add(new MenuInfo(item.getStaticLabel(), name));↵ | |
15 | }↵ | 18 | }↵ | |
16 | if (categories.contains(TABLES)) {↵ | 19 | if (categories.contains(ASSERTIONS)) {↵ | |
17 | tables.add(new MenuInfo(item.getStaticLabel(), name));↵ | 20 | ↵ | |
18 | }↵ | |||
19 | if (categories.contains(REPORT_PAGE)) {↵ | |||
20 | reportPage.add(new MenuInfo(item.getStaticLabel(), name));↵ | 21 | assertions.add(new MenuInfo(item.getStaticLabel(), name));↵ | |
21 | } | 22 |
| |
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) | 3.2 |
Clones location | Clones are in different classes |
Number of node comparisons | 134 |
Number of mapped statements | 14 |
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) | 27.1 |
Clone type | Type 2 |
ID | Statement | ID | Statement | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
41 | if (categories.contains(PRE_PROCESSORS)) | 45 | if (categories.contains(PRE_PROCESSORS)) | |||||||||||
42 | preProcessors.add(new MenuInfo(item.getStaticLabel(), name)); | 46 | preProcessors.add(new MenuInfo(item.getStaticLabel(), name)); | |||||||||||
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)) | 53 | if (categories.contains(LISTENERS)) | |||||||||||
48 | listeners.add(new MenuInfo(item.getStaticLabel(), name)); | 54 | listeners.add(new MenuInfo(item.getStaticLabel(), name)); | |||||||||||
49 | if (categories.contains(CONFIG_ELEMENTS)) | 55 | if (categories.contains(CONFIG_ELEMENTS)) | |||||||||||
50 | configElements.add(new MenuInfo(item.getStaticLabel(), name)); | 56 | configElements.add(new MenuInfo(item.getStaticLabel(), name)); | |||||||||||
51 | if (categories.contains(TABLES)) |
| 49 | if (categories.contains(SAMPLERS)) | ||||||||||
52 | tables.add(new MenuInfo(item.getStaticLabel(), name)); |
| 50 | samplers.add(new MenuInfo(item.getStaticLabel(), name)); | ||||||||||
53 | if (categories.contains(REPORT_PAGE)) |
| 57 | if (categories.contains(ASSERTIONS)) | ||||||||||
54 | reportPage.add(new MenuInfo(item.getStaticLabel(), name)); |
| 58 | assertions.add(new MenuInfo(item.getStaticLabel(), name)); |
Row | Violation |
---|