CloneSet611


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
81050.958class_body_declarations[2]
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
18156
plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/preferences/formatter/WhiteSpaceOptions.java
27166
plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/preferences/formatter/WhiteSpaceOptions.java
37174
plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/preferences/formatter/WhiteSpaceOptions.java
47212
plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/preferences/formatter/WhiteSpaceOptions.java
57220
plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/preferences/formatter/WhiteSpaceOptions.java
67232
plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/preferences/formatter/WhiteSpaceOptions.java
77240
plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/preferences/formatter/WhiteSpaceOptions.java
87252
plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/preferences/formatter/WhiteSpaceOptions.java
98260
plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/preferences/formatter/WhiteSpaceOptions.java
108290
plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/preferences/formatter/WhiteSpaceOptions.java
Clone Instance
1
Line Count
8
Source Line
156
Source File
plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/preferences/formatter/WhiteSpaceOptions.java

        /**
         * Preview snippets.
         */
    private final static PreviewSnippet FOR_PREVIEW = new PreviewSnippet(
     CodeFormatter.K_STATEMENTS, 
     "for (int i= 0, j= array.length; i < array.length; i++, j--) {}\nfor (String s : names) {}" //$NON-NLS-1$
                                                                        );

    private final static PreviewSnippet WHILE_PREVIEW = new PreviewSnippet(
     CodeFormatter.K_STATEMENTS, 
     "while (condition) {}; do {} while (condition);" //$NON-NLS-1$
                                                                          );


Clone Instance
2
Line Count
7
Source Line
166
Source File
plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/preferences/formatter/WhiteSpaceOptions.java

    private final static PreviewSnippet CATCH_PREVIEW = new PreviewSnippet(
     CodeFormatter.K_STATEMENTS, 
     "try { number= Integer.parseInt(value); } catch (NumberFormatException e) {}"); //$NON-NLS-1$

    private final static PreviewSnippet IF_PREVIEW = new PreviewSnippet(
     CodeFormatter.K_STATEMENTS, 
     "if (condition) { return foo; } else {return bar;}"               ); //$NON-NLS-1$


Clone Instance
3
Line Count
7
Source Line
174
Source File
plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/preferences/formatter/WhiteSpaceOptions.java

    private final static PreviewSnippet SYNCHRONIZED_PREVIEW = new PreviewSnippet(
     CodeFormatter.K_STATEMENTS, 
     "synchronized (list) { list.add(element); }"                                ); //$NON-NLS-1$

    private final static PreviewSnippet SWITCH_PREVIEW = new PreviewSnippet(
     CodeFormatter.K_STATEMENTS, 
     "switch (number) { case RED: return GREEN; case GREEN: return BLUE; case BLUE: return RED; default: return BLACK;}"); //$NON-NLS-1$


Clone Instance
4
Line Count
7
Source Line
212
Source File
plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/preferences/formatter/WhiteSpaceOptions.java

//    private final static PreviewSnippet CONSTR_CALL_PREVIEW= new PreviewSnippet(
//    CodeFormatter.K_STATEMENTS, 
//    "this();\n\n" +  //$NON-NLS-1$
//    "this(x, y);\n"); //$NON-NLS-1$
    private final static PreviewSnippet ALLOC_PREVIEW = new PreviewSnippet(
     CodeFormatter.K_STATEMENTS, 
     "String str= new String(); Point point= new Point(x, y);"            ); //$NON-NLS-1$

    private final static PreviewSnippet LABEL_PREVIEW = new PreviewSnippet(
     CodeFormatter.K_STATEMENTS, 
     "label: for (int i= 0; i<list.length; i++) {for (int j= 0; j < list[i].length; j++) continue label;}"); //$NON-NLS-1$


Clone Instance
5
Line Count
7
Source Line
220
Source File
plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/preferences/formatter/WhiteSpaceOptions.java

    private final static PreviewSnippet SEMICOLON_PREVIEW = new PreviewSnippet(
     CodeFormatter.K_STATEMENTS, 
     "int a= 4; foo(); bar(x, y);"                                            ); //$NON-NLS-1$

    private final static PreviewSnippet CONDITIONAL_PREVIEW = new PreviewSnippet(
     CodeFormatter.K_STATEMENTS, 
     "String value= condition ? TRUE : FALSE;"                                  ); //$NON-NLS-1$


