Previous CloneSet | Next CloneSet | Back to Main Report |
Clone Mass | Clones in CloneSet | Parameter Count | Clone Similarity | Syntax Category [Sequence Length] |
---|---|---|---|---|
10 | 4 | 4 | 0.966 | statement_sequence[5] |
Clone Abstraction | Parameter Bindings |
Clone Instance (Click to see clone) | Line Count | Source Line | Source File |
---|---|---|---|
1 | 10 | 3308 | plugins/org.eclipse.jdt.core/formatter/org/eclipse/jdt/internal/formatter/CodeFormatterVisitor.java |
2 | 10 | 3534 | plugins/org.eclipse.jdt.core/formatter/org/eclipse/jdt/internal/formatter/CodeFormatterVisitor.java |
3 | 10 | 3875 | plugins/org.eclipse.jdt.core/formatter/org/eclipse/jdt/internal/formatter/CodeFormatterVisitor.java |
4 | 10 | 3924 | 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; |
| ||||
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; |
| ||||
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; |
| ||||
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; |
| |||
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 Index | Clone Instance | Parameter Name | Value |
---|---|---|---|
1 | 1 | [[#b2133660]] | doubleLiteral |
1 | 2 | [[#b2133660]] | floatLiteral |
1 | 3 | [[#b2133660]] | intLiteral |
1 | 4 | [[#b2133660]] | longLiteral |
2 | 1 | [[#58a03ce0]] | constant |
2 | 2 | [[#58a03ce0]] | floatLiteral.constant |
2 | 3 | [[#58a03ce0]] | constant |
2 | 4 | [[#58a03ce0]] | constant |
3 | 1 | [[#b446ba20]] | doubleValue |
3 | 2 | [[#b446ba20]] | floatValue |
3 | 3 | [[#b446ba20]] | intValue |
3 | 4 | [[#b446ba20]] | longValue |
4 | 1 | [[#5219d380]] | TokenNameDoubleLiteral |
4 | 2 | [[#5219d380]] | TokenNameFloatingPointLiteral |
4 | 3 | [[#5219d380]] | TokenNameIntegerLiteral |
4 | 4 | [[#5219d380]] | TokenNameLongLiteral |