if (p == null) { log.info(iconProp + " not found - using inbuilt icon set"); return DEFAULT_ICONS; } log.info("Loaded icon properties from " + iconProp); String[][] iconlist = new String[p.size()][3]; Enumeration pe = p.keys(); int i = 0; while (pe.hasMoreElements()) { String key = (String) pe.nextElement(); String icons[] = JOrphanUtils.split(p.getProperty(key), " ");//$NON-NLS-1$ iconlist[i][0] = key; iconlist[i][1] = icons[0]; if (icons.length > 1) { iconlist[i][2] = icons[1]; } i++; } return iconlist;
if (p == null) { log.info(iconProp + " not found - using default icon set"); return DEFAULT_ICONS; } log.info("Loaded icon properties from " + iconProp); String[][] iconlist = new String[p.size()][3]; Enumeration pe = p.keys(); int i = 0; while (pe.hasMoreElements()) { String key = (String) pe.nextElement(); String icons[] = JOrphanUtils.split(p.getProperty(key), " "); iconlist[i][0] = key; iconlist[i][1] = icons[0]; if (icons.length > 1){ iconlist[i][2] = icons[1]; } i++; } return iconlist;
Clone fragments detected by clone detection tool
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;
Summary
Number of common nesting structure subtrees1
Number of refactorable cases1
Number of non-refactorable cases0
Time elapsed for finding largest common nesting structure subtrees (ms)0.3
Clones locationClones are in different classes
Number of node comparisons74
  1. {Refactorable}
    Mapping Summary
    Number of mapped statements16
    Number of unmapped statements in the first code fragment0
    Number of unmapped statements in the second code fragment0
    Time elapsed for statement mapping (ms)3.6
    Clone typeType 2
    Mapped Statements
    ID Statement ID Statement
    8
    if (p == null)
    3
    if (p == null)
    9
    log.info(iconProp + " not found - using inbuilt icon set");
    9
    log.info(iconProp + " not found - using inbuilt icon set");
    4
    log.info(iconProp + " not found - using default icon set");
    Differences
    Expression1Expression2Difference
    " not found - using inbuilt icon set"" not found - using default icon set"LITERAL_VALUE_MISMATCH
    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;
    Precondition Violations (0)
    Row Violation