File path: /jakarta-jmeter-2.3.2/src/org/apache/jmeter/JMeter.java | File path: /jakarta-jmeter-2.3.2/src/org/apache/jmeter/JMeterReport.java | |||
Method name: String[][] getIconMappings()
|
Method name: String[][] getIconMappings()
|
|||
Number of AST nodes: 16 | Number of AST nodes: 16 | |||
1 | if (p == null) {↵ | 1 | if (p == null) {↵ | |
2 | log.info(iconProp + " not found - using inbuilt icon set");↵ | 2 | log.info(iconProp + " not found - using default icon set");↵ | |
3 | return DEFAULT_ICONS;↵ | 3 | return DEFAULT_ICONS;↵ | |
4 | }↵ | |||
5 | ↵ | 4 | }↵ | |
6 | log.info("Loaded icon properties from " + iconProp);↵ | 5 | log.info("Loaded icon properties from " + iconProp);↵ | |
7 | String[][] iconlist = new String[p.size()][3];↵ | 6 | String[][] iconlist = new String[p.size()][3];↵ | |
8 | Enumeration pe = p.keys();↵ | 7 | Enumeration pe = p.keys();↵ | |
9 | int i = 0;↵ | 8 | int i = 0;↵ | |
10 | while (pe.hasMoreElements()) {↵ | 9 | while (pe.hasMoreElements()) {↵ | |
11 | String key = (String) pe.nextElement();↵ | 10 | String key = (String) pe.nextElement();↵ | |
12 | String icons[] = JOrphanUtils.split(p.getProperty(key), " ");//$NON-NLS-1$↵ | 11 | String icons[] = JOrphanUtils.split(p.getProperty(key), " ");↵ | |
13 | ↵ | |||
14 | iconlist[i][0] = key;↵ | 12 | iconlist[i][0] = key;↵ | |
15 | iconlist[i][1] = icons[0];↵ | 13 | iconlist[i][1] = icons[0];↵ | |
16 | if (icons.length > 1) {↵ | 14 | if (icons.length > 1){↵ | |
17 | iconlist[i][2] = icons[1];↵ | 15 | iconlist[i][2] = icons[1];↵ | |
18 | }↵ | |||
19 | i++;↵ | |||
20 | }↵ | |||
21 | ↵ | 16 | }↵ | |
17 | i++;↵ | |||
18 | }↵ | |||
22 | return iconlist; | 19 | return iconlist; | |
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.3 |
Clones location | Clones are in different classes |
Number of node comparisons | 74 |
Number of mapped statements | 16 |
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) | 3.6 |
Clone type | Type 2 |
ID | Statement | ID | Statement | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
8 | if (p == null) | 3 | if (p == null) | |||||||||||
9 | log.info(iconProp + " not found - using inbuilt icon set"); |
| 4 | log.info(iconProp + " not found - using default icon set"); | ||||||||||
10 | return DEFAULT_ICONS; | 5 | return DEFAULT_ICONS; | |||||||||||
11 | log.info("Loaded icon properties from " + iconProp); | 6 | log.info("Loaded icon properties from " + iconProp); | |||||||||||
12 | String[][] iconlist = new String[p.size()][3]; | 7 | String[][] iconlist = new String[p.size()][3]; | |||||||||||
13 | Enumeration pe = p.keys(); | 8 | Enumeration pe = p.keys(); | |||||||||||
14 | int i = 0; | 9 | int i = 0; | |||||||||||
15 | while (pe.hasMoreElements()) | 10 | while (pe.hasMoreElements()) | |||||||||||
16 | String key = (String)pe.nextElement(); | 11 | String key = (String)pe.nextElement(); | |||||||||||
17 | String icons[] = JOrphanUtils.split(p.getProperty(key), " "); | 12 | String icons[] = JOrphanUtils.split(p.getProperty(key), " "); | |||||||||||
18 | iconlist[i][0] = key; | 13 | iconlist[i][0] = key; | |||||||||||
19 | iconlist[i][1] = icons[0]; | 14 | iconlist[i][1] = icons[0]; | |||||||||||
20 | if (icons.length > 1) | 15 | if (icons.length > 1) | |||||||||||
21 | iconlist[i][2] = icons[1]; | 16 | iconlist[i][2] = icons[1]; | |||||||||||
22 | i++; | 17 | i++; | |||||||||||
23 | return iconlist; | 18 | return iconlist; |
Row | Violation |
---|