Set tmp = new HashSet();
tmp.addAll( enabledFilters.keySet() );
this.filterNames = Collections.unmodifiableSet( tmp );
Set tmp = new HashSet();
tmp.addAll( enabledFilters.keySet() );
this.filterNames = Collections.unmodifiableSet( tmp );
Clone fragments detected by clone detection tool
File path: /hibernate-distribution-3.3.2.GA/project/core/src/main/java/org/hibernate/engine/query/QueryPlanCache.java
|
|
File path: /hibernate-distribution-3.3.2.GA/project/core/src/main/java/org/hibernate/engine/query/QueryPlanCache.java
|
Method name: void FilterQueryPlanKey(String, String, boolean, Map)
|
|
Method name: void HQLQueryPlanKey(String, boolean, Map)
|
Number of AST nodes: 3
|
|
Number of AST nodes: 3
|
|
1 | Set tmp = new HashSet();↵ | | 1 | Set tmp = new HashSet();↵
|
2 | tmp.addAll( enabledFilters.keySet() );↵ | | 2 | tmp.addAll( enabledFilters.keySet() );↵
|
3 | this.filterNames = Collections.unmodifiableSet( tmp ); | | 3 | this.filterNames = Collections.unmodifiableSet( tmp );
|
See real code fragment |
|
See real code fragment |
Summary
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.0 |
Clones location | Clones are in the same java file |
Number of node comparisons | 5 |
-
{Refactorable}
Mapping Summary
Number of mapped statements | 3 |
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) | 0.0 |
Clone type | Type 1 |
Mapped Statements
ID |
Statement |
|
ID |
Statement |
6 | Set tmp = new HashSet(); | | 5 | Set tmp = new HashSet(); |
7 | tmp.addAll(enabledFilters.keySet()); | | 6 | tmp.addAll(enabledFilters.keySet()); |
8 | this.filterNames = Collections.unmodifiableSet(tmp); | | 7 | this.filterNames = Collections.unmodifiableSet(tmp); |
Precondition Violations (0)
Row |
Violation |