| Previous CloneSet | Next CloneSet | Back to Main Report |
| Clone Mass | Clones in CloneSet | Parameter Count | Clone Similarity | Syntax Category [Sequence Length] |
|---|---|---|---|---|
| 22 | 3 | 5 | 0.970 | class_body_declarations[2] |
| Clone Abstraction | Parameter Bindings |
| Clone Instance (Click to see clone) | Line Count | Source Line | Source File |
|---|---|---|---|
| 1 | 22 | 202 | plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/text/JavaIndenter.java |
| 2 | 22 | 257 | plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/text/JavaIndenter.java |
| 3 | 22 | 281 | plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/text/JavaIndenter.java |
| ||||
private boolean prefTernaryDeepAlign() {
String option = getCoreFormatterOption(DefaultCodeFormatterConstants.FORMATTER_ALIGNMENT_FOR_CONDITIONAL_EXPRESSION);
try {
return DefaultCodeFormatterConstants.getIndentStyle(option) == DefaultCodeFormatterConstants.INDENT_ON_COLUMN;
} catch (IllegalArgumentException e) {
// ignore and return default
}
return false;
}
private int prefTernaryIndent() {
String option = getCoreFormatterOption(DefaultCodeFormatterConstants.FORMATTER_ALIGNMENT_FOR_CONDITIONAL_EXPRESSION);
try {
if (DefaultCodeFormatterConstants.getIndentStyle(option) == DefaultCodeFormatterConstants.INDENT_BY_ONE)
return 1;
else
return prefContinuationIndent();
} catch (IllegalArgumentException e) {
// ignore and return default
}
return prefContinuationIndent();
}
|
| ||||
private boolean prefMethodDeclDeepIndent() {
String option = getCoreFormatterOption(DefaultCodeFormatterConstants.FORMATTER_ALIGNMENT_FOR_PARAMETERS_IN_METHOD_DECLARATION);
try {
return DefaultCodeFormatterConstants.getIndentStyle(option) == DefaultCodeFormatterConstants.INDENT_ON_COLUMN;
} catch (IllegalArgumentException e) {
// ignore and return default
}
return true;
}
private int prefMethodDeclIndent() {
String option = getCoreFormatterOption(DefaultCodeFormatterConstants.FORMATTER_ALIGNMENT_FOR_PARAMETERS_IN_METHOD_DECLARATION);
try {
if (DefaultCodeFormatterConstants.getIndentStyle(option) == DefaultCodeFormatterConstants.INDENT_BY_ONE)
return 1;
else
return prefContinuationIndent();
} catch (IllegalArgumentException e) {
// ignore and return default
}
return 1;
}
|
| ||||
private boolean prefMethodCallDeepIndent() {
String option = getCoreFormatterOption(DefaultCodeFormatterConstants.FORMATTER_ALIGNMENT_FOR_ARGUMENTS_IN_METHOD_INVOCATION);
try {
return DefaultCodeFormatterConstants.getIndentStyle(option) == DefaultCodeFormatterConstants.INDENT_ON_COLUMN;
} catch (IllegalArgumentException e) {
// ignore and return default
}
return false; // sensible default
}
private int prefMethodCallIndent() {
String option = getCoreFormatterOption(DefaultCodeFormatterConstants.FORMATTER_ALIGNMENT_FOR_ARGUMENTS_IN_METHOD_INVOCATION);
try {
if (DefaultCodeFormatterConstants.getIndentStyle(option) == DefaultCodeFormatterConstants.INDENT_BY_ONE)
return 1;
else
return prefContinuationIndent();
} catch (IllegalArgumentException e) {
// ignore and return default
}
return 1; // sensible default
}
|
| |||
private boolean [[#variable97ae70e0]]() {
String option = getCoreFormatterOption(DefaultCodeFormatterConstants. [[#variable97ae7060]]);
try {
return DefaultCodeFormatterConstants.getIndentStyle(option) == DefaultCodeFormatterConstants.INDENT_ON_COLUMN;
}
catch (IllegalArgumentException e) {
// ignore and return default
}
return [[#variable97ae6f00]]; // sensible default
}
private int [[#variable97ae6f40]]() {
String option = getCoreFormatterOption(DefaultCodeFormatterConstants. [[#variable97ae7060]]);
try {
if (DefaultCodeFormatterConstants.getIndentStyle(option) == DefaultCodeFormatterConstants.INDENT_BY_ONE)
return 1;
else
return prefContinuationIndent();
}
catch (IllegalArgumentException e) {
// ignore and return default
}
return [[#variable97ae6ee0]]; // sensible default
}
|
| CloneAbstraction |
| Parameter Index | Clone Instance | Parameter Name | Value |
|---|---|---|---|
| 1 | 1 | [[#97ae70e0]] | prefMethodCallDeepIndent |
| 1 | 2 | [[#97ae70e0]] | prefMethodDeclDeepIndent |
| 1 | 3 | [[#97ae70e0]] | prefTernaryDeepAlign |
| 2 | 1 | [[#97ae7060]] | FORMATTER_ALIGNMENT_FOR_ARGUMENTS_IN_METHOD_INVOCATION |
| 2 | 2 | [[#97ae7060]] | FORMATTER_ALIGNMENT_FOR_PARAMETERS_IN_METHOD_DECLARATION |
| 2 | 3 | [[#97ae7060]] | FORMATTER_ALIGNMENT_FOR_CONDITIONAL_EXPRESSION |
| 3 | 1 | [[#97ae6f00]] | false |
| 3 | 2 | [[#97ae6f00]] | true |
| 3 | 3 | [[#97ae6f00]] | false |
| 4 | 1 | [[#97ae6f40]] | prefMethodCallIndent |
| 4 | 2 | [[#97ae6f40]] | prefMethodDeclIndent |
| 4 | 3 | [[#97ae6f40]] | prefTernaryIndent |
| 5 | 1 | [[#97ae6ee0]] | 1 |
| 5 | 2 | [[#97ae6ee0]] | 1 |
| 5 | 3 | [[#97ae6ee0]] | prefContinuationIndent() |