if (size > 0) {
result = HashUtilities.hashCode(result, list.getBoolean(0));
if (size > 1) {
result = HashUtilities.hashCode(result,
list.getBoolean(size - 1));
if (size > 2) {
result = HashUtilities.hashCode(result,
list.getBoolean(size / 2));
if (size > 0) {
result = HashUtilities.hashCode(result, list.getStroke(0));
if (size > 1) {
result = HashUtilities.hashCode(result,
list.getStroke(size - 1));
if (size > 2) {
result = HashUtilities.hashCode(result,
list.getStroke(size / 2));
Clone fragments detected by clone detection tool
File path: /jfreechart-1.0.10/src/org/jfree/chart/HashUtilities.java
|
|
File path: /jfreechart-1.0.10/src/org/jfree/chart/HashUtilities.java
|
Method name:
|
|
Method name:
|
Number of AST nodes: 0
|
|
Number of AST nodes: 0
|
|
1 | if (size > 0) {↵ | | 1 | if (size > 0) {↵
|
2 | result = HashUtilities.hashCode(result, list.getBoolean(0));↵ | | 2 | result = HashUtilities.hashCode(result, list.getStroke(0));↵
|
3 | if (size > 1) {↵ | | 3 | if (size > 1) {↵
|
4 | result = HashUtilities.hashCode(result, ↵ | | 4 | result = HashUtilities.hashCode(result, ↵
|
5 | list.getBoolean(size - 1));↵ | | 5 | list.getStroke(size - 1));↵
|
6 | if (size > 2) {↵ | | 6 | if (size > 2) {↵
|
7 | result = HashUtilities.hashCode(result, ↵ | | 7 | result = HashUtilities.hashCode(result, ↵
|
8 | list.getBoolean(size / 2));↵ | | 8 | list.getStroke(size / 2));↵
|
9 | | | 9 |
|
See real code fragment |
|
See real code fragment |
Summary
Number of common nesting structure subtrees | 0 |
Number of refactorable cases | 0 |
Number of non-refactorable cases | 0 |
Time elapsed for finding largest common nesting structure subtrees (ms) | 0.0 |
Clones location | |
Number of node comparisons | 0 |