CloneSet1166


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
8750.956statement_sequence[2]
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
18231
plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/preferences/formatter/ProfileVersioner.java
28297
plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/preferences/formatter/ProfileVersioner.java
38318
plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/preferences/formatter/ProfileVersioner.java
48343
plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/preferences/formatter/ProfileVersioner.java
58381
plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/preferences/formatter/ProfileVersioner.java
68446
plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/preferences/formatter/ProfileVersioner.java
78463
plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/preferences/formatter/ProfileVersioner.java
Clone Instance
1
Line Count
8
Source Line
231
Source File
plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/preferences/formatter/ProfileVersioner.java

                checkAndReplace(oldSettings, 
                        FORMATTER_INSERT_SPACE_IN_WHILE_CONDITION, 
                        DefaultCodeFormatterConstants.FORMATTER_INSERT_SPACE_AFTER_OPENING_PAREN_IN_WHILE, 
                        DefaultCodeFormatterConstants.FORMATTER_INSERT_SPACE_BEFORE_CLOSING_PAREN_IN_WHILE);

                checkAndReplace(oldSettings, 
                        FORMATTER_INSERT_SPACE_AFTER_COMMA_IN_CONSTRUCTOR_ARGUMENTS, 
                        DefaultCodeFormatterConstants.FORMATTER_INSERT_SPACE_AFTER_COMMA_IN_CONSTRUCTOR_DECLARATION_PARAMETERS);


Clone Instance
2
Line Count
8
Source Line
297
Source File
plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/preferences/formatter/ProfileVersioner.java

                checkAndReplace(oldSettings, 
                        FORMATTER_INSERT_SPACE_BEFORE_FIRST_ARGUMENT, 
                        DefaultCodeFormatterConstants.FORMATTER_INSERT_SPACE_AFTER_OPENING_PAREN_IN_CONSTRUCTOR_DECLARATION, 
                        DefaultCodeFormatterConstants.FORMATTER_INSERT_SPACE_AFTER_OPENING_PAREN_IN_METHOD_DECLARATION);

                checkAndReplace(oldSettings, 
                        FORMATTER_INSERT_SPACE_BEFORE_MESSAGE_SEND, 
                        DefaultCodeFormatterConstants.FORMATTER_INSERT_SPACE_BEFORE_OPENING_PAREN_IN_METHOD_INVOCATION);


Clone Instance
3
Line Count
8
Source Line
318
Source File
plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/preferences/formatter/ProfileVersioner.java

                checkAndReplace(oldSettings, 
                        FORMATTER_INSERT_SPACE_BEFORE_METHOD_OPEN_BRACE, 
                        DefaultCodeFormatterConstants.FORMATTER_INSERT_SPACE_BEFORE_OPENING_BRACE_IN_METHOD_DECLARATION, 
                        DefaultCodeFormatterConstants.FORMATTER_INSERT_SPACE_BEFORE_OPENING_BRACE_IN_CONSTRUCTOR_DECLARATION);

                checkAndReplace(oldSettings, 
                        FORMATTER_INSERT_SPACE_BEFORE_CONSTRUCTOR_DECLARATION_OPEN_PAREN, 
                        DefaultCodeFormatterConstants.FORMATTER_INSERT_SPACE_BEFORE_OPENING_PAREN_IN_CONSTRUCTOR_DECLARATION);


Clone Instance
4
Line Count
8
Source Line
343
Source File
plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/preferences/formatter/ProfileVersioner.java

                checkAndReplace(oldSettings, 
                        FORMATTER_INSERT_SPACE_BEFORE_CLOSING_PAREN, 
                        DefaultCodeFormatterConstants.FORMATTER_INSERT_SPACE_BEFORE_CLOSING_PAREN_IN_METHOD_DECLARATION, 
                        DefaultCodeFormatterConstants.FORMATTER_INSERT_SPACE_BEFORE_CLOSING_PAREN_IN_CONSTRUCTOR_DECLARATION);

                checkAndReplace(oldSettings, 
                        FORMATTER_INSERT_SPACE_BEFORE_METHOD_DECLARATION_OPEN_PAREN, 
                        DefaultCodeFormatterConstants.FORMATTER_INSERT_SPACE_BEFORE_OPENING_PAREN_IN_METHOD_DECLARATION);


