File path: /jakarta-jmeter-2.3.2/src/org/apache/jmeter/gui/util/MenuFactory.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: 8 | Number of AST nodes: 8 | |||
1 | if (categories.contains(TIMERS)) {↵ | |||
2 | timers.add(new MenuInfo(item.getStaticLabel(), name));↵ | |||
3 | }↵ | |||
4 | if (categories.contains(POST_PROCESSORS)) {↵ | 1 | if (categories.contains(POST_PROCESSORS)) {↵ | |
5 | postProcessors.add(new MenuInfo(item.getStaticLabel(), name));↵ | 2 | postProcessors.add(new MenuInfo(item.getStaticLabel(), name));↵ | |
6 | }↵ | 3 | }↵ | |
7 | if (categories.contains(PRE_PROCESSORS)) {↵ | 4 | if (categories.contains(PRE_PROCESSORS)) {↵ | |
8 | preProcessors.add(new MenuInfo(item.getStaticLabel(), name));↵ | 5 | preProcessors.add(new MenuInfo(item.getStaticLabel(), name));↵ | |
9 | }↵ | 6 | }↵ | |
10 | if (categories.contains(CONTROLLERS)) {↵ | 7 | if (categories.contains(CONTROLLERS)) {↵ | |
11 | controllers.add(new MenuInfo(item.getStaticLabel(), name));↵ | 8 | controllers.add(new MenuInfo(item.getStaticLabel(), name));↵ | |
12 | } | 9 | }↵ | |
10 | if (categories.contains(NON_TEST_ELEMENTS)) {↵ | |||
11 | nonTestElements.add(new MenuInfo(item.getStaticLabel(), name));↵ | |||
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) | 1.4 |
Clones location | Clones are in different classes |
Number of node comparisons | 47 |
Number of mapped statements | 8 |
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) | 11.6 |
Clone type | Type 2 |
ID | Statement | ID | Statement | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
41 | if (categories.contains(TIMERS)) |
| 41 | if (categories.contains(PRE_PROCESSORS)) | ||||||||||
42 | timers.add(new MenuInfo(item.getStaticLabel(), name)); |
| 42 | preProcessors.add(new MenuInfo(item.getStaticLabel(), name)); | ||||||||||
43 | if (categories.contains(POST_PROCESSORS)) | 39 | if (categories.contains(POST_PROCESSORS)) | |||||||||||
44 | postProcessors.add(new MenuInfo(item.getStaticLabel(), name)); | 40 | postProcessors.add(new MenuInfo(item.getStaticLabel(), name)); | |||||||||||
45 | if (categories.contains(PRE_PROCESSORS)) |
| 45 | if (categories.contains(NON_TEST_ELEMENTS)) | ||||||||||
46 | preProcessors.add(new MenuInfo(item.getStaticLabel(), name)); |
| 46 | nonTestElements.add(new MenuInfo(item.getStaticLabel(), name)); | ||||||||||
47 | if (categories.contains(CONTROLLERS)) | 43 | if (categories.contains(CONTROLLERS)) | |||||||||||
48 | controllers.add(new MenuInfo(item.getStaticLabel(), name)); | 44 | controllers.add(new MenuInfo(item.getStaticLabel(), name)); |
Row | Violation |
---|