Previous CloneSet | Next CloneSet | Back to Main Report |
Clone Mass | Clones in CloneSet | Parameter Count | Clone Similarity | Syntax Category [Sequence Length] |
---|---|---|---|---|
8 | 3 | 4 | 0.963 | class_body_declaration |
Clone Abstraction | Parameter Bindings |
Clone Instance (Click to see clone) | Line Count | Source Line | Source File |
---|---|---|---|
1 | 8 | 577 | plugins/org.eclipse.jdt.apt.ui/src/org/eclipse/jdt/apt/ui/internal/preferences/BaseConfigurationBlock.java |
2 | 8 | 104 | plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/preferences/JavaPreferencesSettings.java |
3 | 8 | 649 | plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/preferences/OptionsConfigurationBlock.java |
| ||||
protected String[] getTokens(String text, String separator) { StringTokenizer tok = new StringTokenizer(text, separator); int nTokens = tok.countTokens(); String[] res = new String[nTokens]; for (int i = 0; i < res.length; i++) { res[i] = tok.nextToken().trim(); } return res; } |
| ||||
private static String[] unpackList(String str, String separator) { StringTokenizer tok = new StringTokenizer(str, separator); int nTokens = tok.countTokens(); String[] res = new String[nTokens]; for (int i = 0; i < nTokens; i++) { res[i] = tok.nextToken().trim(); } return res; } |
| ||||
protected String[] getTokens(String text, String separator) { StringTokenizer tok = new StringTokenizer(text, separator); int nTokens = tok.countTokens(); String[] res = new String[nTokens]; for (int i = 0; i < res.length; i++) { res[i] = tok.nextToken().trim(); } return res; } |
| |||
[[#variableb5e73b60]]String[] [[#variableb5e73ae0]](String [[#variableb5e73a80]], String separator) { StringTokenizer tok = new StringTokenizer( [[#variableb5e73a80]], separator); int nTokens = tok.countTokens(); String[] res = new String[nTokens]; for (int i = 0; i < [[#variableb5e73960]]; i++) { res[i] = tok.nextToken().trim(); } return res; } |
CloneAbstraction |
Parameter Index | Clone Instance | Parameter Name | Value |
---|---|---|---|
1 | 1 | [[#b5e73b60]] | protected |
1 | 2 | [[#b5e73b60]] | private static |
1 | 3 | [[#b5e73b60]] | protected |
2 | 1 | [[#b5e73ae0]] | getTokens |
2 | 2 | [[#b5e73ae0]] | unpackList |
2 | 3 | [[#b5e73ae0]] | getTokens |
3 | 1 | [[#b5e73a80]] | text |
3 | 2 | [[#b5e73a80]] | str |
3 | 3 | [[#b5e73a80]] | text |
4 | 1 | [[#b5e73960]] | res.length |
4 | 2 | [[#b5e73960]] | nTokens |
4 | 3 | [[#b5e73960]] | res.length |