Clone Instance
5
Line Count
8
Source Line
381
Source File
plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/preferences/formatter/ProfileVersioner.java

                checkAndReplace(oldSettings, 
                        FORMATTER_INSERT_SPACE_BETWEEN_EMPTY_ARGUMENTS, 
                        DefaultCodeFormatterConstants.FORMATTER_INSERT_SPACE_BETWEEN_EMPTY_PARENS_IN_METHOD_DECLARATION, 
                        DefaultCodeFormatterConstants.FORMATTER_INSERT_SPACE_BETWEEN_EMPTY_PARENS_IN_CONSTRUCTOR_DECLARATION);

                checkAndReplace(oldSettings, 
                        FORMATTER_INSERT_SPACE_BETWEEN_EMPTY_ARRAY_INITIALIZER, 
                        DefaultCodeFormatterConstants.FORMATTER_INSERT_SPACE_BETWEEN_EMPTY_BRACES_IN_ARRAY_INITIALIZER);


Clone Instance
6
Line Count
8
Source Line
446
Source File
plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/preferences/formatter/ProfileVersioner.java

                checkAndReplace(oldSettings, 
                        FORMATTER_METHOD_DECLARATION_ARGUMENTS_ALIGNMENT, 
                        DefaultCodeFormatterConstants.FORMATTER_ALIGNMENT_FOR_PARAMETERS_IN_CONSTRUCTOR_DECLARATION, 
                        DefaultCodeFormatterConstants.FORMATTER_ALIGNMENT_FOR_PARAMETERS_IN_METHOD_DECLARATION);

                checkAndReplace(oldSettings, 
                        FORMATTER_MESSAGE_SEND_SELECTOR_ALIGNMENT, 
                        DefaultCodeFormatterConstants.FORMATTER_ALIGNMENT_FOR_SELECTOR_IN_METHOD_INVOCATION);


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

                checkAndReplace(oldSettings, 
                        FORMATTER_METHOD_THROWS_CLAUSE_ALIGNMENT, 
                        DefaultCodeFormatterConstants.FORMATTER_ALIGNMENT_FOR_THROWS_CLAUSE_IN_METHOD_DECLARATION, 
                        DefaultCodeFormatterConstants.FORMATTER_ALIGNMENT_FOR_THROWS_CLAUSE_IN_CONSTRUCTOR_DECLARATION);

                checkAndReplace(oldSettings, 
                        FORMATTER_EXPLICIT_CONSTRUCTOR_ARGUMENTS_ALIGNMENT, 
                        DefaultCodeFormatterConstants.FORMATTER_ALIGNMENT_FOR_ARGUMENTS_IN_EXPLICIT_CONSTRUCTOR_CALL);


Clone AbstractionParameter Count: 5Parameter Bindings

