Previous CloneSet | Next CloneSet | Back to Main Report |
Clone Mass | Clones in CloneSet | Parameter Count | Clone Similarity | Syntax Category [Sequence Length] |
---|---|---|---|---|
17 | 2 | 2 | 0.982 | statement_sequence[2] |
Clone Abstraction | Parameter Bindings |
Clone Instance (Click to see clone) | Line Count | Source Line | Source File |
---|---|---|---|
1 | 17 | 5137 | plugins/org.eclipse.jdt.core/codeassist/org/eclipse/jdt/internal/codeassist/CompletionEngine.java |
2 | 17 | 5298 | plugins/org.eclipse.jdt.core/codeassist/org/eclipse/jdt/internal/codeassist/CompletionEngine.java |
| ||||
int accessibility = IAccessRule.K_ACCESSIBLE; if (refBinding.hasRestrictedAccess()) { AccessRestriction accessRestriction = lookupEnvironment.getAccessRestriction(refBinding); if (accessRestriction != null) { switch (accessRestriction.getProblemId()) { case IProblem.ForbiddenReference: if (this.options.checkForbiddenReference) { continue next; } accessibility = IAccessRule.K_NON_ACCESSIBLE; break; case IProblem.DiscouragedReference: if (this.options.checkDiscouragedReference) { continue next; } accessibility = IAccessRule.K_DISCOURAGED; break; } } } |
| ||||
int accessibility = IAccessRule.K_ACCESSIBLE; if (sourceType.hasRestrictedAccess()) { AccessRestriction accessRestriction = lookupEnvironment.getAccessRestriction(sourceType); if (accessRestriction != null) { switch (accessRestriction.getProblemId()) { case IProblem.ForbiddenReference: if (this.options.checkForbiddenReference) { continue ; } accessibility = IAccessRule.K_NON_ACCESSIBLE; break; case IProblem.DiscouragedReference: if (this.options.checkDiscouragedReference) { continue ; } accessibility = IAccessRule.K_DISCOURAGED; break; } } } |
| |||
int accessibility = IAccessRule.K_ACCESSIBLE; if ( [[#variablea4009920]].hasRestrictedAccess()) { AccessRestriction accessRestriction = lookupEnvironment.getAccessRestriction( [[#variablea4009920]]); if (accessRestriction != null) { switch (accessRestriction.getProblemId()) { case IProblem.ForbiddenReference: if (this.options.checkForbiddenReference) { [[#variablea4009940]] } accessibility = IAccessRule.K_NON_ACCESSIBLE; break; case IProblem.DiscouragedReference: if (this.options.checkDiscouragedReference) { [[#variablea4009940]] } accessibility = IAccessRule.K_DISCOURAGED; break; } } } |
CloneAbstraction |
Parameter Index | Clone Instance | Parameter Name | Value |
---|---|---|---|
1 | 1 | [[#a4009920]] | sourceType |
1 | 2 | [[#a4009920]] | refBinding |
2 | 1 | [[#a4009940]] | continue ; |
2 | 2 | [[#a4009940]] | continue next; |