CloneSet1118


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
17210.965statement_sequence[3]
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
117154
plugins/org.eclipse.jdt.apt.core/src/org/eclipse/jdt/apt/core/internal/env/EnvUtil.java
217366
plugins/org.eclipse.jdt.apt.core/src/org/eclipse/jdt/apt/core/internal/util/Visitors.java
Clone Instance
1
Line Count
17
Source Line
154
Source File
plugins/org.eclipse.jdt.apt.core/src/org/eclipse/jdt/apt/core/internal/env/EnvUtil.java

                if (count != offsets.length) {
                        _sortedStartingOffset = new int[count];

                        int index = 0;
                        for (int i = 0,len = offsets.length; i < len; i++) {
                                if (i > 0 && offsets[i - 1] == offsets[i])
                                        continue ;
                                _sortedStartingOffset[index++ ] = offsets[i];
                        }
                }
                else {
                        _sortedStartingOffset = offsets;
                }

                _endingOffsets = new int[count];
                for (int i = 0; i < count; i++)
                        _endingOffsets[i] = 0;


Clone Instance
2
Line Count
17
Source Line
366
Source File
plugins/org.eclipse.jdt.apt.core/src/org/eclipse/jdt/apt/core/internal/util/Visitors.java

                if (count != offsets.length) {
                        _sortedStartingOffset = new int[count];

                        int index = 0;
                        for (int i = 0,len = offsets.length; i < len; i++) {
                                if (i != 0 && offsets[i - 1] == offsets[i])
                                        continue ;
                                _sortedStartingOffset[index++ ] = offsets[i];
                        }
                }
                else {
                        _sortedStartingOffset = offsets;
                }

                _endingOffsets = new int[count];
                for (int i = 0; i < count; i++)
                        _endingOffsets[i] = 0;


Clone AbstractionParameter Count: 1Parameter Bindings

if (count != offsets.length) {
  _sortedStartingOffset = new int[count];
  int index = 0;
  for (int i = 0, len = offsets.length; i < len; i++) {
    if ( [[#variable945577e0]]&& offsets[i - 1] == offsets[i])
      continue ;
    _sortedStartingOffset[index++ ] = offsets[i];
  }
}
else {
  _sortedStartingOffset = offsets;
}
_endingOffsets = new int[count];
for (int i = 0; i < count; i++)
  _endingOffsets[i] = 0;
 

CloneAbstraction
Parameter Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
11[[#945577e0]]
i > 0 
12[[#945577e0]]
i != 0