| Previous CloneSet | Next CloneSet | Back to Main Report |
| Clone Mass | Clones in CloneSet | Parameter Count | Clone Similarity | Syntax Category [Sequence Length] |
|---|---|---|---|---|
| 23 | 2 | 1 | 0.986 | class_body_declarations[3] |
| Clone Abstraction | Parameter Bindings |
| Clone Instance (Click to see clone) | Line Count | Source Line | Source File |
|---|---|---|---|
| 1 | 23 | 1111 | plugins/org.eclipse.jdt.core/dom/org/eclipse/jdt/core/dom/NaiveASTFlattener.java |
| 2 | 23 | 1070 | plugins/org.eclipse.jdt.ui/core extension/org/eclipse/jdt/internal/corext/dom/ASTFlattener.java |
| ||||
/*
* @see ASTVisitor#visit(SimpleName)
*/
public boolean visit(SimpleName node) {
this.buffer.append(node.getIdentifier());
return false;
}
/*
* @see ASTVisitor#visit(SimpleType)
*/
public boolean visit(SimpleType node) {
return true;
}
/*
* @see ASTVisitor#visit(SingleMemberAnnotation)
* @since 3.1
*/
public boolean visit(SingleMemberAnnotation node) {
this.buffer.append("@"); //$NON-NLS-1$
node.getTypeName().accept(this );
this.buffer.append("("); //$NON-NLS-1$
node.getValue().accept(this );
this.buffer.append(")"); //$NON-NLS-1$
return false;
}
|
| ||||
/*
* @see ASTVisitor#visit(SimpleName)
*/
public boolean visit(SimpleName node) {
this.fBuffer.append(node.getIdentifier());
return false;
}
/*
* @see ASTVisitor#visit(SimpleType)
*/
public boolean visit(SimpleType node) {
return true;
}
/*
* @see ASTVisitor#visit(SingleMemberAnnotation)
* @since 3.0
*/
public boolean visit(SingleMemberAnnotation node) {
this.fBuffer.append("@"); //$NON-NLS-1$
node.getTypeName().accept(this );
this.fBuffer.append("("); //$NON-NLS-1$
node.getValue().accept(this );
this.fBuffer.append(")"); //$NON-NLS-1$
return false;
}
|
| |||
/*
* @see ASTVisitor#visit(SimpleName)
*/
public boolean visit(SimpleName node) {
this. [[#variable52e85b60]].append(node.getIdentifier());
return false;
}
/*
* @see ASTVisitor#visit(SimpleType)
*/
public boolean visit(SimpleType node) {
return true;
}
/*
* @see ASTVisitor#visit(SingleMemberAnnotation)
* @since 3.1
*/
/*
* @see ASTVisitor#visit(SingleMemberAnnotation)
* @since 3.0
*/
public boolean visit(SingleMemberAnnotation node) {
this. [[#variable52e85b60]].append("@"); //$NON-NLS-1$
node.getTypeName().accept(this );
this. [[#variable52e85b60]].append("("); //$NON-NLS-1$
node.getValue().accept(this );
this. [[#variable52e85b60]].append(")"); //$NON-NLS-1$
return false;
}
|
| CloneAbstraction |
| Parameter Index | Clone Instance | Parameter Name | Value |
|---|---|---|---|
| 1 | 1 | [[#52e85b60]] | buffer |
| 1 | 2 | [[#52e85b60]] | fBuffer |