public class ClassNotFoundException extends XMIException { private static final long serialVersionUID = 1L; protected String className; protected transient EFactory factory; public ClassNotFoundException(String name, EFactory factory, String location, int line, int column) { super("Class '" + name + "' not found.", location, line, column); className = name; this.factory = factory; } public String getName() { return className; } public EFactory getFactory() { return factory;
public class FeatureNotFoundException extends XMIException { private static final long serialVersionUID = 1L; protected String featureName; protected transient EObject object; public FeatureNotFoundException(String name, EObject object, String location, int line, int column) { super("Feature '" + name + "' not found.", location, line, column); featureName = name; this.object = object; } public String getName() { return featureName; } public EObject getObject() { return object;
Clone fragments detected by clone detection tool
File path: /emf-2.4.1/src/org/eclipse/emf/ecore/xmi/ClassNotFoundException.java File path: /emf-2.4.1/src/org/eclipse/emf/ecore/xmi/FeatureNotFoundException.java
Method name: Method name:
Number of AST nodes: 0 Number of AST nodes: 0
1
public class ClassNotFoundException extends XMIException 
1
public class FeatureNotFoundException extends XMIException 
2
{
2
{
3
  private static final long serialVersionUID = 1L;
3
  private static final long serialVersionUID = 1L;
4
  protected String className;
4
  protected String featureName;
5
  protected transient EFactory factory;
5
  protected transient EObject object;
6
  public ClassNotFoundException(String name, EFactory factory, String location, int line, int column) 
6
  public FeatureNotFoundException(String name, EObject object, String location, int line, int column) 
7
  {
7
  {
8
    super("Class '" + name + "' not found.", location, line, column);
8
    super("Feature '" + name + "' not found.", location, line, column);
9
    className = name;
9
    featureName = name;
10
    this.factory = factory;
10
    this.object = object;
11
  }
11
  }
12
  
12
  
13
  public String getName() 
13
  public String getName() 
14
  {
14
  {
15
    return className;
15
    return featureName;
16
  }  
16
  }  
17
  
17
  
18
  public EFactory getFactory() 
18
  public EObject getObject() 
19
  {
19
  {
20
    return factory;
20
    return object;
21
  
21
  
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