| Previous CloneSet | Next CloneSet | Back to Main Report |
| Clone Mass | Clones in CloneSet | Parameter Count | Clone Similarity | Syntax Category [Sequence Length] |
|---|---|---|---|---|
| 8 | 31 | 3 | 0.956 | block |
| Clone Abstraction | Parameter Bindings |
| Clone Instance (Click to see clone) | Line Count | Source Line | Source File |
|---|---|---|---|
| 1 | 8 | 341 | plugins/org.eclipse.jdt.core/dom/org/eclipse/jdt/core/dom/AnnotationTypeMemberDeclaration.java |
| 2 | 9 | 247 | plugins/org.eclipse.jdt.core/dom/org/eclipse/jdt/core/dom/ArrayCreation.java |
| 3 | 8 | 177 | plugins/org.eclipse.jdt.core/dom/org/eclipse/jdt/core/dom/ArrayType.java |
| 4 | 9 | 201 | plugins/org.eclipse.jdt.core/dom/org/eclipse/jdt/core/dom/AssertStatement.java |
| 5 | 8 | 196 | plugins/org.eclipse.jdt.core/dom/org/eclipse/jdt/core/dom/CastExpression.java |
| 6 | 8 | 199 | plugins/org.eclipse.jdt.core/dom/org/eclipse/jdt/core/dom/CatchClause.java |
| 7 | 8 | 239 | plugins/org.eclipse.jdt.core/dom/org/eclipse/jdt/core/dom/CatchClause.java |
| 8 | 8 | 247 | plugins/org.eclipse.jdt.core/dom/org/eclipse/jdt/core/dom/DoStatement.java |
| 9 | 8 | 221 | plugins/org.eclipse.jdt.core/dom/org/eclipse/jdt/core/dom/EnhancedForStatement.java |
| 10 | 8 | 301 | plugins/org.eclipse.jdt.core/dom/org/eclipse/jdt/core/dom/EnhancedForStatement.java |
| 11 | 8 | 178 | plugins/org.eclipse.jdt.core/dom/org/eclipse/jdt/core/dom/ExpressionStatement.java |
| 12 | 8 | 325 | plugins/org.eclipse.jdt.core/dom/org/eclipse/jdt/core/dom/FieldDeclaration.java |
| 13 | 8 | 332 | plugins/org.eclipse.jdt.core/dom/org/eclipse/jdt/core/dom/ForStatement.java |
| 14 | 8 | 273 | plugins/org.eclipse.jdt.core/dom/org/eclipse/jdt/core/dom/IfStatement.java |
| 15 | 8 | 270 | plugins/org.eclipse.jdt.core/dom/org/eclipse/jdt/core/dom/ImportDeclaration.java |
| 16 | 8 | 284 | plugins/org.eclipse.jdt.core/dom/org/eclipse/jdt/core/dom/Initializer.java |
| 17 | 8 | 235 | plugins/org.eclipse.jdt.core/dom/org/eclipse/jdt/core/dom/InstanceofExpression.java |
| 18 | 8 | 248 | plugins/org.eclipse.jdt.core/dom/org/eclipse/jdt/core/dom/LabeledStatement.java |
| 19 | 8 | 213 | plugins/org.eclipse.jdt.core/dom/org/eclipse/jdt/core/dom/MemberValuePair.java |
| 20 | 8 | 265 | plugins/org.eclipse.jdt.core/dom/org/eclipse/jdt/core/dom/MethodRefParameter.java |
| 21 | 8 | 208 | plugins/org.eclipse.jdt.core/dom/org/eclipse/jdt/core/dom/ParameterizedType.java |
| 22 | 8 | 217 | plugins/org.eclipse.jdt.core/dom/org/eclipse/jdt/core/dom/QualifiedType.java |
| 23 | 8 | 521 | plugins/org.eclipse.jdt.core/dom/org/eclipse/jdt/core/dom/SingleVariableDeclaration.java |
| 24 | 8 | 248 | plugins/org.eclipse.jdt.core/dom/org/eclipse/jdt/core/dom/SuperFieldAccess.java |
| 25 | 8 | 239 | plugins/org.eclipse.jdt.core/dom/org/eclipse/jdt/core/dom/SynchronizedStatement.java |
| 26 | 8 | 231 | plugins/org.eclipse.jdt.core/dom/org/eclipse/jdt/core/dom/TryStatement.java |
| 27 | 8 | 171 | plugins/org.eclipse.jdt.core/dom/org/eclipse/jdt/core/dom/TypeLiteral.java |
| 28 | 8 | 215 | plugins/org.eclipse.jdt.core/dom/org/eclipse/jdt/core/dom/TypeParameter.java |
| 29 | 8 | 391 | plugins/org.eclipse.jdt.core/dom/org/eclipse/jdt/core/dom/VariableDeclarationExpression.java |
| 30 | 8 | 394 | plugins/org.eclipse.jdt.core/dom/org/eclipse/jdt/core/dom/VariableDeclarationStatement.java |
| 31 | 8 | 248 | plugins/org.eclipse.jdt.core/dom/org/eclipse/jdt/core/dom/WhileStatement.java |
| ||||
{
if (type == null) {
throw new IllegalArgumentException();
}
ASTNode oldChild = this.memberType;
preReplaceChild(oldChild, type, TYPE_PROPERTY);
this.memberType = type;
postReplaceChild(oldChild, type, TYPE_PROPERTY);
}
|
| ||||
{
if (type == null) {
throw new IllegalArgumentException();
}
// an ArrayCreation cannot occur inside a ArrayType - cycles not possible
ASTNode oldChild = this.arrayType;
preReplaceChild(oldChild, type, TYPE_PROPERTY);
this.arrayType = type;
postReplaceChild(oldChild, type, TYPE_PROPERTY);
}
|
| ||||
{
if (componentType == null) {
throw new IllegalArgumentException();
}
ASTNode oldChild = this.componentType;
preReplaceChild(oldChild, componentType, COMPONENT_TYPE_PROPERTY);
this.componentType = componentType;
postReplaceChild(oldChild, componentType, COMPONENT_TYPE_PROPERTY);
}
|
| ||||
{
if (expression == null) {
throw new IllegalArgumentException();
}
// an AssertStatement may occur inside an Expression - must check cycles
ASTNode oldChild = this.expression;
preReplaceChild(oldChild, expression, EXPRESSION_PROPERTY);
this.expression = expression;
postReplaceChild(oldChild, expression, EXPRESSION_PROPERTY);
}
|
| ||||
{
if (type == null) {
throw new IllegalArgumentException();
}
ASTNode oldChild = this.type;
preReplaceChild(oldChild, type, TYPE_PROPERTY);
this.type = type;
postReplaceChild(oldChild, type, TYPE_PROPERTY);
}
|
| ||||
{
if (exception == null) {
throw new IllegalArgumentException();
}
ASTNode oldChild = this.exceptionDecl;
preReplaceChild(oldChild, exception, EXCEPTION_PROPERTY);
this.exceptionDecl = exception;
postReplaceChild(oldChild, exception, EXCEPTION_PROPERTY);
}
|
| ||||
{
if (body == null) {
throw new IllegalArgumentException();
}
ASTNode oldChild = this.body;
preReplaceChild(oldChild, body, BODY_PROPERTY);
this.body = body;
postReplaceChild(oldChild, body, BODY_PROPERTY);
}
|
| ||||
{
if (statement == null) {
throw new IllegalArgumentException();
}
ASTNode oldChild = this.body;
preReplaceChild(oldChild, statement, BODY_PROPERTY);
this.body = statement;
postReplaceChild(oldChild, statement, BODY_PROPERTY);
}
|
| ||||
{
if (parameter == null) {
throw new IllegalArgumentException();
}
ASTNode oldChild = this.parameter;
preReplaceChild(oldChild, parameter, PARAMETER_PROPERTY);
this.parameter = parameter;
postReplaceChild(oldChild, parameter, PARAMETER_PROPERTY);
}
|
| ||||
{
if (statement == null) {
throw new IllegalArgumentException();
}
ASTNode oldChild = this.body;
preReplaceChild(oldChild, statement, BODY_PROPERTY);
this.body = statement;
postReplaceChild(oldChild, statement, BODY_PROPERTY);
}
|
| ||||
{
if (expression == null) {
throw new IllegalArgumentException();
}
ASTNode oldChild = this.expression;
preReplaceChild(oldChild, expression, EXPRESSION_PROPERTY);
this.expression = expression;
postReplaceChild(oldChild, expression, EXPRESSION_PROPERTY);
}
|
| ||||
{
if (type == null) {
throw new IllegalArgumentException();
}
ASTNode oldChild = this.baseType;
preReplaceChild(oldChild, type, TYPE_PROPERTY);
this.baseType = type;
postReplaceChild(oldChild, type, TYPE_PROPERTY);
}
|
| ||||
{
if (statement == null) {
throw new IllegalArgumentException();
}
ASTNode oldChild = this.body;
preReplaceChild(oldChild, statement, BODY_PROPERTY);
this.body = statement;
postReplaceChild(oldChild, statement, BODY_PROPERTY);
}
|
| ||||
{
if (statement == null) {
throw new IllegalArgumentException();
}
ASTNode oldChild = this.thenStatement;
preReplaceChild(oldChild, statement, THEN_STATEMENT_PROPERTY);
this.thenStatement = statement;
postReplaceChild(oldChild, statement, THEN_STATEMENT_PROPERTY);
}
|
| ||||
{
if (name == null) {
throw new IllegalArgumentException();
}
ASTNode oldChild = this.importName;
preReplaceChild(oldChild, name, NAME_PROPERTY);
this.importName = name;
postReplaceChild(oldChild, name, NAME_PROPERTY);
}
|
| ||||
{
if (body == null) {
throw new IllegalArgumentException();
}
ASTNode oldChild = this.body;
preReplaceChild(oldChild, body, BODY_PROPERTY);
this.body = body;
postReplaceChild(oldChild, body, BODY_PROPERTY);
}
|
| ||||
{
if (referenceType == null) {
throw new IllegalArgumentException();
}
ASTNode oldChild = this.rightOperand;
preReplaceChild(oldChild, referenceType, RIGHT_OPERAND_PROPERTY);
this.rightOperand = referenceType;
postReplaceChild(oldChild, referenceType, RIGHT_OPERAND_PROPERTY);
}
|
| ||||
{
if (statement == null) {
throw new IllegalArgumentException();
}
ASTNode oldChild = this.body;
preReplaceChild(oldChild, statement, BODY_PROPERTY);
this.body = statement;
postReplaceChild(oldChild, statement, BODY_PROPERTY);
}
|
| ||||
{
if (name == null) {
throw new IllegalArgumentException();
}
ASTNode oldChild = this.name;
preReplaceChild(oldChild, name, NAME_PROPERTY);
this.name = name;
postReplaceChild(oldChild, name, NAME_PROPERTY);
}
|
| ||||
{
if (type == null) {
throw new IllegalArgumentException();
}
ASTNode oldChild = this.type;
preReplaceChild(oldChild, type, TYPE_PROPERTY);
this.type = type;
postReplaceChild(oldChild, type, TYPE_PROPERTY);
}
|
| ||||
{
if (type == null) {
throw new IllegalArgumentException();
}
ASTNode oldChild = this.type;
preReplaceChild(oldChild, type, TYPE_PROPERTY);
this.type = type;
postReplaceChild(oldChild, type, TYPE_PROPERTY);
}
|
| ||||
{
if (type == null) {
throw new IllegalArgumentException();
}
ASTNode oldChild = this.qualifier;
preReplaceChild(oldChild, type, QUALIFIER_PROPERTY);
this.qualifier = type;
postReplaceChild(oldChild, type, QUALIFIER_PROPERTY);
}
|
| ||||
{
if (type == null) {
throw new IllegalArgumentException();
}
ASTNode oldChild = this.type;
preReplaceChild(oldChild, type, TYPE_PROPERTY);
this.type = type;
postReplaceChild(oldChild, type, TYPE_PROPERTY);
}
|
| ||||
{
if (fieldName == null) {
throw new IllegalArgumentException();
}
ASTNode oldChild = this.fieldName;
preReplaceChild(oldChild, fieldName, NAME_PROPERTY);
this.fieldName = fieldName;
postReplaceChild(oldChild, fieldName, NAME_PROPERTY);
}
|
| ||||
{
if (block == null) {
throw new IllegalArgumentException();
}
ASTNode oldChild = this.body;
preReplaceChild(oldChild, block, BODY_PROPERTY);
this.body = block;
postReplaceChild(oldChild, block, BODY_PROPERTY);
}
|
| ||||
{
if (body == null) {
throw new IllegalArgumentException();
}
ASTNode oldChild = this.body;
preReplaceChild(oldChild, body, BODY_PROPERTY);
this.body = body;
postReplaceChild(oldChild, body, BODY_PROPERTY);
}
|
| ||||
{
if (type == null) {
throw new IllegalArgumentException();
}
ASTNode oldChild = this.type;
preReplaceChild(oldChild, type, TYPE_PROPERTY);
this.type = type;
postReplaceChild(oldChild, type, TYPE_PROPERTY);
}
|
| ||||
{
if (typeName == null) {
throw new IllegalArgumentException();
}
ASTNode oldChild = this.typeVariableName;
preReplaceChild(oldChild, typeName, NAME_PROPERTY);
this.typeVariableName = typeName;
postReplaceChild(oldChild, typeName, NAME_PROPERTY);
}
|
| ||||
{
if (type == null) {
throw new IllegalArgumentException();
}
ASTNode oldChild = this.baseType;
preReplaceChild(oldChild, type, TYPE_PROPERTY);
this.baseType = type;
postReplaceChild(oldChild, type, TYPE_PROPERTY);
}
|
| ||||
{
if (type == null) {
throw new IllegalArgumentException();
}
ASTNode oldChild = this.baseType;
preReplaceChild(oldChild, type, TYPE_PROPERTY);
this.baseType = type;
postReplaceChild(oldChild, type, TYPE_PROPERTY);
}
|
| ||||
{
if (statement == null) {
throw new IllegalArgumentException();
}
ASTNode oldChild = this.body;
preReplaceChild(oldChild, statement, BODY_PROPERTY);
this.body = statement;
postReplaceChild(oldChild, statement, BODY_PROPERTY);
}
|
| |||
{
if ( [[#variableb95c34a0]]== null) {
throw new IllegalArgumentException();
}
// an AssertStatement may occur inside an Expression - must check cycles
// an ArrayCreation cannot occur inside a ArrayType - cycles not possible
ASTNode oldChild = this. [[#variableb95c3560]];
preReplaceChild(oldChild, [[#variableb95c34a0]], [[#variableb95c34e0]]);
this. [[#variableb95c3560]]= [[#variableb95c34a0]];
postReplaceChild(oldChild, [[#variableb95c34a0]], [[#variableb95c34e0]]);
}
|
| CloneAbstraction |
| Parameter Index | Clone Instance | Parameter Name | Value |
|---|---|---|---|
| 1 | 1 | [[#b95c34a0]] | name |
| 1 | 2 | [[#b95c34a0]] | block |
| 1 | 3 | [[#b95c34a0]] | type |
| 1 | 4 | [[#b95c34a0]] | expression |
| 1 | 5 | [[#b95c34a0]] | body |
| 1 | 6 | [[#b95c34a0]] | type |
| 1 | 7 | [[#b95c34a0]] | fieldName |
| 1 | 8 | [[#b95c34a0]] | type |
| 1 | 9 | [[#b95c34a0]] | referenceType |
| 1 | 10 | [[#b95c34a0]] | typeName |
| 1 | 11 | [[#b95c34a0]] | statement |
| 1 | 12 | [[#b95c34a0]] | name |
| 1 | 13 | [[#b95c34a0]] | statement |
| 1 | 14 | [[#b95c34a0]] | parameter |
| 1 | 15 | [[#b95c34a0]] | exception |
| 1 | 16 | [[#b95c34a0]] | componentType |
| 1 | 17 | [[#b95c34a0]] | type |
| 1 | 18 | [[#b95c34a0]] | type |
| 1 | 19 | [[#b95c34a0]] | type |
| 1 | 20 | [[#b95c34a0]] | statement |
| 1 | 21 | [[#b95c34a0]] | expression |
| 1 | 22 | [[#b95c34a0]] | statement |
| 1 | 23 | [[#b95c34a0]] | body |
| 1 | 24 | [[#b95c34a0]] | type |
| 1 | 25 | [[#b95c34a0]] | statement |
| 1 | 26 | [[#b95c34a0]] | type |
| 1 | 27 | [[#b95c34a0]] | statement |
| 1 | 28 | [[#b95c34a0]] | type |
| 1 | 29 | [[#b95c34a0]] | type |
| 1 | 30 | [[#b95c34a0]] | type |
| 1 | 31 | [[#b95c34a0]] | body |
| 2 | 1 | [[#b95c3560]] | name |
| 2 | 2 | [[#b95c3560]] | body |
| 2 | 3 | [[#b95c3560]] | type |
| 2 | 4 | [[#b95c3560]] | expression |
| 2 | 5 | [[#b95c3560]] | body |
| 2 | 6 | [[#b95c3560]] | qualifier |
| 2 | 7 | [[#b95c3560]] | fieldName |
| 2 | 8 | [[#b95c3560]] | baseType |
| 2 | 9 | [[#b95c3560]] | rightOperand |
| 2 | 10 | [[#b95c3560]] | typeVariableName |
| 2 | 11 | [[#b95c3560]] | body |
| 2 | 12 | [[#b95c3560]] | importName |
| 2 | 13 | [[#b95c3560]] | thenStatement |
| 2 | 14 | [[#b95c3560]] | parameter |
| 2 | 15 | [[#b95c3560]] | exceptionDecl |
| 2 | 16 | [[#b95c3560]] | componentType |
| 2 | 17 | [[#b95c3560]] | memberType |
| 2 | 18 | [[#b95c3560]] | arrayType |
| 2 | 19 | [[#b95c3560]] | type |
| 2 | 20 | [[#b95c3560]] | body |
| 2 | 21 | [[#b95c3560]] | expression |
| 2 | 22 | [[#b95c3560]] | body |
| 2 | 23 | [[#b95c3560]] | body |
| 2 | 24 | [[#b95c3560]] | baseType |
| 2 | 25 | [[#b95c3560]] | body |
| 2 | 26 | [[#b95c3560]] | type |
| 2 | 27 | [[#b95c3560]] | body |
| 2 | 28 | [[#b95c3560]] | type |
| 2 | 29 | [[#b95c3560]] | type |
| 2 | 30 | [[#b95c3560]] | baseType |
| 2 | 31 | [[#b95c3560]] | body |
| 3 | 1 | [[#b95c34e0]] | NAME_PROPERTY |
| 3 | 2 | [[#b95c34e0]] | BODY_PROPERTY |
| 3 | 3 | [[#b95c34e0]] | TYPE_PROPERTY |
| 3 | 4 | [[#b95c34e0]] | EXPRESSION_PROPERTY |
| 3 | 5 | [[#b95c34e0]] | BODY_PROPERTY |
| 3 | 6 | [[#b95c34e0]] | QUALIFIER_PROPERTY |
| 3 | 7 | [[#b95c34e0]] | NAME_PROPERTY |
| 3 | 8 | [[#b95c34e0]] | TYPE_PROPERTY |
| 3 | 9 | [[#b95c34e0]] | RIGHT_OPERAND_PROPERTY |
| 3 | 10 | [[#b95c34e0]] | NAME_PROPERTY |
| 3 | 11 | [[#b95c34e0]] | BODY_PROPERTY |
| 3 | 12 | [[#b95c34e0]] | NAME_PROPERTY |
| 3 | 13 | [[#b95c34e0]] | THEN_STATEMENT_PROPERTY |
| 3 | 14 | [[#b95c34e0]] | PARAMETER_PROPERTY |
| 3 | 15 | [[#b95c34e0]] | EXCEPTION_PROPERTY |
| 3 | 16 | [[#b95c34e0]] | COMPONENT_TYPE_PROPERTY |
| 3 | 17 | [[#b95c34e0]] | TYPE_PROPERTY |
| 3 | 18 | [[#b95c34e0]] | TYPE_PROPERTY |
| 3 | 19 | [[#b95c34e0]] | TYPE_PROPERTY |
| 3 | 20 | [[#b95c34e0]] | BODY_PROPERTY |
| 3 | 21 | [[#b95c34e0]] | EXPRESSION_PROPERTY |
| 3 | 22 | [[#b95c34e0]] | BODY_PROPERTY |
| 3 | 23 | [[#b95c34e0]] | BODY_PROPERTY |
| 3 | 24 | [[#b95c34e0]] | TYPE_PROPERTY |
| 3 | 25 | [[#b95c34e0]] | BODY_PROPERTY |
| 3 | 26 | [[#b95c34e0]] | TYPE_PROPERTY |
| 3 | 27 | [[#b95c34e0]] | BODY_PROPERTY |
| 3 | 28 | [[#b95c34e0]] | TYPE_PROPERTY |
| 3 | 29 | [[#b95c34e0]] | TYPE_PROPERTY |
| 3 | 30 | [[#b95c34e0]] | TYPE_PROPERTY |
| 3 | 31 | [[#b95c34e0]] | BODY_PROPERTY |