Previous CloneSet | Next CloneSet | Back to Main Report |
Clone Mass | Clones in CloneSet | Parameter Count | Clone Similarity | Syntax Category [Sequence Length] |
---|---|---|---|---|
13 | 2 | 0 | 1.000 | class_body_declarations[2] |
Clone Abstraction | Parameter Bindings |
Clone Instance (Click to see clone) | Line Count | Source Line | Source File |
---|---|---|---|
1 | 13 | 214 | plugins/org.eclipse.jdt.ui/core refactoring/org/eclipse/jdt/internal/corext/refactoring/nls/NLSSourceModifier.java |
2 | 13 | 153 | plugins/org.eclipse.jdt.ui/core refactoring/org/eclipse/jdt/internal/corext/refactoring/nls/NLSUtil.java |
| ||||
private static boolean isPositionInElement(NLSElement element, int position) { Region elementPosition = element.getPosition(); return (elementPosition.getOffset() <= position && position <= elementPosition.getOffset() + elementPosition.getLength()); } private static NLSElement findElement(NLSLine line, int position) { NLSElement[] elements = line.getElements(); for (int i = 0; i < elements.length; i++) { NLSElement element = elements[i]; if (isPositionInElement(element, position)) return element; } return null; } |
| ||||
private static boolean isPositionInElement(NLSElement element, int position) { Region elementPosition = element.getPosition(); return (elementPosition.getOffset() <= position && position <= elementPosition.getOffset() + elementPosition.getLength()); } private static NLSElement findElement(NLSLine line, int position) { NLSElement[] elements = line.getElements(); for (int i = 0; i < elements.length; i++) { NLSElement element = elements[i]; if (isPositionInElement(element, position)) return element; } return null; } |
| |||
private static boolean isPositionInElement(NLSElement element, int position) { Region elementPosition = element.getPosition(); return (elementPosition.getOffset() <= position && position <= elementPosition.getOffset() + elementPosition.getLength()); } private static NLSElement findElement(NLSLine line, int position) { NLSElement[] elements = line.getElements(); for (int i = 0; i < elements.length; i++) { NLSElement element = elements[i]; if (isPositionInElement(element, position)) return element; } return null; } |
CloneAbstraction |
Parameter Index | Clone Instance | Parameter Name | Value |
---|---|---|---|
None |