Previous CloneSet | Next CloneSet | Back to Main Report |
Clone Mass | Clones in CloneSet | Parameter Count | Clone Similarity | Syntax Category [Sequence Length] |
---|---|---|---|---|
11 | 2 | 4 | 0.961 | class_body_declaration |
Clone Abstraction | Parameter Bindings |
Clone Instance (Click to see clone) | Line Count | Source Line | Source File |
---|---|---|---|
1 | 11 | 247 | plugins/org.eclipse.jdt.core/model/org/eclipse/jdt/internal/core/jdom/DOMMethod.java |
2 | 11 | 257 | plugins/org.eclipse.jdt.core/model/org/eclipse/jdt/internal/core/jdom/DOMType.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); } |
| ||||
/** * @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); } |
| |||
/** * @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 Index | Clone Instance | Parameter Name | Value |
---|---|---|---|
1 | 1 | [[#72fa9d60]] | addSuperInterface |
1 | 2 | [[#72fa9d60]] | addException |
2 | 1 | [[#72fa9cc0]] | dom_addNullInterface |
2 | 2 | [[#72fa9cc0]] | dom_nullExceptionType |
3 | 1 | [[#72fa9c20]] | fSuperInterfaces |
3 | 2 | [[#72fa9c20]] | fExceptions |
4 | 1 | [[#72fa9bc0]] | setSuperInterfaces |
4 | 2 | [[#72fa9bc0]] | setExceptions |