161-2-3

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; }
ProcessingInstructionStackFrame pushProcessingInstruction(XMLTypeResourceImpl.StackFrame previous, Attributes attributes) { ProcessingInstructionStackFrame resultProcessingInstruction = processingInstruction == null ? new ProcessingInstructionStackFrame() : processingInstruction; processingInstruction = null; resultProcessingInstruction.pushOnto(previous); resultProcessingInstruction.handleAttributes(attributes); return resultProcessingInstruction; } /** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ public ProcessingInstruction popProcessingInstruction(ProcessingInstructionStackFrame processingInstruction) { ProcessingInstruction resultProcessingInstructionValue = processingInstruction.popProcessingInstruction(); this.processingInstruction = processingInstruction; return resultProcessingInstructionValue; }

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

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

1

    ProcessingInstructionStackFrame pushProcessingInstruction(XMLTypeResourceImpl.StackFrame previous, Attributes attributes)↵

2

        {↵

2

        {↵

3

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

3

           ↵

4

           simpleAnyType↵

4

    ProcessingInstructionStackFrame resultProcessingInstruction = processingInstruction == null ? new ProcessingInstructionStackFrame() : processingInstruction;↵

5

     = null;↵

5

           processingInstruction = null;↵

6

           resultSimpleAnyType.pushOnto(previous);↵

6

           resultProcessingInstruction.pushOnto(previous);↵

7

           resultSimpleAnyType.handleAttributes(attributes);↵

7

           resultProcessingInstruction.handleAttributes(attributes);↵

8

           return resultSimpleAnyType;↵

8

           return resultProcessingInstruction;↵

9

        }↵

9

        }↵

10

        /**↵

10

        /**↵

11

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

11

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

12

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

12

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

13

         * @generated↵

13

         * @generated↵

14

         */↵

14

         */↵

15

        public SimpleAnyType popSimpleAnyType(SimpleAnyTypeStackFrame simpleAnyType)↵

15

        public ↵

16

        {↵

17

          SimpleAnyType resultSimpleAnyTypeValue = simpleAnyType.popSimpleAnyType();↵

18

          this.simpleAnyType = simpleAnyType;↵

19

          return resultSimpleAnyType↵

16

    ProcessingInstruction popProcessingInstruction(ProcessingInstructionStackFrame processingInstruction)↵

17

        {↵

18

          ProcessingInstruction resultProcessingInstructionValue = processingInstruction.popProcessingInstruction();↵

19

          this.processingInstruction = processingInstruction;↵

20

    Value;↵

20

          return resultProcessingInstructionValue;↵

21

        }

21

        }

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