return new NotificationImpl(eventType, oldObject, newObject, index, wasSet) { @Override public Object getNotifier() { return DelegatingNotifyingListImpl.this.getNotifier(); } @Override public Object getFeature() { return DelegatingNotifyingListImpl.this.getFeature(); } @Override public int getFeatureID(Class<?> expectedClass) { return DelegatingNotifyingListImpl.this.getFeatureID(expectedClass); } };
return new NotificationImpl(eventType, oldObject, newObject, index, wasSet) { @Override public Object getNotifier() { return NotifyingListImpl.this.getNotifier(); } @Override public Object getFeature() { return NotifyingListImpl.this.getFeature(); } @Override public int getFeatureID(Class<?> expectedClass) { return NotifyingListImpl.this.getFeatureID(expectedClass); } };
Clone fragments detected by clone detection tool
File path: /emf-2.4.1/src/org/eclipse/emf/common/notify/impl/DelegatingNotifyingListImpl.java File path: /emf-2.4.1/src/org/eclipse/emf/common/notify/impl/NotifyingListImpl.java
Method name: NotificationImpl createNotification(int, Object, Object, int, boolean) Method name: NotificationImpl createNotification(int, Object, Object, int, boolean)
Number of AST nodes: 1 Number of AST nodes: 1
1
return 
1
return 
2
      new NotificationImpl(eventType, oldObject, newObject, index, wasSet)
2
      new NotificationImpl(eventType, oldObject, newObject, index, wasSet)
3
      {
3
      {
4
        @Override
4
        @Override
5
        public Object getNotifier()
5
        public Object getNotifier()
6
        {
6
        {
7
          return DelegatingNotifyingListImpl.this.getNotifier();
7
          return NotifyingListImpl.this.getNotifier();
8
        }
8
        }
9
        @Override
9
        @Override
10
        public Object getFeature()
10
        public Object getFeature()
11
        {
11
        {
12
          return DelegatingNotifyingListImpl.this.getFeature();
12
          return NotifyingListImpl.this.getFeature();
13
        }
13
        }
14
        @Override
14
        @Override
15
        public int getFeatureID(Class<?> expectedClass)
15
        public int getFeatureID(Class<?> expectedClass)
16
        {
16
        {
17
          return DelegatingNotifyingListImpl.this.getFeatureID(expectedClass);
17
          return NotifyingListImpl.this.getFeatureID(expectedClass);
18
        }
18
        }
19
      };
19
      };
Summary
Number of common nesting structure subtrees1
Number of refactorable cases0
Number of non-refactorable cases1
Time elapsed for finding largest common nesting structure subtrees (ms)0.0
Clones locationClones are in different classes having the same super class
Number of node comparisons1
  1. {Non-refactorable}
    Mapping Summary
    Number of mapped statements0
    Number of unmapped statements in the first code fragment0
    Number of unmapped statements in the second code fragment0
    Time elapsed for statement mapping (ms)0.0
    Clone typeUnknown type
    Mapped Statements
    ID Statement ID Statement
    Precondition Violations (0)
    Row Violation