Project

General

Profile

« Previous | Next » 

Revision 58047

avoid repeated colons in the dedup id creation

View differences:

modules/dnet-mapreduce-jobs/trunk/src/main/java/eu/dnetlib/data/mapreduce/util/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