Previous CloneSet | Next CloneSet | Back to Main Report |
Clone Mass | Clones in CloneSet | Parameter Count | Clone Similarity | Syntax Category [Sequence Length] |
---|---|---|---|---|
12 | 2 | 2 | 0.994 | class_body_declaration |
Clone Abstraction | Parameter Bindings |
Clone Instance (Click to see clone) | Line Count | Source Line | Source File |
---|---|---|---|
1 | 12 | 778 | plugins/org.eclipse.jdt.ui/core refactoring/org/eclipse/jdt/internal/corext/refactoring/Checks.java |
2 | 12 | 792 | 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; } |
| ||||
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; } |
| |||
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 Index | Clone Instance | Parameter Name | Value |
---|---|---|---|
1 | 1 | [[#97a65e20]] | checkEnumConstantName |
1 | 2 | [[#97a65e20]] | checkConstantName |
2 | 1 | [[#77af6f20]] | RenameEnumConstRefactoring_convention |
2 | 2 | [[#77af6f20]] | ExtractConstantRefactoring_convention |