public boolean onFlushDirty(Object entity, Serializable id,
Object[] currentState, Object[] previousState,
String[] propertyNames, Type[] types) throws CallbackException {
if ( entity instanceof Document ) {
currentState[2] = Calendar.getInstance();
return true;
}
else {
return false;
public boolean onFlushDirty(
Object entity, Serializable id,
Object[] currentState, Object[] previousState,
String[] propertyNames, Type[] types
) throws CallbackException {
if ( entity instanceof Document ) {
currentState[3] = Calendar.getInstance();
return true;
}
else {
return false;
Clone fragments detected by clone detection tool
File path: /hibernate-distribution-3.3.2.GA/project/testsuite/src/test/java/org/hibernate/test/interfaceproxy/DocumentInterceptor.java
|
|
File path: /hibernate-distribution-3.3.2.GA/project/testsuite/src/test/java/org/hibernate/test/mixed/DocumentInterceptor.java
|
Method name:
|
|
Method name:
|
Number of AST nodes: 0
|
|
Number of AST nodes: 0
|
|
1 | public boolean onFlushDirty(↵ | | 1 | public boolean onFlushDirty(↵
|
2 | Object entity, Serializable id,↵ | | 2 | Object entity, Serializable id,↵
|
3 | Object[] currentState, Object[] previousState,↵ | | 3 | Object[] currentState, Object[] previousState,↵
|
4 | String[] propertyNames, Type[] types↵ | | 4 | String[] propertyNames, Type[] types↵
|
5 | ) throws CallbackException {↵ | | 5 | ) throws CallbackException {↵
|
6 | if ( entity instanceof Document ) {↵ | | 6 | if ( entity instanceof Document ) {↵
|
7 | currentState[2] = Calendar.getInstance();↵ | | 7 | currentState[3] = Calendar.getInstance();↵
|
8 | return true;↵ | | 8 | return true;↵
|
9 | }↵ | | 9 | }↵
|
10 | else {↵ | | 10 | else {↵
|
11 | return false;↵ | | 11 | return false;↵
|
12 | | | 12 |
|
See real code fragment |
|
See real code fragment |
Summary
Number of common nesting structure subtrees | 0 |
Number of refactorable cases | 0 |
Number of non-refactorable cases | 0 |
Time elapsed for finding largest common nesting structure subtrees (ms) | 0.0 |
Clones location | |
Number of node comparisons | 0 |