Previous CloneSet | Next CloneSet | Back to Main Report |
Clone Mass | Clones in CloneSet | Parameter Count | Clone Similarity | Syntax Category [Sequence Length] |
---|---|---|---|---|
13 | 2 | 6 | 0.974 | switch_groups[3] |
Clone Abstraction | Parameter Bindings |
Clone Instance (Click to see clone) | Line Count | Source Line | Source File |
---|---|---|---|
1 | 13 | 567 | plugins/org.eclipse.jdt.ui/core extension/org/eclipse/jdt/internal/corext/fix/UnusedCodeFix.java |
2 | 13 | 87 | plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/text/correction/RemoveDeclarationCorrectionProposal.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); } |
| ||||
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); } |
| |||
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 Index | Clone Instance | Parameter Name | Value |
---|---|---|---|
1 | 1 | [[#b82470c0]] | FixMessages |
1 | 2 | [[#b82470c0]] | CorrectionMessages |
2 | 1 | [[#b8247040]] | UnusedCodeFix_RemoveType_description |
2 | 2 | [[#b8247040]] | RemoveDeclarationCorrectionProposal_removeunusedtype_description |
3 | 1 | [[#b8246f00]] | UnusedCodeFix_RemoveConstructor_description |
3 | 2 | [[#b8246f00]] | RemoveDeclarationCorrectionProposal_removeunusedconstructor_description |
4 | 1 | [[#b8246f60]] | UnusedCodeFix_RemoveMethod_description |
4 | 2 | [[#b8246f60]] | RemoveDeclarationCorrectionProposal_removeunusedmethod_description |
5 | 1 | [[#9e736660]] | UnusedCodeFix_RemoveFieldOrLocal_description |
5 | 2 | [[#9e736660]] | RemoveDeclarationCorrectionProposal_removeunusedfield_description |
6 | 1 | [[#b8246ea0]] | UnusedCodeFix_RemoveFieldOrLocal_description |
6 | 2 | [[#b8246ea0]] | RemoveDeclarationCorrectionProposal_removeunusedvar_description |