Previous CloneSet | Next CloneSet | Back to Main Report |
Clone Mass | Clones in CloneSet | Parameter Count | Clone Similarity | Syntax Category [Sequence Length] |
---|---|---|---|---|
14 | 2 | 1 | 0.991 | method_declaration |
Clone Abstraction | Parameter Bindings |
Clone Instance (Click to see clone) | Line Count | Source Line | Source File |
---|---|---|---|
1 | 14 | 250 | E:/TSE/Projects-CloneDR/emf-2.4.1/src/org/eclipse/emf/edit/provider/ItemPropertyDescriptor.java |
2 | 14 | 729 | E:/TSE/Projects-CloneDR/emf-2.4.1/src/org/eclipse/emf/edit/provider/ItemProviderAdapter.java |
| |||||
// This is copied from ItemProviderAdapterFactory. // protected String crop(String text) { if (text != null) { char[] chars = text.toCharArray(); for (int i = 0; i < chars.length; i++) { if (Character.isISOControl(chars[i])) { return text.substring(0, i) + "..."; } } } return text; } |
| |||||
/** * This crops the given text to exclude any control characters. The first such character and all following it are replaced by "..." * @since 2.2.0 */ public String crop(String text) { if (text != null) { char[] chars = text.toCharArray(); for (int i = 0; i < chars.length; i++) { if (Character.isISOControl(chars[i])) { return text.substring(0, i) + "..."; } } } return text; } |
| |||
[[#variable1730d840]]String crop(String text) { if (text != null) { char[] chars = text.toCharArray(); for (int i = 0; i < chars.length; i++) { if (Character.isISOControl(chars[i])) { return text.substring(0, i) + "..."; } } } return text; } |
CloneAbstraction |
Parameter Index | Clone Instance | Parameter Name | Value |
---|---|---|---|
1 | 1 | [[#1730d840]] | // This is copied from ItemProviderAdapterFactory. // protected |
1 | 2 | [[#1730d840]] | /** * This crops the given text to exclude any control characters. The first such character and all following it are replaced by "..." * @since 2.2.0 */ public |