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/MenuFactory.java | |||
Method name: void initializeMenus()
|
Method name: void initializeMenus()
|
|||
Number of AST nodes: 8 | Number of AST nodes: 8 | |||
1 | if (categories.contains(NON_TEST_ELEMENTS)) {↵ | 1 | if (categories.contains(↵ | |
2 | nonTestElement↵ | 2 | TIMERS)) {↵ | |
3 | s.add(new MenuInfo(item.getStaticLabel(), name));↵ | 3 | timers.add(new MenuInfo(item.getStaticLabel(), name));↵ | |
4 | }↵ | 4 | }↵ | |
5 | if (categories.contains(LISTENERS)) {↵ | 5 | if (categories.contains(POST_PROCESSORS)) {↵ | |
6 | listeners.add(new MenuInfo(item.getStaticLabel(), name));↵ | 6 | postProcessors.add(new MenuInfo(item.getStaticLabel(), name));↵ | |
7 | }↵ | 7 | }↵ | |
8 | if (categories.contains(CONFIG_ELEMENTS)) {↵ | 8 | if (categories.contains(↵ | |
9 | configElement↵ | 9 | PRE_PROCESSORS)) {↵ | |
10 | s.add(new MenuInfo(item.getStaticLabel(), name));↵ | 10 | preProcessors.add(new MenuInfo(item.getStaticLabel(), name));↵ | |
11 | }↵ | 11 | }↵ | |
12 | if (categories.contains(ASSERTIONS)) {↵ | 12 | if (categories.contains(CONTROLLERS)) {↵ | |
13 | assertions.add(new MenuInfo(item.getStaticLabel(), name));↵ | 13 | controllers.add(new MenuInfo(item.getStaticLabel(), name));↵ | |
14 | } | 14 |
| |
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.1 |
Clones location | Clones are in the same method |
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) | 26.1 |
Clone type | Type 2 |
ID | Statement | ID | Statement | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
51 | if (categories.contains(NON_TEST_ELEMENTS)) |
| 41 | if (categories.contains(TIMERS)) | ||||||||||
52 | nonTestElements.add(new MenuInfo(item.getStaticLabel(), name)); |
| 42 | timers.add(new MenuInfo(item.getStaticLabel(), name)); | ||||||||||
53 | if (categories.contains(LISTENERS)) |
| 43 | if (categories.contains(POST_PROCESSORS)) | ||||||||||
54 | listeners.add(new MenuInfo(item.getStaticLabel(), name)); |
| 44 | postProcessors.add(new MenuInfo(item.getStaticLabel(), name)); | ||||||||||
55 | if (categories.contains(CONFIG_ELEMENTS)) |
| 45 | if (categories.contains(PRE_PROCESSORS)) | ||||||||||
56 | configElements.add(new MenuInfo(item.getStaticLabel(), name)); |
| 46 | preProcessors.add(new MenuInfo(item.getStaticLabel(), name)); | ||||||||||
57 | if (categories.contains(ASSERTIONS)) |
| 47 | if (categories.contains(CONTROLLERS)) | ||||||||||
58 | assertions.add(new MenuInfo(item.getStaticLabel(), name)); |
| 48 | controllers.add(new MenuInfo(item.getStaticLabel(), name)); |
Row | Violation |
---|