try { setInvocationOption(cache, option); cache.put(new Fqn(region, key), ITEM, value); } catch (Exception e) { throw new CacheException(e); }
try { setInvocationOption(cache, option); cache.put(new Fqn(region, key), ITEM, value); } catch (TimeoutException allowed) { // ignore it } catch (Exception e) { throw new CacheException(e); }
Clone fragments detected by clone detection tool
File path: /hibernate-distribution-3.3.2.GA/project/cache-jbosscache2/src/main/java/org/hibernate/cache/jbc2/util/CacheHelper.java File path: /hibernate-distribution-3.3.2.GA/project/cache-jbosscache2/src/main/java/org/hibernate/cache/jbc2/util/CacheHelper.java
Method name: void put(Cache, Fqn, Object, Object, Option) Method name: void putAllowingTimeout(Cache, Fqn, Object, Object, Option)
Number of AST nodes: 3 Number of AST nodes: 3
1
try {
1
try {
2
            setInvocationOption(cache, option);
2
            setInvocationOption(cache, option);
3
            cache.put(new Fqn(region, key), ITEM, value);
3
            cache.put(new Fqn(region, key), ITEM, value);
4
        }
4
        }
5
        catch (TimeoutException allowed) {
6
            // ignore it
7
        }
5
 catch (Exception e) {
8
        catch (Exception e) {
6
            throw new CacheException(e);
9
            throw new CacheException(e);
7
        }
10
        }
Summary
Number of common nesting structure subtrees0
Number of refactorable cases0
Number of non-refactorable cases0
Time elapsed for finding largest common nesting structure subtrees (ms)0.0
Clones locationClones are declared in the same class
Number of node comparisons1