comparison src/luan/LuanCloner.java @ 784:6a7c6879158d

revert shallowClone()
author Franklin Schmidt <fschmidt@gmail.com>
date Tue, 30 Aug 2016 12:08:49 -0600
parents 655280eab1e2
children d69d3c51c44e
comparison
equal deleted inserted replaced
783:4083f5a67c63 784:6a7c6879158d
16 public LuanCloneable clone(LuanCloneable obj) { 16 public LuanCloneable clone(LuanCloneable obj) {
17 if( obj==null ) 17 if( obj==null )
18 return null; 18 return null;
19 LuanCloneable rtn = (LuanCloneable)cloned.get(obj); 19 LuanCloneable rtn = (LuanCloneable)cloned.get(obj);
20 if( rtn == null ) { 20 if( rtn == null ) {
21 rtn = obj.shallowClone(this); 21 rtn = obj.shallowClone();
22 cloned.put(obj,rtn); 22 cloned.put(obj,rtn);
23 obj.deepenClone(rtn,this); 23 obj.deepenClone(rtn,this);
24 } 24 }
25 return rtn; 25 return rtn;
26 } 26 }