Previous CloneSet | Next CloneSet | Back to Main Report |
Clone Mass | Clones in CloneSet | Parameter Count | Clone Similarity | Syntax Category [Sequence Length] |
---|---|---|---|---|
7 | 5 | 4 | 0.953 | class_body_declaration |
Clone Abstraction | Parameter Bindings |
Clone Instance (Click to see clone) | Line Count | Source Line | Source File |
---|---|---|---|
1 | 7 | 22 | plugins/org.eclipse.jdt.core/compiler/org/eclipse/jdt/internal/compiler/DefaultErrorHandlingPolicies.java |
2 | 7 | 37 | plugins/org.eclipse.jdt.core/compiler/org/eclipse/jdt/internal/compiler/DefaultErrorHandlingPolicies.java |
3 | 7 | 51 | plugins/org.eclipse.jdt.core/compiler/org/eclipse/jdt/internal/compiler/DefaultErrorHandlingPolicies.java |
4 | 7 | 65 | plugins/org.eclipse.jdt.core/compiler/org/eclipse/jdt/internal/compiler/DefaultErrorHandlingPolicies.java |
5 | 9 | 270 | plugins/org.eclipse.jdt.core/dom/org/eclipse/jdt/core/dom/CompilationUnitResolver.java |
| ||||
/* * Accumulate all problems, then exit without proceeding. * * Typically, the #proceedWithProblems(Problem[]) should * show the problems. * */ public static IErrorHandlingPolicy exitAfterAllProblems() { return new IErrorHandlingPolicy() { public boolean stopOnFirstError() { return false; } public boolean proceedOnErrors() { return false; } }; } |
| ||||
/* * Exit without proceeding on the first problem wich appears * to be an error. * */ public static IErrorHandlingPolicy exitOnFirstError() { return new IErrorHandlingPolicy() { public boolean stopOnFirstError() { return true; } public boolean proceedOnErrors() { return false; } }; } |
| ||||
/* * Proceed on the first error met. * */ public static IErrorHandlingPolicy proceedOnFirstError() { return new IErrorHandlingPolicy() { public boolean stopOnFirstError() { return true; } public boolean proceedOnErrors() { return true; } }; } |
| ||||
/* * Accumulate all problems, then proceed with them. * */ public static IErrorHandlingPolicy proceedWithAllProblems() { return new IErrorHandlingPolicy() { public boolean stopOnFirstError() { return false; } public boolean proceedOnErrors() { return true; } }; } |
| ||||
/* * Low-level API performing the actual compilation */ protected static IErrorHandlingPolicy getHandlingPolicy() { // passes the initial set of files to the batch oracle (to avoid finding more than once the same units when case insensitive match) return new IErrorHandlingPolicy() { public boolean stopOnFirstError() { return false; } public boolean proceedOnErrors() { return false; // stop if there are some errors } }; } |
| |||
[[#variablea3fdbaa0]]static IErrorHandlingPolicy [[#variablea3fdb9e0]]() { // passes the initial set of files to the batch oracle (to avoid finding more than once the same units when case insensitive match) return new IErrorHandlingPolicy() { public boolean stopOnFirstError() { return [[#variablea3fdb920]]; } public boolean proceedOnErrors() { return [[#variablea3fdb8a0]]; // stop if there are some errors } }; } |
CloneAbstraction |
Parameter Index | Clone Instance | Parameter Name | Value |
---|---|---|---|
1 | 1 | [[#a3fdbaa0]] | /* * Accumulate all problems, then proceed with them. * */ public |
1 | 2 | [[#a3fdbaa0]] | /* * Proceed on the first error met. * */ public |
1 | 3 | [[#a3fdbaa0]] | /* * Exit without proceeding on the first problem wich appears * to be an error. * */ public |
1 | 4 | [[#a3fdbaa0]] | /* * Accumulate all problems, then exit without proceeding. * * Typically, the #proceedWithProblems(Problem[]) should * show the problems. * */ public |
1 | 5 | [[#a3fdbaa0]] | /* * Low-level API performing the actual compilation */ protected |
2 | 1 | [[#a3fdb9e0]] | proceedWithAllProblems |
2 | 2 | [[#a3fdb9e0]] | proceedOnFirstError |
2 | 3 | [[#a3fdb9e0]] | exitOnFirstError |
2 | 4 | [[#a3fdb9e0]] | exitAfterAllProblems |
2 | 5 | [[#a3fdb9e0]] | getHandlingPolicy |
3 | 1 | [[#a3fdb920]] | false |
3 | 2 | [[#a3fdb920]] | true |
3 | 3 | [[#a3fdb920]] | true |
3 | 4 | [[#a3fdb920]] | false |
3 | 5 | [[#a3fdb920]] | false |
4 | 1 | [[#a3fdb8a0]] | true |
4 | 2 | [[#a3fdb8a0]] | true |
4 | 3 | [[#a3fdb8a0]] | false |
4 | 4 | [[#a3fdb8a0]] | false |
4 | 5 | [[#a3fdb8a0]] | false |