CloneSet2584


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
11240.961class_body_declaration
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
111247
plugins/org.eclipse.jdt.core/model/org/eclipse/jdt/internal/core/jdom/DOMMethod.java
211257
plugins/org.eclipse.jdt.core/model/org/eclipse/jdt/internal/core/jdom/DOMType.java
Clone Instance
1
Line Count
11
Source Line
247
Source File
plugins/org.eclipse.jdt.core/model/org/eclipse/jdt/internal/core/jdom/DOMMethod.java

/**
 * @see IDOMMethod#addException(String)
 */
public void addException(String name) throws IllegalArgumentException {
        if (name == null) {
                throw new IllegalArgumentException(Messages.dom_nullExceptionType);
        }
        if (fExceptions == null) {
                fExceptions = new String[1];
                fExceptions[0] = name;
        }
        else   {
                fExceptions = appendString(fExceptions, name);
        }
        setExceptions(fExceptions);
}


Clone Instance
2
Line Count
11
Source Line
257
Source File
plugins/org.eclipse.jdt.core/model/org/eclipse/jdt/internal/core/jdom/DOMType.java

/**
 * @see IDOMType#addSuperInterface(String)
 */
public void addSuperInterface(String name) throws IllegalArgumentException {
        if (name == null) {
                throw new IllegalArgumentException(Messages.dom_addNullInterface);
        }
        if (fSuperInterfaces == null) {
                fSuperInterfaces = new String[1];
                fSuperInterfaces[0] = name;
        }
        else   {
                fSuperInterfaces = appendString(fSuperInterfaces, name);
        }
        setSuperInterfaces(fSuperInterfaces);
}


Clone AbstractionParameter Count: 4Parameter Bindings

/**
 * @see IDOMType#addSuperInterface(String)
 */
/**
 * @see IDOMMethod#addException(String)
 */
public void [[#variable72fa9d60]](String name) throws IllegalArgumentException {
  if (name == null) {
    throw new IllegalArgumentException(Messages. [[#variable72fa9cc0]]);
  }
  if ( [[#variable72fa9c20]]== null) {
     [[#variable72fa9c20]]= new String[1];
     [[#variable72fa9c20]][0] = name;
  }
  else {
     [[#variable72fa9c20]]= appendString( [[#variable72fa9c20]], name);
  }
   [[#variable72fa9bc0]]( [[#variable72fa9c20]]);
}
 

CloneAbstraction
Parameter Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
11[[#72fa9d60]]
addSuperInterface 
12[[#72fa9d60]]
addException 
21[[#72fa9cc0]]
dom_addNullInterface 
22[[#72fa9cc0]]
dom_nullExceptionType 
31[[#72fa9c20]]
fSuperInterfaces 
32[[#72fa9c20]]
fExceptions 
41[[#72fa9bc0]]
setSuperInterfaces 
42[[#72fa9bc0]]
setExceptions