Clone Instance
6
Line Count
7
Source Line
232
Source File
plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/preferences/formatter/WhiteSpaceOptions.java

    private final static PreviewSnippet ANON_CLASS_PREVIEW = new PreviewSnippet(
     CodeFormatter.K_STATEMENTS, 
     "AnonClass= new AnonClass() {void foo(Some s) { }};"                      ); //$NON-NLS-1$

    private final static PreviewSnippet OPERATOR_PREVIEW = new PreviewSnippet(
     CodeFormatter.K_STATEMENTS, 
     "List list= new ArrayList(); int a= -4 + -9; b= a++ / --number; c += 4; boolean value= true && false;"); //$NON-NLS-1$


Clone Instance
7
Line Count
7
Source Line
240
Source File
plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/preferences/formatter/WhiteSpaceOptions.java

    private final static PreviewSnippet CAST_PREVIEW = new PreviewSnippet(
     CodeFormatter.K_STATEMENTS, 
     "String s= ((String)object);"                                       ); //$NON-NLS-1$

    private final static PreviewSnippet MULT_LOCAL_PREVIEW = new PreviewSnippet(
     CodeFormatter.K_STATEMENTS, 
     "int a= 0, b= 1, c= 2, d= 3;"                                             ); //$NON-NLS-1$


Clone Instance
8
Line Count
7
Source Line
252
Source File
plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/preferences/formatter/WhiteSpaceOptions.java

    private final static PreviewSnippet BLOCK_PREVIEW = new PreviewSnippet(
     CodeFormatter.K_STATEMENTS, 
     "if (true) { return 1; } else { return 2; }"                         ); //$NON-NLS-1$

    private final static PreviewSnippet PAREN_EXPR_PREVIEW = new PreviewSnippet(
     CodeFormatter.K_STATEMENTS, 
     "result= (a *( b +  c + d) * (e + f));"                                   ); //$NON-NLS-1$


Clone Instance
9
Line Count
8
Source Line
260
Source File
plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/preferences/formatter/WhiteSpaceOptions.java

    private final static PreviewSnippet ASSERT_PREVIEW = new PreviewSnippet(
         CodeFormatter.K_STATEMENTS, 
         "assert condition : reportError();" //$NON-NLS-1$
                                                                           );

    private final static PreviewSnippet RETURN_PREVIEW = new PreviewSnippet(
         CodeFormatter.K_STATEMENTS, 
         "return (o);" //$NON-NLS-1$
                                                                           );


Clone Instance
10
Line Count
8
Source Line
290
Source File
plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/preferences/formatter/WhiteSpaceOptions.java

    private final static PreviewSnippet TYPE_ARGUMENTS_PREVIEW = new PreviewSnippet(
             CodeFormatter.K_STATEMENTS, 
             "x.<String, Element>foo();" //$NON-NLS-1$
                                                                                   );

        private final static PreviewSnippet TYPE_PARAMETER_PREVIEW = new PreviewSnippet(
             CodeFormatter.K_CLASS_BODY_DECLARATIONS, 
             "class MyGenericType<S, T extends Element & List> { }" //$NON-NLS-1$
                                                                                       );


Clone AbstractionParameter Count: 5Parameter Bindings

/**
         * Preview snippets.
         */
