CloneSet1959


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
17220.982statement_sequence[2]
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
1175137
plugins/org.eclipse.jdt.core/codeassist/org/eclipse/jdt/internal/codeassist/CompletionEngine.java
2175298
plugins/org.eclipse.jdt.core/codeassist/org/eclipse/jdt/internal/codeassist/CompletionEngine.java
Clone Instance
1
Line Count
17
Source Line
5137
Source File
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;
                                                                      }
                                                        }
                                                }


Clone Instance
2
Line Count
17
Source Line
5298
Source File
plugins/org.eclipse.jdt.core/codeassist/org/eclipse/jdt/internal/codeassist/CompletionEngine.java

                                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;
                                                      }
                                        }
                                }


Clone AbstractionParameter Count: 2Parameter Bindings

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 Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
11[[#a4009920]]
sourceType 
12[[#a4009920]]
refBinding 
21[[#a4009940]]
continue ; 
22[[#a4009940]]
continue next;