1118-1-2

boolean isCDATA(FeatureMap.Entry entry) { return entry.getEStructuralFeature() == XMLTypeFeatures.CDATA; } public static boolean isCDATA(EStructuralFeature eStructuralFeature) { return eStructuralFeature == XMLTypeFeatures.CDATA; } public static void addComment(FeatureMap featureMap, String comment) { featureMap.add(XMLTypeFeatures.COMMENT, comment); } public static void addComment(FeatureMap featureMap, int index, String comment) { featureMap.add(index, XMLTypeFeatures.COMMENT, comment); } public static boolean isComment(FeatureMap.Entry entry) { return entry.getEStructuralFeature() == XMLTypeFeatures.COMMENT; } public static boolean isComment(EStructuralFeature eStructuralFeature) { return eStructuralFeature == XMLTypeFeatures.COMMENT; }
boolean isText(FeatureMap.Entry entry) { return entry.getEStructuralFeature() == XMLTypeFeatures.TEXT; } public static boolean isText(EStructuralFeature eStructuralFeature) { return eStructuralFeature == XMLTypeFeatures.TEXT; } public static void addCDATA(FeatureMap featureMap, String cdata) { featureMap.add(XMLTypeFeatures.CDATA, cdata); } public static void addCDATA(FeatureMap featureMap, int index, String cdata) { featureMap.add(index, XMLTypeFeatures.CDATA, cdata); } public static boolean isCDATA(FeatureMap.Entry entry) { return entry.getEStructuralFeature() == XMLTypeFeatures.CDATA; } public static boolean isCDATA(EStructuralFeature eStructuralFeature) { return eStructuralFeature == XMLTypeFeatures.CDATA; }

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

1

    boolean isCDATA(FeatureMap.Entry entry)↵

1

    boolean isText(FeatureMap.Entry entry)↵

2

      {↵

2

      {↵

3

        return entry.getEStructuralFeature() == XMLTypeFeatures.CDATA;↵

3

        return entry.getEStructuralFeature() == XMLTypeFeatures.TEXT;↵

4

      }↵

4

      }↵

5

      public static boolean isCDATA(EStructuralFeature eStructuralFeature)↵

5

      public static boolean isText(EStructuralFeature eStructuralFeature)↵

6

      {↵

6

      {↵

7

        return eStructuralFeature == XMLTypeFeatures.CDATA;↵

7

        return eStructuralFeature == XMLTypeFeatures.TEXT;↵

8

      }↵

8

      }↵

9

      public static void addComment(FeatureMap featureMap, String comment)↵

9

      public static void addCDATA(FeatureMap featureMap, String cdata)↵

10

      {↵

10

      {↵

11

        featureMap.add(XMLTypeFeatures.COMMENT, comment);↵

11

        featureMap.add(XMLTypeFeatures.CDATA, cdata);↵

12

      }↵

12

      }↵

13

      public static void addComment(FeatureMap featureMap, int index, String comment)↵

13

      public static void addCDATA(FeatureMap featureMap, int index, String cdata)↵

14

      {↵

14

      {↵

15

        featureMap.add(index, XMLTypeFeatures.COMMENT, comment);↵

15

        featureMap.add(index, XMLTypeFeatures.CDATA, cdata);↵

16

      }↵

16

      }↵

17

      public static boolean isComment(FeatureMap.Entry entry)↵

17

      public static boolean isCDATA(FeatureMap.Entry entry)↵

18

      {↵

18

      {↵

19

        return entry.getEStructuralFeature() == XMLTypeFeatures.COMMENT;↵

19

        return entry.getEStructuralFeature() == XMLTypeFeatures.CDATA;↵

20

      }↵

20

      }↵

21

      public static boolean isComment(EStructuralFeature eStructuralFeature)↵

21

      public static boolean isCDATA(EStructuralFeature eStructuralFeature)↵

22

      {↵

22

      {↵

23

        return eStructuralFeature == XMLTypeFeatures.COMMENT;↵

23

        return eStructuralFeature == XMLTypeFeatures.CDATA;↵

24

      }

24

      }

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