//    private final static PreviewSnippet CONSTR_CALL_PREVIEW= new PreviewSnippet(
//    CodeFormatter.K_STATEMENTS, 
//    "this();\n\n" +  //$NON-NLS-1$
//    "this(x, y);\n"); //$NON-NLS-1$
private final static PreviewSnippet  [[#variable5663a9c0]]= new PreviewSnippet(CodeFormatter.K_STATEMENTS,  [[#variable5663aa40]]); //$NON-NLS-1$

private final static PreviewSnippet  [[#variable5b8cd3e0]]= new PreviewSnippet(CodeFormatter. [[#variable5663a9a0]],  [[#variable5663aa60]]); //$NON-NLS-1$
 

CloneAbstraction
Parameter Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
11[[#5663a9c0]]
FOR_PREVIEW 
12[[#5663a9c0]]
CATCH_PREVIEW 
13[[#5663a9c0]]
SYNCHRONIZED_PREVIEW 
14[[#5663a9c0]]
ALLOC_PREVIEW 
15[[#5663a9c0]]
SEMICOLON_PREVIEW 
16[[#5663a9c0]]
ANON_CLASS_PREVIEW 
17[[#5663a9c0]]
CAST_PREVIEW 
18[[#5663a9c0]]
BLOCK_PREVIEW 
19[[#5663a9c0]]
ASSERT_PREVIEW 
110[[#5663a9c0]]
TYPE_ARGUMENTS_PREVIEW 
21[[#5663aa40]]
"for (int i= 0, j= array.length; i < array.length; i++, j--) {}\nfor (String s : names) {}" //$NON-NLS-1$ 
22[[#5663aa40]]
"try { number= Integer.parseInt(value); } catch (NumberFormatException e) {}" 
23[[#5663aa40]]
"synchronized (list) { list.add(element); }" 
24[[#5663aa40]]
"String str= new String(); Point point= new Point(x, y);" 
25[[#5663aa40]]
"int a= 4; foo(); bar(x, y);" 
26[[#5663aa40]]
"AnonClass= new AnonClass() {void foo(Some s) { }};" 
27[[#5663aa40]]
"String s= ((String)object);" 
28[[#5663aa40]]
"if (true) { return 1; } else { return 2; }" 
29[[#5663aa40]]
"assert condition : reportError();" //$NON-NLS-1$ 
210[[#5663aa40]]
"x.<String, Element>foo();" //$NON-NLS-1$ 
31[[#5b8cd3e0]]
WHILE_PREVIEW 
32[[#5b8cd3e0]]
IF_PREVIEW 
33[[#5b8cd3e0]]
SWITCH_PREVIEW 
34[[#5b8cd3e0]]
LABEL_PREVIEW 
35[[#5b8cd3e0]]
CONDITIONAL_PREVIEW 
36[[#5b8cd3e0]]
OPERATOR_PREVIEW 
37[[#5b8cd3e0]]
MULT_LOCAL_PREVIEW 
38[[#5b8cd3e0]]
PAREN_EXPR_PREVIEW 
39[[#5b8cd3e0]]
RETURN_PREVIEW 
310[[#5b8cd3e0]]
TYPE_PARAMETER_PREVIEW 
41[[#5663a9a0]]
K_STATEMENTS 
42[[#5663a9a0]]
K_STATEMENTS 
43[[#5663a9a0]]
K_STATEMENTS 
44[[#5663a9a0]]
K_STATEMENTS 
45[[#5663a9a0]]
K_STATEMENTS 
46[[#5663a9a0]]
K_STATEMENTS 
47[[#5663a9a0]]
K_STATEMENTS 
48[[#5663a9a0]]
K_STATEMENTS 
49[[#5663a9a0]]
K_STATEMENTS 
410[[#5663a9a0]]
K_CLASS_BODY_DECLARATIONS 
51[[#5663aa60]]
"while (condition) {}; do {} while (condition);" //$NON-NLS-1$ 
52[[#5663aa60]]
"if (condition) { return foo; } else {return bar;}" 
53[[#5663aa60]]
"switch (number) { case RED: return GREEN; case GREEN: return BLUE; case BLUE: return RED; default: return BLACK;}" 
54[[#5663aa60]]
"label: for (int i= 0; i<list.length; i++) {for (int j= 0; j < list[i].length; j++) continue label;}" 
55[[#5663aa60]]
"String value= condition ? TRUE : FALSE;" 
56[[#5663aa60]]
"List list= new ArrayList(); int a= -4 + -9; b= a++ / --number; c += 4; boolean value= true && false;" 
57[[#5663aa60]]
"int a= 0, b= 1, c= 2, d= 3;" 
58[[#5663aa60]]
"result= (a *( b +  c + d) * (e + f));" 
59[[#5663aa60]]
"return (o);" //$NON-NLS-1$ 
510[[#5663aa60]]
"class MyGenericType<S, T extends Element & List> { }" //$NON-NLS-1$