CloneSet3117


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
6260.956statement_sequence[2]
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
1693
plugins/org.eclipse.jdt.core/formatter/org/eclipse/jdt/internal/formatter/old/CodeFormatter.java
26101
plugins/org.eclipse.jdt.core/formatter/org/eclipse/jdt/internal/formatter/old/CodeFormatter.java
Clone Instance
1
Line Count
6
Source Line
93
Source File
plugins/org.eclipse.jdt.core/formatter/org/eclipse/jdt/internal/formatter/old/CodeFormatter.java

                Object formatterNewLineEmptyBlock = this.options.get(JavaCore.FORMATTER_NEWLINE_EMPTY_BLOCK);
                if (formatterNewLineEmptyBlock != null) {
                        if (JavaCore.INSERT.equals(formatterNewLineEmptyBlock)) {
                                newOptions.put(DefaultCodeFormatterConstants.FORMATTER_INSERT_NEW_LINE_IN_EMPTY_BLOCK, JavaCore.INSERT);
                        }
                        else   {
                                newOptions.put(DefaultCodeFormatterConstants.FORMATTER_INSERT_NEW_LINE_IN_EMPTY_BLOCK, JavaCore.DO_NOT_INSERT);
                        }
                }


Clone Instance
2
Line Count
6
Source Line
101
Source File
plugins/org.eclipse.jdt.core/formatter/org/eclipse/jdt/internal/formatter/old/CodeFormatter.java

                Object formatterCompactAssignment = this.options.get(JavaCore.FORMATTER_COMPACT_ASSIGNMENT);
                if (formatterCompactAssignment != null) {
                        if (JavaCore.COMPACT.equals(formatterCompactAssignment)) {
                                newOptions.put(DefaultCodeFormatterConstants.FORMATTER_INSERT_SPACE_BEFORE_ASSIGNMENT_OPERATOR, JavaCore.DO_NOT_INSERT);
                        }
                        else   {
                                newOptions.put(DefaultCodeFormatterConstants.FORMATTER_INSERT_SPACE_BEFORE_ASSIGNMENT_OPERATOR, JavaCore.INSERT);
                        }
                }


Clone AbstractionParameter Count: 6Parameter Bindings

Object  [[#variable53120b20]]= this.options.get(JavaCore. [[#variable53120a60]]);
if ( [[#variable53120b20]]!= null) {
  if (JavaCore. [[#variable4e9bd4a0]].equals( [[#variable53120b20]])) {
    newOptions.put(DefaultCodeFormatterConstants. [[#variable92d1f820]], JavaCore. [[#variable53120a80]]);
  }
  else {
    newOptions.put(DefaultCodeFormatterConstants. [[#variable92d1f820]], JavaCore. [[#variable531209e0]]);
  }
}
 

CloneAbstraction
Parameter Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
11[[#53120b20]]
formatterCompactAssignment 
12[[#53120b20]]
formatterNewLineEmptyBlock 
21[[#53120a60]]
FORMATTER_COMPACT_ASSIGNMENT 
22[[#53120a60]]
FORMATTER_NEWLINE_EMPTY_BLOCK 
31[[#4e9bd4a0]]
COMPACT 
32[[#4e9bd4a0]]
INSERT 
41[[#92d1f820]]
FORMATTER_INSERT_SPACE_BEFORE_ASSIGNMENT_OPERATOR 
42[[#92d1f820]]
FORMATTER_INSERT_NEW_LINE_IN_EMPTY_BLOCK 
51[[#53120a80]]
DO_NOT_INSERT 
52[[#53120a80]]
INSERT 
61[[#531209e0]]
INSERT 
62[[#531209e0]]
DO_NOT_INSERT