Previous CloneSet | Next CloneSet | Back to Main Report |
Clone Mass | Clones in CloneSet | Parameter Count | Clone Similarity | Syntax Category [Sequence Length] |
---|---|---|---|---|
10 | 2 | 3 | 0.972 | class_body_declaration |
Clone Abstraction | Parameter Bindings |
Clone Instance (Click to see clone) | Line Count | Source Line | Source File |
---|---|---|---|
1 | 10 | 118 | plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/text/correction/AddArgumentCorrectionProposal.java |
2 | 10 | 158 | plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/text/correction/MissingReturnTypeCorrectionProposal.java |
| ||||
private boolean testModifier(IVariableBinding curr) { int modifiers = curr.getModifiers(); int staticFinal = Modifier.STATIC| Modifier.FINAL; if ((modifiers& staticFinal) == staticFinal) { return false; } if (Modifier.isStatic(modifiers) && !ASTResolving.isInStaticContext(fCallerNode)) { return false; } return true; } |
| ||||
private boolean testModifier(IVariableBinding curr) { int modifiers = curr.getModifiers(); int staticFinal = Modifier.STATIC| Modifier.FINAL; if ((modifiers& staticFinal) == staticFinal) { return false; } if (Modifier.isStatic(modifiers) && !Modifier.isStatic(fMethodDecl.getModifiers())) { return false; } return true; } |
| |||
private boolean testModifier(IVariableBinding curr) { int modifiers = curr.getModifiers(); int staticFinal = Modifier.STATIC|Modifier.FINAL; if ((modifiers&staticFinal) == staticFinal) { return false; } if (Modifier.isStatic(modifiers) && ! [[#variable531f6560]]. [[#variable531f6500]]( [[#variable531f6420]])) { return false; } return true; } |
CloneAbstraction |
Parameter Index | Clone Instance | Parameter Name | Value |
---|---|---|---|
1 | 1 | [[#531f6560]] | Modifier |
1 | 2 | [[#531f6560]] | ASTResolving |
2 | 1 | [[#531f6500]] | isStatic |
2 | 2 | [[#531f6500]] | isInStaticContext |
3 | 1 | [[#531f6420]] | fMethodDecl.getModifiers() |
3 | 2 | [[#531f6420]] | fCallerNode |