CloneSet1182


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
13260.974switch_groups[3]
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
113567
plugins/org.eclipse.jdt.ui/core extension/org/eclipse/jdt/internal/corext/fix/UnusedCodeFix.java
21387
plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/text/correction/RemoveDeclarationCorrectionProposal.java
Clone Instance
1
Line Count
13
Source Line
567
Source File
plugins/org.eclipse.jdt.ui/core extension/org/eclipse/jdt/internal/corext/fix/UnusedCodeFix.java

                        case IBinding.TYPE:
                                return Messages.format(FixMessages.UnusedCodeFix_RemoveType_description, name);
                        case IBinding.METHOD:
                                if (((IMethodBinding) binding).isConstructor()) {
                                        return Messages.format(FixMessages.UnusedCodeFix_RemoveConstructor_description, name);
                                }
                                else   {
                                        return Messages.format(FixMessages.UnusedCodeFix_RemoveMethod_description, name);
                                }
                        case IBinding.VARIABLE:
                                if (((IVariableBinding) binding).isField()) {
                                        return Messages.format(FixMessages.UnusedCodeFix_RemoveFieldOrLocal_description, name);
                                }
                                else   {
                                        return Messages.format(FixMessages.UnusedCodeFix_RemoveFieldOrLocal_description, name);
                                }


Clone Instance
2
Line Count
13
Source Line
87
Source File
plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/text/correction/RemoveDeclarationCorrectionProposal.java

                        case IBinding.TYPE:
                                return Messages.format(CorrectionMessages.RemoveDeclarationCorrectionProposal_removeunusedtype_description, name);
                        case IBinding.METHOD:
                                if (((IMethodBinding) binding).isConstructor()) {
                                        return Messages.format(CorrectionMessages.RemoveDeclarationCorrectionProposal_removeunusedconstructor_description, name);
                                }
                                else   {
                                        return Messages.format(CorrectionMessages.RemoveDeclarationCorrectionProposal_removeunusedmethod_description, name);
                                }
                        case IBinding.VARIABLE:
                                if (((IVariableBinding) binding).isField()) {
                                        return Messages.format(CorrectionMessages.RemoveDeclarationCorrectionProposal_removeunusedfield_description, name);
                                }
                                else   {
                                        return Messages.format(CorrectionMessages.RemoveDeclarationCorrectionProposal_removeunusedvar_description, name);
                                }


Clone AbstractionParameter Count: 6Parameter Bindings

case IBinding.TYPE:
  return Messages.format( [[#variableb82470c0]]. [[#variableb8247040]], name);
case IBinding.METHOD:
  if (((IMethodBinding) binding).isConstructor()) {
    return Messages.format( [[#variableb82470c0]]. [[#variableb8246f00]], name);
  }
  else {
    return Messages.format( [[#variableb82470c0]]. [[#variableb8246f60]], name);
  }
case IBinding.VARIABLE:
  if (((IVariableBinding) binding).isField()) {
    return Messages.format( [[#variableb82470c0]]. [[#variable9e736660]], name);
  }
  else {
    return Messages.format( [[#variableb82470c0]]. [[#variableb8246ea0]], name);
  }
 

CloneAbstraction
Parameter Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
11[[#b82470c0]]
FixMessages 
12[[#b82470c0]]
CorrectionMessages 
21[[#b8247040]]
UnusedCodeFix_RemoveType_description 
22[[#b8247040]]
RemoveDeclarationCorrectionProposal_removeunusedtype_description 
31[[#b8246f00]]
UnusedCodeFix_RemoveConstructor_description 
32[[#b8246f00]]
RemoveDeclarationCorrectionProposal_removeunusedconstructor_description 
41[[#b8246f60]]
UnusedCodeFix_RemoveMethod_description 
42[[#b8246f60]]
RemoveDeclarationCorrectionProposal_removeunusedmethod_description 
51[[#9e736660]]
UnusedCodeFix_RemoveFieldOrLocal_description 
52[[#9e736660]]
RemoveDeclarationCorrectionProposal_removeunusedfield_description 
61[[#b8246ea0]]
UnusedCodeFix_RemoveFieldOrLocal_description 
62[[#b8246ea0]]
RemoveDeclarationCorrectionProposal_removeunusedvar_description