CloneSet1107


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
8340.963class_body_declaration
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
18577
plugins/org.eclipse.jdt.apt.ui/src/org/eclipse/jdt/apt/ui/internal/preferences/BaseConfigurationBlock.java
28104
plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/preferences/JavaPreferencesSettings.java
38649
plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/preferences/OptionsConfigurationBlock.java
Clone Instance
1
Line Count
8
Source Line
577
Source File
plugins/org.eclipse.jdt.apt.ui/src/org/eclipse/jdt/apt/ui/internal/preferences/BaseConfigurationBlock.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;
        }


Clone Instance
2
Line Count
8
Source Line
104
Source File
plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/preferences/JavaPreferencesSettings.java

        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;
        }


Clone Instance
3
Line Count
8
Source Line
649
Source File
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;
        }


Clone AbstractionParameter Count: 4Parameter Bindings

 [[#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 Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
11[[#b5e73b60]]
protected 
12[[#b5e73b60]]
private static 
13[[#b5e73b60]]
protected 
21[[#b5e73ae0]]
getTokens 
22[[#b5e73ae0]]
unpackList 
23[[#b5e73ae0]]
getTokens 
31[[#b5e73a80]]
text 
32[[#b5e73a80]]
str 
33[[#b5e73a80]]
text 
41[[#b5e73960]]
res.length 
42[[#b5e73960]]
nTokens 
43[[#b5e73960]]
res.length