Revision 58047
Added by Claudio Atzori over 4 years ago
DedupUtils.java | ||
---|---|---|
40 | 40 |
public static String newId(final String id, final String dedupRun) { |
41 | 41 |
if ((dedupRun == null) || (dedupRun.length() != 3)) throw new IllegalArgumentException("wrong dedupRun param"); |
42 | 42 |
|
43 |
return StringUtils.substringBefore(id,"|") + dedupPrefix(dedupRun) + "::" + AbstractDNetXsltFunctions.md5(id);
|
|
43 |
return StringUtils.substringBefore(id,"|") + dedupPrefix(dedupRun) + AbstractDNetXsltFunctions.md5(id); |
|
44 | 44 |
} |
45 | 45 |
|
46 | 46 |
public static byte[] newIdBytes(final String s, final String dedupRun) { |
Also available in: Unified diff
avoid repeated colons in the dedup id creation