package org.eclipse.emf.ecore.xmi.impl; import org.eclipse.emf.common.util.URI; import org.eclipse.emf.ecore.resource.Resource; import org.eclipse.emf.ecore.resource.impl.ResourceFactoryImpl; public class XMIResourceFactoryImpl extends ResourceFactoryImpl { /** * Constructor for XMIResourceFactoryImpl. */ public XMIResourceFactoryImpl() { super(); } @Override public Resource createResource(URI uri) { return new XMIResourceImpl(uri); } }
package org.eclipse.emf.ecore.xmi.impl; import org.eclipse.emf.common.util.URI; import org.eclipse.emf.ecore.resource.Resource; import org.eclipse.emf.ecore.resource.impl.ResourceFactoryImpl; /** * This class creates XMLResourceImpl objects. */ public class XMLResourceFactoryImpl extends ResourceFactoryImpl { /** * Constructor for XMLResourceFactoryImpl. */ public XMLResourceFactoryImpl() { super(); } /** * Creates an XMLResourceImpl and returns it. */ @Override public Resource createResource(URI uri) { return new XMLResourceImpl(uri); } }
Clone fragments detected by clone detection tool
File path: /emf-2.4.1/src/org/eclipse/emf/ecore/xmi/impl/XMIResourceFactoryImpl.java File path: /emf-2.4.1/src/org/eclipse/emf/ecore/xmi/impl/XMLResourceFactoryImpl.java
Method name: Method name:
Number of AST nodes: 0 Number of AST nodes: 0
1
package org.eclipse.emf.ecore.xmi.impl;
1
package org.eclipse.emf.ecore.xmi.impl;
2
import org.eclipse.emf.common.util.URI;
2
import org.eclipse.emf.common.util.URI;
3
import org.eclipse.emf.ecore.resource.Resource;
3
import org.eclipse.emf.ecore.resource.Resource;
4
import org.eclipse.emf.ecore.resource.impl.ResourceFactoryImpl;
4
import org.eclipse.emf.ecore.resource.impl.ResourceFactoryImpl;
5
/**
6
 * This class creates XMLResourceImpl objects.
7
 */
5
public class XMIResourceFactoryImpl extends ResourceFactoryImpl
8
public class XMLResourceFactoryImpl extends ResourceFactoryImpl 
6
{
9
{
7
  /**
10
  /**
8
   * Constructor for XMIResourceFactoryImpl.
11
   * Constructor for XMLResourceFactoryImpl.
9
   */
12
   */
10
  public XMIResourceFactoryImpl()
13
  public XMLResourceFactoryImpl() 
11
  {
14
  {
12
    super();
15
    super();
13
  }
16
  }
17
  /**
18
   * Creates an XMLResourceImpl and returns it.
19
   */
14
  @Override
20
  @Override
15
  public Resource createResource(URI uri)
21
  public Resource createResource(URI uri)
16
  {
22
  {
17
    return new XMIResourceImpl(uri);
23
    return new XMLResourceImpl(uri);
18
  }
24
  }
19
}
25
}
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.0
Clones location
Number of node comparisons0