CPD Results
The following document contains the results of PMD's CPD 7.7.0.
Duplications
File | Line |
---|---|
org/djutils/decoderdumper/CharDecoder.java | 33 |
org/djutils/decoderdumper/HexDecoder.java | 36 |
String format = String.format("%%%ds", fieldsPerLine + (fieldsPerLine - 1) / this.extraSpaceAfterEvery); this.prototypeLine = String.format(format, ""); } /** String builder for current output line. */ private StringBuilder buffer = new StringBuilder(); @Override public String getResult() { String result = this.buffer.toString(); this.buffer.setLength(0); return result; } @Override public int getMaximumWidth() { return this.prototypeLine.length(); } @Override public boolean append(final int address, final byte theByte) throws IOException { if (this.buffer.length() == 0) { this.buffer.append(this.prototypeLine); } int lineByte = address % this.fieldsPerLine; int index = lineByte + lineByte / this.extraSpaceAfterEvery; |