Previous CloneSet | Next CloneSet | Back to Main Report |
Clone Mass | Clones in CloneSet | Parameter Count | Clone Similarity | Syntax Category [Sequence Length] |
---|---|---|---|---|
8 | 2 | 0 | 1.000 | class_body_declaration |
Clone Abstraction | Parameter Bindings |
Clone Instance (Click to see clone) | Line Count | Source Line | Source File |
---|---|---|---|
1 | 8 | 102 | plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/text/java/ExperimentalResultCollector.java |
2 | 8 | 137 | plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/text/java/JavaTypeCompletionProposalComputer.java |
| ||||
/** * Returns <code>true</code> if generic proposals should be allowed, * <code>false</code> if not. Note that even though code (in a library) * may be referenced that uses generics, it is still possible that the * current source does not allow generics. * * @return <code>true</code> if the generic proposals should be allowed, * <code>false</code> if not */ private final boolean shouldProposeGenerics(IJavaProject project) { String sourceVersion; if (project != null) sourceVersion = project.getOption(JavaCore.COMPILER_SOURCE, true); else sourceVersion = JavaCore.getOption(JavaCore.COMPILER_SOURCE); return sourceVersion != null && JavaCore.VERSION_1_5.compareTo(sourceVersion) <= 0; } |
| ||||
/** * Returns <code>true</code> if generic proposals should be allowed, * <code>false</code> if not. Note that even though code (in a library) * may be referenced that uses generics, it is still possible that the * current source does not allow generics. * * @return <code>true</code> if the generic proposals should be allowed, * <code>false</code> if not */ private final boolean shouldProposeGenerics(IJavaProject project) { String sourceVersion; if (project != null) sourceVersion = project.getOption(JavaCore.COMPILER_SOURCE, true); else sourceVersion = JavaCore.getOption(JavaCore.COMPILER_SOURCE); return sourceVersion != null && JavaCore.VERSION_1_5.compareTo(sourceVersion) <= 0; } |
| |||
/** * Returns <code>true</code> if generic proposals should be allowed, * <code>false</code> if not. Note that even though code (in a library) * may be referenced that uses generics, it is still possible that the * current source does not allow generics. * * @return <code>true</code> if the generic proposals should be allowed, * <code>false</code> if not */ private final boolean shouldProposeGenerics(IJavaProject project) { String sourceVersion; if (project != null) sourceVersion = project.getOption(JavaCore.COMPILER_SOURCE, true); else sourceVersion = JavaCore.getOption(JavaCore.COMPILER_SOURCE); return sourceVersion != null && JavaCore.VERSION_1_5.compareTo(sourceVersion) <= 0; } |
CloneAbstraction |
Parameter Index | Clone Instance | Parameter Name | Value |
---|---|---|---|
None |