Closed GoogleCodeExporter closed 9 years ago
Can you please provide an example? I tried but this works ok:
HashMap<String, byte[]> m = new HashMap<String, byte[]>();
m.put("test", new byte[] { 1, 2, 3 });
HashMap<String, byte[]> clone = cloner.deepClone(m);
byte[] a = clone.get("test");
assertEquals(1, a[0]);
assertEquals(2, a[1]);
assertEquals(3, a[2]);
Original comment by kostas.k...@googlemail.com
on 8 May 2012 at 10:20
HashMap<Object, Object> source = new HashMap<Object, Object>();
source.put("string", new String("string"));
source.put("array", new Integer[]{1,2,3});
HashMap<Object, Object> dest = cloner.shallowClone(source);
Original comment by om.regis...@gmail.com
on 8 May 2012 at 10:39
fixed in 1.8.1
Original comment by kostas.k...@googlemail.com
on 9 May 2012 at 10:28
Thanks.
Original comment by om.regis...@gmail.com
on 10 May 2012 at 8:00
Original issue reported on code.google.com by
om.regis...@gmail.com
on 8 May 2012 at 7:58