CPD Results
The following document contains the results of PMD's CPD 6.55.0.
Duplications
File | Project | Line |
---|---|---|
org/freedesktop/dbus/test/helper/P2pTestServer.java | dbus-java-tests | 26 |
org/freedesktop/dbus/test/helper/SampleClass.java | dbus-java-tests | 44 |
@Override public int[][] teststructstruct(SampleStruct3 _in) { List<List<Integer>> lli = _in.getInnerListOfLists(); int[][] out = new int[lli.size()][]; for (int j = 0; j < out.length; j++) { out[j] = new int[lli.get(j).size()]; for (int k = 0; k < out[j].length; k++) { out[j][k] = lli.get(j).get(k); } } return out; } @Override public int[][] testListstruct(SampleStruct4 _in) { List<IntStruct> list = _in.getInnerListOfLists(); int size = list.size(); int[][] retVal = new int[size][]; for (int i = 0; i < size; i++) { IntStruct elem = list.get(i); retVal[i] = new int[] {elem.getValue1(), elem.getValue2()}; } return retVal; } @Override public String getNameAndThrow() { |