161-1-2

AnyTypeStackFrame pushAnyType(XMLTypeResourceImpl.StackFrame previous, Attributes attributes) { AnyTypeStackFrame resultAnyType = anyType == null ? new AnyTypeStackFrame() : anyType; anyType = null; resultAnyType.pushOnto(previous); resultAnyType.handleAttributes(attributes); return resultAnyType; } /** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ public AnyType popAnyType(AnyTypeStackFrame anyType) { AnyType resultAnyTypeValue = anyType.popAnyType(); this.anyType = anyType; return resultAnyTypeValue; }
SimpleAnyTypeStackFrame pushSimpleAnyType(XMLTypeResourceImpl.StackFrame previous, Attributes attributes) { SimpleAnyTypeStackFrame resultSimpleAnyType = simpleAnyType == null ? new SimpleAnyTypeStackFrame() : simpleAnyType; simpleAnyType = null; resultSimpleAnyType.pushOnto(previous); resultSimpleAnyType.handleAttributes(attributes); return resultSimpleAnyType; } /** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ public SimpleAnyType popSimpleAnyType(SimpleAnyTypeStackFrame simpleAnyType) { SimpleAnyType resultSimpleAnyTypeValue = simpleAnyType.popSimpleAnyType(); this.simpleAnyType = simpleAnyType; return resultSimpleAnyTypeValue; }

Clone fragments detected by clone detection tool
File path: /emf-2.4.1/src/org/eclipse/emf/ecore/xml/type/util/XMLTypeResourceImpl.java |  | File path: /emf-2.4.1/src/org/eclipse/emf/ecore/xml/type/util/XMLTypeResourceImpl.java
Method name: `` |  | Method name: ``
Number of AST nodes: 0 |  | Number of AST nodes: 0

1

    AnyTypeStackFrame pushAnyType(XMLTypeResourceImpl.StackFrame previous, Attributes attributes)↵

1

    SimpleAnyTypeStackFrame pushSimpleAnyType(XMLTypeResourceImpl.StackFrame previous, Attributes attributes)↵

2

        {↵

2

        {↵

3

           AnyTypeStackFrame resultAnyType = anyType == null ? new AnyTypeStackFrame() : anyType;↵

3

           SimpleAnyTypeStackFrame resultSimpleAnyType = simpleAnyType == null ? new SimpleAnyTypeStackFrame() : simpleAnyType;↵

4

           anyType = null;↵

4

           simpleAnyType = null;↵

5

           resultAnyType.pushOnto(previous);↵

5

           resultSimpleAnyType.pushOnto(previous);↵

6

           resultAnyType.handleAttributes(attributes);↵

6

           resultSimpleAnyType.handleAttributes(attributes);↵

7

           return resultAnyType;↵

7

           return resultSimpleAnyType;↵

8

        }↵

8

        }↵

9

        /**↵

9

        /**↵

10

         * <!-- begin-user-doc -->↵

10

         * <!-- begin-user-doc -->↵

11

         * <!-- end-user-doc -->↵

11

         * <!-- end-user-doc -->↵

12

         * @generated↵

12

         * @generated↵

13

         */↵

13

         */↵

14

        public AnyType popAnyType(AnyTypeStackFrame anyType)↵

14

        public SimpleAnyType popSimpleAnyType(SimpleAnyTypeStackFrame simpleAnyType)↵

15

        {↵

15

        {↵

16

          AnyType resultAnyTypeValue = anyType.popAnyType();↵

16

          SimpleAnyType resultSimpleAnyTypeValue = simpleAnyType.popSimpleAnyType();↵

17

          this.anyType = anyType;↵

17

          this.simpleAnyType = simpleAnyType;↵

18

          return resultAnyTypeValue;↵

18

          return resultSimpleAnyTypeValue;↵

19

        }

19

        }

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