Previous CloneSet | Next CloneSet | Back to Main Report |
Clone Mass | Clones in CloneSet | Parameter Count | Clone Similarity | Syntax Category [Sequence Length] |
---|---|---|---|---|
8 | 2 | 1 | 0.996 | class_body_declaration |
Clone Abstraction | Parameter Bindings |
Clone Instance (Click to see clone) | Line Count | Source Line | Source File |
---|---|---|---|
1 | 8 | 528 | plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/javaeditor/CompilationUnitEditor.java |
2 | 8 | 217 | plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/text/JavaPairMatcher.java |
| ||||
private boolean isAngularIntroducer(String identifier) { return identifier.length() > 0 && (Character.isUpperCase(identifier.charAt(0)) || identifier.startsWith("final") //$NON-NLS-1$ || identifier.startsWith("public") //$NON-NLS-1$ || identifier.startsWith("public") //$NON-NLS-1$ || identifier.startsWith("protected") //$NON-NLS-1$ || identifier.startsWith("private")); //$NON-NLS-1$ } |
| ||||
/** * Returns <code>true</code> if <code>identifier</code> is an identifier * that could come right before a type parameter list. It uses a heuristic: * if the identifier starts with an upper case, it is assumed a type name. * Also, if <code>identifier</code> is a method modifier, it is assumed * that the angular bracket is part of the generic type parameter of a * method. * * @param identifier the identifier to check * @return <code>true</code> if the identifier could introduce a type * parameter list * @since 3.1 */ private boolean isTypeParameterIntroducer(String identifier) { return identifier.length() > 0 && (Character.isUpperCase(identifier.charAt(0)) || identifier.startsWith("final") //$NON-NLS-1$ || identifier.startsWith("public") //$NON-NLS-1$ || identifier.startsWith("public") //$NON-NLS-1$ || identifier.startsWith("protected") //$NON-NLS-1$ || identifier.startsWith("private")); //$NON-NLS-1$ } |
| |||
/** * Returns <code>true</code> if <code>identifier</code> is an identifier * that could come right before a type parameter list. It uses a heuristic: * if the identifier starts with an upper case, it is assumed a type name. * Also, if <code>identifier</code> is a method modifier, it is assumed * that the angular bracket is part of the generic type parameter of a * method. * * @param identifier the identifier to check * @return <code>true</code> if the identifier could introduce a type * parameter list * @since 3.1 */ private boolean [[#variablea161c4e0]](String identifier) { return identifier.length() > 0 && (Character.isUpperCase(identifier.charAt(0)) || identifier.startsWith("final") //$NON-NLS-1$ || identifier.startsWith("public") //$NON-NLS-1$ || identifier.startsWith("public") //$NON-NLS-1$ || identifier.startsWith("protected") //$NON-NLS-1$ || identifier.startsWith("private")); //$NON-NLS-1$ } |
CloneAbstraction |
Parameter Index | Clone Instance | Parameter Name | Value |
---|---|---|---|
1 | 1 | [[#a161c4e0]] | isTypeParameterIntroducer |
1 | 2 | [[#a161c4e0]] | isAngularIntroducer |