CloneSet5184


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
7230.978statement_sequence[2]
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
1764
plugins/org.eclipse.jdt.ui/ui refactoring/org/eclipse/jdt/internal/ui/refactoring/ExtractConstantWizard.java
2749
plugins/org.eclipse.jdt.ui/ui refactoring/org/eclipse/jdt/internal/ui/refactoring/InlineConstantWizard.java
Clone Instance
1
Line Count
7
Source Line
64
Source File
plugins/org.eclipse.jdt.ui/ui refactoring/org/eclipse/jdt/internal/ui/refactoring/ExtractConstantWizard.java

                int messageType = IMessageProvider.NONE;
                if ( !getExtractConstantRefactoring().selectionAllStaticFinal()) {
                        message = RefactoringMessages.ExtractConstantInputPage_selection_refers_to_nonfinal_fields;
                        messageType = IMessageProvider.INFORMATION;
                }
                else   {
                        message = MESSAGE;
                        messageType = IMessageProvider.NONE;
                }


Clone Instance
2
Line Count
7
Source Line
49
Source File
plugins/org.eclipse.jdt.ui/ui refactoring/org/eclipse/jdt/internal/ui/refactoring/InlineConstantWizard.java

                int messageType = IMessageProvider.NONE;
                if ( !getInlineConstantRefactoring().isInitializerAllStaticFinal()) {
                        message = RefactoringMessages.InlineConstantWizard_initializer_refers_to_fields;
                        messageType = IMessageProvider.INFORMATION;
                }
                else   {
                        message = MESSAGE;
                        messageType = IMessageProvider.NONE;
                }


Clone AbstractionParameter Count: 3Parameter Bindings

int messageType = IMessageProvider.NONE;
if ( ! [[#variable5ca9fc80]](). [[#variable57aa06c0]]()) {
  message = RefactoringMessages. [[#variable5a55e520]];
  messageType = IMessageProvider.INFORMATION;
}
else {
  message = MESSAGE;
  messageType = IMessageProvider.NONE;
}
 

CloneAbstraction
Parameter Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
11[[#5ca9fc80]]
getExtractConstantRefactoring 
12[[#5ca9fc80]]
getInlineConstantRefactoring 
21[[#57aa06c0]]
selectionAllStaticFinal 
22[[#57aa06c0]]
isInitializerAllStaticFinal 
31[[#5a55e520]]
ExtractConstantInputPage_selection_refers_to_nonfinal_fields 
32[[#5a55e520]]
InlineConstantWizard_initializer_refers_to_fields