CloneSet1073


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
10440.966statement_sequence[5]
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
1103308
plugins/org.eclipse.jdt.core/formatter/org/eclipse/jdt/internal/formatter/CodeFormatterVisitor.java
2103534
plugins/org.eclipse.jdt.core/formatter/org/eclipse/jdt/internal/formatter/CodeFormatterVisitor.java
3103875
plugins/org.eclipse.jdt.core/formatter/org/eclipse/jdt/internal/formatter/CodeFormatterVisitor.java
4103924
plugins/org.eclipse.jdt.core/formatter/org/eclipse/jdt/internal/formatter/CodeFormatterVisitor.java
Clone Instance
1
Line Count
10
Source Line
3308
Source File
plugins/org.eclipse.jdt.core/formatter/org/eclipse/jdt/internal/formatter/CodeFormatterVisitor.java

                Constant constant = doubleLiteral.constant;
                if (constant != null && constant.doubleValue() < 0) {
                        this.scribe.printNextToken(TerminalTokens.TokenNameMINUS);
                }
                this.scribe.printNextToken(TerminalTokens.TokenNameDoubleLiteral);

                if (numberOfParens > 0) {
                        manageClosingParenthesizedExpression(doubleLiteral, numberOfParens);
                }
                return false;


Clone Instance
2
Line Count
10
Source Line
3534
Source File
plugins/org.eclipse.jdt.core/formatter/org/eclipse/jdt/internal/formatter/CodeFormatterVisitor.java

                Constant constant = floatLiteral.constant;
                if (constant != null && floatLiteral.constant.floatValue() < 0) {
                        this.scribe.printNextToken(TerminalTokens.TokenNameMINUS);
                }
                this.scribe.printNextToken(TerminalTokens.TokenNameFloatingPointLiteral);

                if (numberOfParens > 0) {
                        manageClosingParenthesizedExpression(floatLiteral, numberOfParens);
                }
                return false;


Clone Instance
3
Line Count
10
Source Line
3875
Source File
plugins/org.eclipse.jdt.core/formatter/org/eclipse/jdt/internal/formatter/CodeFormatterVisitor.java

                Constant constant = intLiteral.constant;
                if (constant != null && constant.intValue() < 0) {
                        this.scribe.printNextToken(TerminalTokens.TokenNameMINUS);
                }
                this.scribe.printNextToken(TerminalTokens.TokenNameIntegerLiteral);

                if (numberOfParens > 0) {
                        manageClosingParenthesizedExpression(intLiteral, numberOfParens);
                }
                return false;


Clone Instance
4
Line Count
10
Source Line
3924
Source File
plugins/org.eclipse.jdt.core/formatter/org/eclipse/jdt/internal/formatter/CodeFormatterVisitor.java

                Constant constant = longLiteral.constant;
                if (constant != null && constant.longValue() < 0) {
                        this.scribe.printNextToken(TerminalTokens.TokenNameMINUS);
                }
                this.scribe.printNextToken(TerminalTokens.TokenNameLongLiteral);

                if (numberOfParens > 0) {
                        manageClosingParenthesizedExpression(longLiteral, numberOfParens);
                }
                return false;


Clone AbstractionParameter Count: 4Parameter Bindings

Constant constant = [[#variableb2133660]].constant;
if (constant != null && [[#variable58a03ce0]]. [[#variableb446ba20]]() < 0) {
  this.scribe.printNextToken(TerminalTokens.TokenNameMINUS);
}
this.scribe.printNextToken(TerminalTokens. [[#variable5219d380]]);
if (numberOfParens > 0) {
  manageClosingParenthesizedExpression( [[#variableb2133660]], numberOfParens);
}
return false;
 

CloneAbstraction
Parameter Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
11[[#b2133660]]
doubleLiteral 
12[[#b2133660]]
floatLiteral 
13[[#b2133660]]
intLiteral 
14[[#b2133660]]
longLiteral 
21[[#58a03ce0]]
constant 
22[[#58a03ce0]]
floatLiteral.constant 
23[[#58a03ce0]]
constant 
24[[#58a03ce0]]
constant 
31[[#b446ba20]]
doubleValue 
32[[#b446ba20]]
floatValue 
33[[#b446ba20]]
intValue 
34[[#b446ba20]]
longValue 
41[[#5219d380]]
TokenNameDoubleLiteral 
42[[#5219d380]]
TokenNameFloatingPointLiteral 
43[[#5219d380]]
TokenNameIntegerLiteral 
44[[#5219d380]]
TokenNameLongLiteral