CloneSet2167


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
8210.996class_body_declaration
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
18528
plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/javaeditor/CompilationUnitEditor.java
28217
plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/text/JavaPairMatcher.java
Clone Instance
1
Line Count
8
Source Line
528
Source File
plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/javaeditor/CompilationUnitEditor.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$
                }


Clone Instance
2
Line Count
8
Source Line
217
Source File
plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/text/JavaPairMatcher.java

        /**
         * 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$
        }


Clone AbstractionParameter Count: 1Parameter Bindings

/**
         * 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 Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
11[[#a161c4e0]]
isTypeParameterIntroducer 
12[[#a161c4e0]]
isAngularIntroducer