CloneSet1703


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
12220.994class_body_declaration
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
112778
plugins/org.eclipse.jdt.ui/core refactoring/org/eclipse/jdt/internal/corext/refactoring/Checks.java
212792
plugins/org.eclipse.jdt.ui/core refactoring/org/eclipse/jdt/internal/corext/refactoring/Checks.java
Clone Instance
1
Line Count
12
Source Line
778
Source File
plugins/org.eclipse.jdt.ui/core refactoring/org/eclipse/jdt/internal/corext/refactoring/Checks.java

        public static RefactoringStatus checkEnumConstantName(String newName) {
                RefactoringStatus result = Checks.checkFieldName(newName);
                if (result.hasFatalError())
                        return result;
                for (int i = 0; i < newName.length(); i++) {
                        char c = newName.charAt(i);
                        if (Character.isLetter(c) && !Character.isUpperCase(c)) {
                                result.addWarning(RefactoringCoreMessages.RenameEnumConstRefactoring_convention);
                                break;
                        }
                }
                return result;
        }


Clone Instance
2
Line Count
12
Source Line
792
Source File
plugins/org.eclipse.jdt.ui/core refactoring/org/eclipse/jdt/internal/corext/refactoring/Checks.java

        public static RefactoringStatus checkConstantName(String newName) {
                RefactoringStatus result = Checks.checkFieldName(newName);
                if (result.hasFatalError())
                        return result;
                for (int i = 0; i < newName.length(); i++) {
                        char c = newName.charAt(i);
                        if (Character.isLetter(c) && !Character.isUpperCase(c)) {
                                result.addWarning(RefactoringCoreMessages.ExtractConstantRefactoring_convention);
                                break;
                        }
                }
                return result;
        }


Clone AbstractionParameter Count: 2Parameter Bindings

public static RefactoringStatus  [[#variable97a65e20]](String newName) {
  RefactoringStatus result = Checks.checkFieldName(newName);
  if (result.hasFatalError())
    return result;
  for (int i = 0; i < newName.length(); i++) {
    char c = newName.charAt(i);
    if (Character.isLetter(c) && !Character.isUpperCase(c)) {
      result.addWarning(RefactoringCoreMessages. [[#variable77af6f20]]);
      break;
    }
  }
  return result;
}
 

CloneAbstraction
Parameter Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
11[[#97a65e20]]
checkEnumConstantName 
12[[#97a65e20]]
checkConstantName 
21[[#77af6f20]]
RenameEnumConstRefactoring_convention 
22[[#77af6f20]]
ExtractConstantRefactoring_convention