| Previous CloneSet | Next CloneSet | Back to Main Report |
| Clone Mass | Clones in CloneSet | Parameter Count | Clone Similarity | Syntax Category [Sequence Length] |
|---|---|---|---|---|
| 10 | 12 | 4 | 0.962 | statement_sequence[2] |
| Clone Abstraction | Parameter Bindings |
| Clone Instance (Click to see clone) | Line Count | Source Line | Source File |
|---|---|---|---|
| 1 | 10 | 895 | plugins/org.eclipse.jdt.core/formatter/org/eclipse/jdt/internal/formatter/DefaultCodeFormatterOptions.java |
| 2 | 10 | 905 | plugins/org.eclipse.jdt.core/formatter/org/eclipse/jdt/internal/formatter/DefaultCodeFormatterOptions.java |
| 3 | 10 | 915 | plugins/org.eclipse.jdt.core/formatter/org/eclipse/jdt/internal/formatter/DefaultCodeFormatterOptions.java |
| 4 | 10 | 925 | plugins/org.eclipse.jdt.core/formatter/org/eclipse/jdt/internal/formatter/DefaultCodeFormatterOptions.java |
| 5 | 10 | 935 | plugins/org.eclipse.jdt.core/formatter/org/eclipse/jdt/internal/formatter/DefaultCodeFormatterOptions.java |
| 6 | 10 | 945 | plugins/org.eclipse.jdt.core/formatter/org/eclipse/jdt/internal/formatter/DefaultCodeFormatterOptions.java |
| 7 | 10 | 955 | plugins/org.eclipse.jdt.core/formatter/org/eclipse/jdt/internal/formatter/DefaultCodeFormatterOptions.java |
| 8 | 10 | 965 | plugins/org.eclipse.jdt.core/formatter/org/eclipse/jdt/internal/formatter/DefaultCodeFormatterOptions.java |
| 9 | 10 | 975 | plugins/org.eclipse.jdt.core/formatter/org/eclipse/jdt/internal/formatter/DefaultCodeFormatterOptions.java |
| 10 | 10 | 985 | plugins/org.eclipse.jdt.core/formatter/org/eclipse/jdt/internal/formatter/DefaultCodeFormatterOptions.java |
| 11 | 10 | 995 | plugins/org.eclipse.jdt.core/formatter/org/eclipse/jdt/internal/formatter/DefaultCodeFormatterOptions.java |
| 12 | 10 | 1797 | plugins/org.eclipse.jdt.core/formatter/org/eclipse/jdt/internal/formatter/DefaultCodeFormatterOptions.java |
| ||||
if (blankLinesAfterImportsOption != null) {
try {
this.blank_lines_after_imports = Integer.parseInt((String) blankLinesAfterImportsOption);
} catch (NumberFormatException e) {
this.blank_lines_after_imports = 0;
}
catch (ClassCastException e) {
this.blank_lines_after_imports = 0;
}
}
final Object blankLinesAfterPackageOption = settings.get(DefaultCodeFormatterConstants.FORMATTER_BLANK_LINES_AFTER_PACKAGE);
|
| ||||
if (blankLinesAfterPackageOption != null) {
try {
this.blank_lines_after_package = Integer.parseInt((String) blankLinesAfterPackageOption);
} catch (NumberFormatException e) {
this.blank_lines_after_package = 0;
}
catch (ClassCastException e) {
this.blank_lines_after_package = 0;
}
}
final Object blankLinesBeforeFieldOption = settings.get(DefaultCodeFormatterConstants.FORMATTER_BLANK_LINES_BEFORE_FIELD);
|
| ||||
if (blankLinesBeforeFieldOption != null) {
try {
this.blank_lines_before_field = Integer.parseInt((String) blankLinesBeforeFieldOption);
} catch (NumberFormatException e) {
this.blank_lines_before_field = 0;
}
catch (ClassCastException e) {
this.blank_lines_before_field = 0;
}
}
final Object blankLinesBeforeFirstClassBodyDeclarationOption = settings.get(DefaultCodeFormatterConstants.FORMATTER_BLANK_LINES_BEFORE_FIRST_CLASS_BODY_DECLARATION);
|
| ||||
if (blankLinesBeforeFirstClassBodyDeclarationOption != null) {
try {
this.blank_lines_before_first_class_body_declaration = Integer.parseInt((String) blankLinesBeforeFirstClassBodyDeclarationOption);
} catch (NumberFormatException e) {
this.blank_lines_before_first_class_body_declaration = 0;
}
catch (ClassCastException e) {
this.blank_lines_before_first_class_body_declaration = 0;
}
}
final Object blankLinesBeforeImportsOption = settings.get(DefaultCodeFormatterConstants.FORMATTER_BLANK_LINES_BEFORE_IMPORTS);
|
| ||||
if (blankLinesBeforeImportsOption != null) {
try {
this.blank_lines_before_imports = Integer.parseInt((String) blankLinesBeforeImportsOption);
} catch (NumberFormatException e) {
this.blank_lines_before_imports = 0;
}
catch (ClassCastException e) {
this.blank_lines_before_imports = 0;
}
}
final Object blankLinesBeforeMemberTypeOption = settings.get(DefaultCodeFormatterConstants.FORMATTER_BLANK_LINES_BEFORE_MEMBER_TYPE);
|
| ||||
if (blankLinesBeforeMemberTypeOption != null) {
try {
this.blank_lines_before_member_type = Integer.parseInt((String) blankLinesBeforeMemberTypeOption);
} catch (NumberFormatException e) {
this.blank_lines_before_member_type = 0;
}
catch (ClassCastException e) {
this.blank_lines_before_member_type = 0;
}
}
final Object blankLinesBeforeMethodOption = settings.get(DefaultCodeFormatterConstants.FORMATTER_BLANK_LINES_BEFORE_METHOD);
|
| ||||
if (blankLinesBeforeMethodOption != null) {
try {
this.blank_lines_before_method = Integer.parseInt((String) blankLinesBeforeMethodOption);
} catch (NumberFormatException e) {
this.blank_lines_before_method = 0;
}
catch (ClassCastException e) {
this.blank_lines_before_method = 0;
}
}
final Object blankLinesBeforeNewChunkOption = settings.get(DefaultCodeFormatterConstants.FORMATTER_BLANK_LINES_BEFORE_NEW_CHUNK);
|
| ||||
if (blankLinesBeforeNewChunkOption != null) {
try {
this.blank_lines_before_new_chunk = Integer.parseInt((String) blankLinesBeforeNewChunkOption);
} catch (NumberFormatException e) {
this.blank_lines_before_new_chunk = 0;
}
catch (ClassCastException e) {
this.blank_lines_before_new_chunk = 0;
}
}
final Object blankLinesBeforePackageOption = settings.get(DefaultCodeFormatterConstants.FORMATTER_BLANK_LINES_BEFORE_PACKAGE);
|
| ||||
if (blankLinesBeforePackageOption != null) {
try {
this.blank_lines_before_package = Integer.parseInt((String) blankLinesBeforePackageOption);
} catch (NumberFormatException e) {
this.blank_lines_before_package = 0;
}
catch (ClassCastException e) {
this.blank_lines_before_package = 0;
}
}
final Object blankLinesBetweenTypeDeclarationsOption = settings.get(DefaultCodeFormatterConstants.FORMATTER_BLANK_LINES_BETWEEN_TYPE_DECLARATIONS);
|
| ||||
if (blankLinesBetweenTypeDeclarationsOption != null) {
try {
this.blank_lines_between_type_declarations = Integer.parseInt((String) blankLinesBetweenTypeDeclarationsOption);
} catch (NumberFormatException e) {
this.blank_lines_between_type_declarations = 0;
}
catch (ClassCastException e) {
this.blank_lines_between_type_declarations = 0;
}
}
final Object blankLinesAtBeginningOfMethodBodyOption = settings.get(DefaultCodeFormatterConstants.FORMATTER_BLANK_LINES_AT_BEGINNING_OF_METHOD_BODY);
|
| ||||
if (blankLinesAtBeginningOfMethodBodyOption != null) {
try {
this.blank_lines_at_beginning_of_method_body = Integer.parseInt((String) blankLinesAtBeginningOfMethodBodyOption);
} catch (NumberFormatException e) {
this.blank_lines_at_beginning_of_method_body = 0;
}
catch (ClassCastException e) {
this.blank_lines_at_beginning_of_method_body = 0;
}
}
final Object commentClearBlankLinesOption = settings.get(DefaultCodeFormatterConstants.FORMATTER_COMMENT_CLEAR_BLANK_LINES);
|
| ||||
if (numberOfEmptyLinesToPreserveOption != null) {
try {
this.number_of_empty_lines_to_preserve = Integer.parseInt((String) numberOfEmptyLinesToPreserveOption);
} catch (NumberFormatException e) {
this.number_of_empty_lines_to_preserve = 0;
}
catch (ClassCastException e) {
this.number_of_empty_lines_to_preserve = 0;
}
}
final Object putEmptyStatementOnNewLineOption = settings.get(DefaultCodeFormatterConstants.FORMATTER_PUT_EMPTY_STATEMENT_ON_NEW_LINE);
|
| |||
if ( [[#variable579c9280]]!= null) {
try {
this. [[#variable5fd279e0]]= Integer.parseInt((String) [[#variable579c9280]]);
}
catch (NumberFormatException e) {
this. [[#variable5fd279e0]]= 0;
}
catch (ClassCastException e) {
this. [[#variable5fd279e0]]= 0;
}
}
final Object [[#variableba7cd900]]= settings.get(DefaultCodeFormatterConstants. [[#variable7d16b260]]);
|
| CloneAbstraction |
| Parameter Index | Clone Instance | Parameter Name | Value |
|---|---|---|---|
| 1 | 1 | [[#579c9280]] | blankLinesAfterImportsOption |
| 1 | 2 | [[#579c9280]] | blankLinesAfterPackageOption |
| 1 | 3 | [[#579c9280]] | blankLinesBeforeFieldOption |
| 1 | 4 | [[#579c9280]] | blankLinesBeforeFirstClassBodyDeclarationOption |
| 1 | 5 | [[#579c9280]] | blankLinesBeforeImportsOption |
| 1 | 6 | [[#579c9280]] | blankLinesBeforeMemberTypeOption |
| 1 | 7 | [[#579c9280]] | blankLinesBeforeMethodOption |
| 1 | 8 | [[#579c9280]] | blankLinesBeforeNewChunkOption |
| 1 | 9 | [[#579c9280]] | blankLinesBeforePackageOption |
| 1 | 10 | [[#579c9280]] | blankLinesBetweenTypeDeclarationsOption |
| 1 | 11 | [[#579c9280]] | blankLinesAtBeginningOfMethodBodyOption |
| 1 | 12 | [[#579c9280]] | numberOfEmptyLinesToPreserveOption |
| 2 | 1 | [[#5fd279e0]] | blank_lines_after_imports |
| 2 | 2 | [[#5fd279e0]] | blank_lines_after_package |
| 2 | 3 | [[#5fd279e0]] | blank_lines_before_field |
| 2 | 4 | [[#5fd279e0]] | blank_lines_before_first_class_body_declaration |
| 2 | 5 | [[#5fd279e0]] | blank_lines_before_imports |
| 2 | 6 | [[#5fd279e0]] | blank_lines_before_member_type |
| 2 | 7 | [[#5fd279e0]] | blank_lines_before_method |
| 2 | 8 | [[#5fd279e0]] | blank_lines_before_new_chunk |
| 2 | 9 | [[#5fd279e0]] | blank_lines_before_package |
| 2 | 10 | [[#5fd279e0]] | blank_lines_between_type_declarations |
| 2 | 11 | [[#5fd279e0]] | blank_lines_at_beginning_of_method_body |
| 2 | 12 | [[#5fd279e0]] | number_of_empty_lines_to_preserve |
| 3 | 1 | [[#ba7cd900]] | blankLinesAfterPackageOption |
| 3 | 2 | [[#ba7cd900]] | blankLinesBeforeFieldOption |
| 3 | 3 | [[#ba7cd900]] | blankLinesBeforeFirstClassBodyDeclarationOption |
| 3 | 4 | [[#ba7cd900]] | blankLinesBeforeImportsOption |
| 3 | 5 | [[#ba7cd900]] | blankLinesBeforeMemberTypeOption |
| 3 | 6 | [[#ba7cd900]] | blankLinesBeforeMethodOption |
| 3 | 7 | [[#ba7cd900]] | blankLinesBeforeNewChunkOption |
| 3 | 8 | [[#ba7cd900]] | blankLinesBeforePackageOption |
| 3 | 9 | [[#ba7cd900]] | blankLinesBetweenTypeDeclarationsOption |
| 3 | 10 | [[#ba7cd900]] | blankLinesAtBeginningOfMethodBodyOption |
| 3 | 11 | [[#ba7cd900]] | commentClearBlankLinesOption |
| 3 | 12 | [[#ba7cd900]] | putEmptyStatementOnNewLineOption |
| 4 | 1 | [[#7d16b260]] | FORMATTER_BLANK_LINES_AFTER_PACKAGE |
| 4 | 2 | [[#7d16b260]] | FORMATTER_BLANK_LINES_BEFORE_FIELD |
| 4 | 3 | [[#7d16b260]] | FORMATTER_BLANK_LINES_BEFORE_FIRST_CLASS_BODY_DECLARATION |
| 4 | 4 | [[#7d16b260]] | FORMATTER_BLANK_LINES_BEFORE_IMPORTS |
| 4 | 5 | [[#7d16b260]] | FORMATTER_BLANK_LINES_BEFORE_MEMBER_TYPE |
| 4 | 6 | [[#7d16b260]] | FORMATTER_BLANK_LINES_BEFORE_METHOD |
| 4 | 7 | [[#7d16b260]] | FORMATTER_BLANK_LINES_BEFORE_NEW_CHUNK |
| 4 | 8 | [[#7d16b260]] | FORMATTER_BLANK_LINES_BEFORE_PACKAGE |
| 4 | 9 | [[#7d16b260]] | FORMATTER_BLANK_LINES_BETWEEN_TYPE_DECLARATIONS |
| 4 | 10 | [[#7d16b260]] | FORMATTER_BLANK_LINES_AT_BEGINNING_OF_METHOD_BODY |
| 4 | 11 | [[#7d16b260]] | FORMATTER_COMMENT_CLEAR_BLANK_LINES |
| 4 | 12 | [[#7d16b260]] | FORMATTER_PUT_EMPTY_STATEMENT_ON_NEW_LINE |