File path: /hibernate-distribution-3.3.2.GA/project/core/src/main/java/org/hibernate/persister/entity/AbstractEntityPersister.java | File path: /hibernate-distribution-3.3.2.GA/project/core/src/main/java/org/hibernate/persister/entity/AbstractEntityPersister.java | |||
Method name: String concretePropertySelectFragment(String, ValueInclusion[])
|
Method name: String concretePropertySelectFragment(String, boolean[])
|
|||
Number of AST nodes: 1 | Number of AST nodes: 1 | |||
1 | return concretePropertySelectFragment(↵ | 1 | return concretePropertySelectFragment(↵ | |
2 | alias,↵ | 2 | alias,↵ | |
3 | new InclusionChecker() {↵ | 3 | new InclusionChecker() {↵ | |
4 | // TODO : currently we really do not handle ValueInclusion.PARTIAL...↵ | 4 | ↵ | |
5 | // ValueInclusion.PARTIAL would indicate parts of a component need to↵ | |||
6 | // be included in the select; currently we then just render the entire↵ | |||
7 | // component into the select clause in that case.↵ | |||
8 | public boolean includeProperty(int propertyNumber) {↵ | 5 | public boolean includeProperty(int propertyNumber) {↵ | |
9 | return inclusions[propertyNumber] != ValueInclusion.NONE;↵ | 6 | return includeProperty[propertyNumber];↵ | |
10 | }↵ | 7 | }↵ | |
11 | }↵ | 8 | }↵ | |
12 | ); | 9 |
| |
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.0 |
Clones location | Clones are declared in the same class |
Number of node comparisons | 1 |
Number of mapped statements | 1 |
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 2 |
ID | Statement | ID | Statement | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
1 | return concretePropertySelectFragment(alias, new InclusionChecker() {...}); |
| 1 | return concretePropertySelectFragment(alias, new InclusionChecker() {...}); |
Row | Violation |
---|