| Previous CloneSet | Next CloneSet | Back to Main Report |
| Clone Mass | Clones in CloneSet | Parameter Count | Clone Similarity | Syntax Category [Sequence Length] |
|---|---|---|---|---|
| 1 | 9 | 3 | 0.958 | statement_sequence_member |
| Clone Abstraction | Parameter Bindings |
| Clone Instance (Click to see clone) | Line Count | Source Line | Source File |
|---|---|---|---|
| 1 | 1 | 268 | plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/text/correction/AdvancedQuickAssistProcessor.java |
| 2 | 1 | 321 | plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/text/correction/AdvancedQuickAssistProcessor.java |
| 3 | 1 | 376 | plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/text/correction/AdvancedQuickAssistProcessor.java |
| 4 | 1 | 795 | plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/text/correction/AdvancedQuickAssistProcessor.java |
| 5 | 1 | 796 | plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/text/correction/AdvancedQuickAssistProcessor.java |
| 6 | 1 | 836 | plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/text/correction/AdvancedQuickAssistProcessor.java |
| 7 | 1 | 837 | plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/text/correction/AdvancedQuickAssistProcessor.java |
| 8 | 1 | 1025 | plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/text/correction/AdvancedQuickAssistProcessor.java |
| 9 | 3 | 1967 | plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/text/correction/AdvancedQuickAssistProcessor.java |
| ||||
// prepare original nodes
Expression inversedExpression = getInversedBooleanExpression(ast, rewrite, ifStatement.getExpression());
|
| ||||
// create inversed 'if' statement
Expression inversedExpression = getInversedBooleanExpression(ast, rewrite, ifStatement.getExpression());
|
| ||||
// create inversed 'if' statement
Expression inversedExpression = getInversedBooleanExpression(ast, rewrite, ifStatement.getExpression());
|
| ||||
// prepare condition parts, add parenthesis if needed
Expression outerCondition = getParenthesizedForAndIfNeeded(ast, rewrite, outerIf.getExpression());
|
| ||||
Expression innerCondition = getParenthesizedForAndIfNeeded(ast, rewrite, ifStatement.getExpression()); |
| ||||
// prepare condition parts, add parenthesis if needed
Expression outerCondition = getParenthesizedForAndIfNeeded(ast, rewrite, ifStatement.getExpression());
|
| ||||
Expression innerCondition = getParenthesizedForAndIfNeeded(ast, rewrite, innerIf.getExpression()); |
| ||||
Expression ifCondition = getParenthesizedForOrIfNeeded(ast, rewrite, ifStatement.getExpression()); |
| ||||
// prepared inversed expression
Expression inversedExpression = getInversedBooleanExpression(ast,
rewrite ,
parenthesizedExpression.getExpression() );
|
| |||
// create inversed 'if' statement // prepared inversed expression // prepare condition parts, add parenthesis if needed // prepare original nodes Expression [[#variable97a70920]]= [[#variable97a70f20]](ast, rewrite, [[#variable97a71080]].getExpression()); |
| CloneAbstraction |
| Parameter Index | Clone Instance | Parameter Name | Value |
|---|---|---|---|
| 1 | 1 | [[#97a70920]] | inversedExpression |
| 1 | 2 | [[#97a70920]] | inversedExpression |
| 1 | 3 | [[#97a70920]] | ifCondition |
| 1 | 4 | [[#97a70920]] | innerCondition |
| 1 | 5 | [[#97a70920]] | outerCondition |
| 1 | 6 | [[#97a70920]] | innerCondition |
| 1 | 7 | [[#97a70920]] | outerCondition |
| 1 | 8 | [[#97a70920]] | inversedExpression |
| 1 | 9 | [[#97a70920]] | inversedExpression |
| 2 | 1 | [[#97a70f20]] | getInversedBooleanExpression |
| 2 | 2 | [[#97a70f20]] | getInversedBooleanExpression |
| 2 | 3 | [[#97a70f20]] | getParenthesizedForOrIfNeeded |
| 2 | 4 | [[#97a70f20]] | getParenthesizedForAndIfNeeded |
| 2 | 5 | [[#97a70f20]] | getParenthesizedForAndIfNeeded |
| 2 | 6 | [[#97a70f20]] | getParenthesizedForAndIfNeeded |
| 2 | 7 | [[#97a70f20]] | getParenthesizedForAndIfNeeded |
| 2 | 8 | [[#97a70f20]] | getInversedBooleanExpression |
| 2 | 9 | [[#97a70f20]] | getInversedBooleanExpression |
| 3 | 1 | [[#97a71080]] | ifStatement |
| 3 | 2 | [[#97a71080]] | parenthesizedExpression |
| 3 | 3 | [[#97a71080]] | ifStatement |
| 3 | 4 | [[#97a71080]] | innerIf |
| 3 | 5 | [[#97a71080]] | ifStatement |
| 3 | 6 | [[#97a71080]] | ifStatement |
| 3 | 7 | [[#97a71080]] | outerIf |
| 3 | 8 | [[#97a71080]] | ifStatement |
| 3 | 9 | [[#97a71080]] | ifStatement |