CloneSet3608


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
10240.962statement_sequence[2]
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
1101091
plugins/org.eclipse.jdt.core/formatter/org/eclipse/jdt/internal/formatter/DefaultCodeFormatterOptions.java
2101811
plugins/org.eclipse.jdt.core/formatter/org/eclipse/jdt/internal/formatter/DefaultCodeFormatterOptions.java
Clone Instance
1
Line Count
10
Source Line
1091
Source File
plugins/org.eclipse.jdt.core/formatter/org/eclipse/jdt/internal/formatter/DefaultCodeFormatterOptions.java

                if (indentationSizeOption != null) {
                        try {
                                this.indentation_size = Integer.parseInt((String) indentationSizeOption);
                        } catch (NumberFormatException e) {
                                this.indentation_size = 4;
                          }
                          catch (ClassCastException e) {
                                this.indentation_size = 4;
                          }
                }
                final Object insertNewLineAfterAnnotationOption = settings.get(DefaultCodeFormatterConstants.FORMATTER_INSERT_NEW_LINE_AFTER_ANNOTATION);


Clone Instance
2
Line Count
10
Source Line
1811
Source File
plugins/org.eclipse.jdt.core/formatter/org/eclipse/jdt/internal/formatter/DefaultCodeFormatterOptions.java

                if (tabSizeOption != null) {
                        try {
                                this.tab_size = Integer.parseInt((String) tabSizeOption);
                        } catch (NumberFormatException e) {
                                this.tab_size = 4;
                          }
                          catch (ClassCastException e) {
                                this.tab_size = 4;
                          }
                }
                final Object useTabsOnlyForLeadingIndentationsOption = settings.get(DefaultCodeFormatterConstants.FORMATTER_USE_TABS_ONLY_FOR_LEADING_INDENTATIONS);


Clone AbstractionParameter Count: 4Parameter Bindings

if ( [[#variable51106240]]!= null) {
  try {
    this. [[#variableb07f7540]]= Integer.parseInt((String)  [[#variable51106240]]);
  }
  catch (NumberFormatException e) {
    this. [[#variableb07f7540]]= 4;
  }
  catch (ClassCastException e) {
    this. [[#variableb07f7540]]= 4;
  }
}
final Object  [[#variable51107840]]= settings.get(DefaultCodeFormatterConstants. [[#variable511062a0]]);
 

CloneAbstraction
Parameter Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
11[[#51106240]]
tabSizeOption 
12[[#51106240]]
indentationSizeOption 
21[[#b07f7540]]
tab_size 
22[[#b07f7540]]
indentation_size 
31[[#51107840]]
useTabsOnlyForLeadingIndentationsOption 
32[[#51107840]]
insertNewLineAfterAnnotationOption 
41[[#511062a0]]
FORMATTER_USE_TABS_ONLY_FOR_LEADING_INDENTATIONS 
42[[#511062a0]]
FORMATTER_INSERT_NEW_LINE_AFTER_ANNOTATION