checkAndReplace(oldSettings,  [[#variable967dbd60]], DefaultCodeFormatterConstants. [[#variable967dbd40]], DefaultCodeFormatterConstants. [[#variable967dbd80]]);
checkAndReplace(oldSettings,  [[#variable52326800]], DefaultCodeFormatterConstants. [[#variable9b7e4c20]]);
 

CloneAbstraction
Parameter Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
11[[#967dbd60]]
FORMATTER_METHOD_THROWS_CLAUSE_ALIGNMENT 
12[[#967dbd60]]
FORMATTER_METHOD_DECLARATION_ARGUMENTS_ALIGNMENT 
13[[#967dbd60]]
FORMATTER_INSERT_SPACE_BETWEEN_EMPTY_ARGUMENTS 
14[[#967dbd60]]
FORMATTER_INSERT_SPACE_BEFORE_CLOSING_PAREN 
15[[#967dbd60]]
FORMATTER_INSERT_SPACE_BEFORE_METHOD_OPEN_BRACE 
16[[#967dbd60]]
FORMATTER_INSERT_SPACE_BEFORE_FIRST_ARGUMENT 
17[[#967dbd60]]
FORMATTER_INSERT_SPACE_IN_WHILE_CONDITION 
21[[#967dbd40]]
FORMATTER_ALIGNMENT_FOR_THROWS_CLAUSE_IN_METHOD_DECLARATION 
22[[#967dbd40]]
FORMATTER_ALIGNMENT_FOR_PARAMETERS_IN_CONSTRUCTOR_DECLARATION 
23[[#967dbd40]]
FORMATTER_INSERT_SPACE_BETWEEN_EMPTY_PARENS_IN_METHOD_DECLARATION 
24[[#967dbd40]]
FORMATTER_INSERT_SPACE_BEFORE_CLOSING_PAREN_IN_METHOD_DECLARATION 
25[[#967dbd40]]
FORMATTER_INSERT_SPACE_BEFORE_OPENING_BRACE_IN_METHOD_DECLARATION 
26[[#967dbd40]]
FORMATTER_INSERT_SPACE_AFTER_OPENING_PAREN_IN_CONSTRUCTOR_DECLARATION 
27[[#967dbd40]]
FORMATTER_INSERT_SPACE_AFTER_OPENING_PAREN_IN_WHILE 
31[[#967dbd80]]
FORMATTER_ALIGNMENT_FOR_THROWS_CLAUSE_IN_CONSTRUCTOR_DECLARATION 
32[[#967dbd80]]
FORMATTER_ALIGNMENT_FOR_PARAMETERS_IN_METHOD_DECLARATION 
33[[#967dbd80]]
FORMATTER_INSERT_SPACE_BETWEEN_EMPTY_PARENS_IN_CONSTRUCTOR_DECLARATION 
34[[#967dbd80]]
FORMATTER_INSERT_SPACE_BEFORE_CLOSING_PAREN_IN_CONSTRUCTOR_DECLARATION 
35[[#967dbd80]]
FORMATTER_INSERT_SPACE_BEFORE_OPENING_BRACE_IN_CONSTRUCTOR_DECLARATION 
36[[#967dbd80]]
FORMATTER_INSERT_SPACE_AFTER_OPENING_PAREN_IN_METHOD_DECLARATION 
37[[#967dbd80]]
FORMATTER_INSERT_SPACE_BEFORE_CLOSING_PAREN_IN_WHILE 
41[[#52326800]]
FORMATTER_EXPLICIT_CONSTRUCTOR_ARGUMENTS_ALIGNMENT 
42[[#52326800]]
FORMATTER_MESSAGE_SEND_SELECTOR_ALIGNMENT 
43[[#52326800]]
FORMATTER_INSERT_SPACE_BETWEEN_EMPTY_ARRAY_INITIALIZER 
44[[#52326800]]
FORMATTER_INSERT_SPACE_BEFORE_METHOD_DECLARATION_OPEN_PAREN 
45[[#52326800]]
FORMATTER_INSERT_SPACE_BEFORE_CONSTRUCTOR_DECLARATION_OPEN_PAREN 
46[[#52326800]]
FORMATTER_INSERT_SPACE_BEFORE_MESSAGE_SEND 
47[[#52326800]]
FORMATTER_INSERT_SPACE_AFTER_COMMA_IN_CONSTRUCTOR_ARGUMENTS 
51[[#9b7e4c20]]
FORMATTER_ALIGNMENT_FOR_ARGUMENTS_IN_EXPLICIT_CONSTRUCTOR_CALL 
52[[#9b7e4c20]]
FORMATTER_ALIGNMENT_FOR_SELECTOR_IN_METHOD_INVOCATION 
53[[#9b7e4c20]]
FORMATTER_INSERT_SPACE_BETWEEN_EMPTY_BRACES_IN_ARRAY_INITIALIZER 
54[[#9b7e4c20]]
FORMATTER_INSERT_SPACE_BEFORE_OPENING_PAREN_IN_METHOD_DECLARATION 
55[[#9b7e4c20]]
FORMATTER_INSERT_SPACE_BEFORE_OPENING_PAREN_IN_CONSTRUCTOR_DECLARATION 
56[[#9b7e4c20]]
FORMATTER_INSERT_SPACE_BEFORE_OPENING_PAREN_IN_METHOD_INVOCATION 
57[[#9b7e4c20]]
FORMATTER_INSERT_SPACE_AFTER_COMMA_IN_CONSTRUCTOR_DECLARATION_PARAMETERS