EGenericType result = super.move(targetIndex, sourceIndex); if (isNotificationRequired()) { dispatchNotification (new ENotificationImpl (EOperationImpl.this, Notification.MOVE, EcorePackage.Literals.EOPERATION__EEXCEPTIONS, new Integer(sourceIndex), unwrap(result), targetIndex)); } return result;
EGenericType result = super.move(targetIndex, sourceIndex); if (isNotificationRequired()) { dispatchNotification (new ENotificationImpl (EClassImpl.this, Notification.MOVE, EcorePackage.Literals.ECLASS__ESUPER_TYPES, new Integer(sourceIndex), unwrap(result), targetIndex)); } return result;
Clone fragments detected by clone detection tool
File path: /emf-2.4.1/src/org/eclipse/emf/ecore/impl/EOperationImpl.java File path: /emf-2.4.1/src/org/eclipse/emf/ecore/impl/EClassImpl.java
Method name: EGenericType move(int, int) Method name: EGenericType move(int, int)
Number of AST nodes: 4 Number of AST nodes: 4
1
EGenericType result = super.move(targetIndex, sourceIndex);
1
EGenericType result = super.move(targetIndex, sourceIndex);
2
            if (isNotificationRequired())
2
            if (isNotificationRequired())
3
            {
3
            {
4
              dispatchNotification
4
              dispatchNotification
5
                (new ENotificationImpl
5
                (new ENotificationImpl
6
                   (EOperationImpl.this,
6
                   (EClassImpl.this,
7
                    Notification.MOVE, 
7
                    Notification.MOVE, 
8
                    EcorePackage.Literals.EOPERATION__EEXCEPTIONS,
8
                    EcorePackage.Literals.ECLASS__ESUPER_TYPES,
9
                    new Integer(sourceIndex),
9
                    new Integer(sourceIndex),
10
                    unwrap(result), 
10
                    unwrap(result), 
11
                    targetIndex));
11
                    targetIndex));
12
            }
12
            }
13
            return result;
13
            return result;
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.7
Clones locationClones are in different classes having the same super class
Number of node comparisons1