CloneSet914


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
12210.998statement_sequence[7]
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
112130
plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/text/java/GetterSetterCompletionProposal.java
212168
plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/text/java/MethodCompletionProposal.java
Clone Instance
1
Line Count
12
Source Line
130
Source File
plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/text/java/GetterSetterCompletionProposal.java

                IRegion region = document.getLineInformationOfOffset(getReplacementOffset());
                int lineStart = region.getOffset();
                int indent = Strings.computeIndentUnits(document.get(lineStart, getReplacementOffset() - lineStart), settings.tabWidth, settings.indentWidth);

                String replacement = CodeFormatterUtil.format(CodeFormatter.K_CLASS_BODY_DECLARATIONS, stub, indent, null, lineDelim, fField.getJavaProject());

                if (replacement.endsWith(lineDelim)) {
                        replacement = replacement.substring(0, replacement.length() - lineDelim.length());
                }

                setReplacementString(Strings.trimLeadingTabsAndSpaces(replacement));
                return true;


Clone Instance
2
Line Count
12
Source Line
168
Source File
plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/text/java/MethodCompletionProposal.java

                // use the code formatter
                IRegion region = document.getLineInformationOfOffset(getReplacementOffset());
                int lineStart = region.getOffset();
                int indent = Strings.computeIndentUnits(document.get(lineStart, getReplacementOffset() - lineStart), settings.tabWidth, settings.indentWidth);

                String replacement = CodeFormatterUtil.format(CodeFormatter.K_CLASS_BODY_DECLARATIONS, stub, indent, null, lineDelim, fType.getJavaProject());

                if (replacement.endsWith(lineDelim)) {
                        replacement = replacement.substring(0, replacement.length() - lineDelim.length());
                }

                setReplacementString(Strings.trimLeadingTabsAndSpaces(replacement));
                return true;


Clone AbstractionParameter Count: 1Parameter Bindings

// use the code formatter
IRegion region = document.getLineInformationOfOffset(getReplacementOffset());
int lineStart = region.getOffset();
int indent = Strings.computeIndentUnits(document.get(lineStart, getReplacementOffset() - lineStart), settings.tabWidth, settings.indentWidth);
String replacement = CodeFormatterUtil.format(CodeFormatter.K_CLASS_BODY_DECLARATIONS, stub, indent, null, lineDelim,  [[#variable5217d160]].getJavaProject());
if (replacement.endsWith(lineDelim)) {
  replacement = replacement.substring(0, replacement.length() - lineDelim.length());
}
setReplacementString(Strings.trimLeadingTabsAndSpaces(replacement));
return true;
 

CloneAbstraction
Parameter Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
11[[#5217d160]]
fField 
12[[#5217d160]]
fType