try { return cache.get( new Fqn( regionFqn, key ), ITEM ); } catch (Exception e) { throw new CacheException(e); }
try { return cache.get( new Fqn( regionFqn, key ), ITEM ); } catch (Exception e) { throw new CacheException(e); }
Clone fragments detected by clone detection tool
File path: /hibernate-distribution-3.3.2.GA/project/cache-jbosscache/src/main/java/org/hibernate/cache/OptimisticTreeCache.java File path: /hibernate-distribution-3.3.2.GA/project/cache-jbosscache/src/main/java/org/hibernate/cache/TreeCache.java
Method name: Object read(Object) Method name: Object read(Object)
Number of AST nodes: 2 Number of AST nodes: 2
1
try {
1
try {
2
			return cache.get( new Fqn( regionFqn, key ), ITEM );
2
			return cache.get( new Fqn( regionFqn, key ), ITEM );
3
		}
3
		}
4
		catch (Exception e) {
4
		catch (Exception e) {
5
			throw new CacheException(e);
5
			throw new CacheException(e);
6
		}
6
		}
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.1
Clones locationClones are in different classes
Number of node comparisons4
  1. {Refactorable}
    Mapping Summary
    Number of mapped statements2
    Number of unmapped statements in the first code fragment0
    Number of unmapped statements in the second code fragment0
    Time elapsed for statement mapping (ms)0.4
    Clone typeType 1
    Mapped Statements
    ID Statement ID Statement
    1
    try
    1
    try
    2
    return cache.get(new Fqn(regionFqn, key), ITEM);
    2
    return cache.get(new Fqn(regionFqn, key), ITEM);
    Precondition Violations (0)
    Row Violation