[#5481] ResultImpl#intoMap produces an incorrect error message on duplicate key

This commit is contained in:
lukaseder 2016-08-05 15:21:28 +02:00
parent 5b87623936
commit 4b71f10b33

View File

@ -1313,7 +1313,7 @@ final class ResultImpl<R extends Record> implements Result<R>, AttachableInterna
for (R record : this)
if (map.put((K) record.get(kIndex), (V) record.get(vIndex)) != null)
throw new InvalidResultException("Key " + kIndex + " is not unique in Result for " + this);
throw new InvalidResultException("Key " + record.get(kIndex) + " is not unique in Result for " + this);
return map;
}