Previous CloneSet | Next CloneSet | Back to Main Report |
Clone Mass | Clones in CloneSet | Parameter Count | Clone Similarity | Syntax Category [Sequence Length] |
---|---|---|---|---|
3 | 2 | 1 | 0.993 | statement_sequence[3] |
Clone Abstraction | Parameter Bindings |
Clone Instance (Click to see clone) | Line Count | Source Line | Source File |
---|---|---|---|
1 | 3 | 80 | plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/text/correction/QuickTemplateProcessor.java |
2 | 3 | 108 | plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/text/correction/QuickTemplateProcessor.java |
| ||||
int startLine = document.getLineOfOffset(offset); int endLine = document.getLineOfOffset(offset + length); IRegion region = document.getLineInformation(endLine); |
| ||||
// test if selection is either a full line or spans over multiple lines int startLine = document.getLineOfOffset(offset); int endLine = document.getLineOfOffset(offset + length); IRegion endLineRegion = document.getLineInformation(endLine); |
| |||
// test if selection is either a full line or spans over multiple lines int startLine = document.getLineOfOffset(offset); int endLine = document.getLineOfOffset(offset + length); IRegion [[#variableb345c2c0]]= document.getLineInformation(endLine); |
CloneAbstraction |
Parameter Index | Clone Instance | Parameter Name | Value |
---|---|---|---|
1 | 1 | [[#b345c2c0]] | endLineRegion |
1 | 2 | [[#b345c2c0]] | region |