The following document contains the results of PMD's CPD 4.3.
File | Line |
---|---|
goldengate\common\digest\FilesystemBasedDigest.java | 609 |
goldengate\common\digest\MD5.java | 691 |
byte from[] = hex.getBytes(); byte hash[] = new byte[from.length / 2]; for (int i = 0, x = 0; i < hash.length; i ++) { byte code1 = from[x ++]; byte code2 = from[x ++]; if (code1 >= HEX_CHARS[10]) { code1 -= HEX_CHARS[10] - 10; } else { code1 -= HEX_CHARS[0]; } if (code2 >= HEX_CHARS[10]) { code2 -= HEX_CHARS[10] - 10; } else { code2 -= HEX_CHARS[0]; } hash[i] = (byte) ((code1 << 4) + code2); } return hash; } |