CloneSet1005


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
22350.970class_body_declarations[2]
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
122202
plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/text/JavaIndenter.java
222257
plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/text/JavaIndenter.java
322281
plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/text/JavaIndenter.java
Clone Instance
1
Line Count
22
Source Line
202
Source File
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();
                }


Clone Instance
2
Line Count
22
Source Line
257
Source File
plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/text/JavaIndenter.java

                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;
                }


Clone Instance
3
Line Count
22
Source Line
281
Source File
plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/text/JavaIndenter.java

                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
                }


Clone AbstractionParameter Count: 5Parameter Bindings

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 Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
11[[#97ae70e0]]
prefMethodCallDeepIndent 
12[[#97ae70e0]]
prefMethodDeclDeepIndent 
13[[#97ae70e0]]
prefTernaryDeepAlign 
21[[#97ae7060]]
FORMATTER_ALIGNMENT_FOR_ARGUMENTS_IN_METHOD_INVOCATION 
22[[#97ae7060]]
FORMATTER_ALIGNMENT_FOR_PARAMETERS_IN_METHOD_DECLARATION 
23[[#97ae7060]]
FORMATTER_ALIGNMENT_FOR_CONDITIONAL_EXPRESSION 
31[[#97ae6f00]]
false 
32[[#97ae6f00]]
true 
33[[#97ae6f00]]
false 
41[[#97ae6f40]]
prefMethodCallIndent 
42[[#97ae6f40]]
prefMethodDeclIndent 
43[[#97ae6f40]]
prefTernaryIndent 
51[[#97ae6ee0]]
1 
52[[#97ae6ee0]]
1 
53[[#97ae6ee0]]
prefContinuationIndent()