Mercurial Hosting > luan
view core/src/luan/impl/Pointer.java @ 681:f1c935be546d
improve stack trace
author | Franklin Schmidt <fschmidt@gmail.com> |
---|---|
date | Thu, 14 Apr 2016 20:10:38 -0600 |
parents | 82f130eba7b0 |
children |
line wrap: on
line source
package luan.impl; import luan.DeepCloneable; import luan.DeepCloner; public final class Pointer implements DeepCloneable { public Object o; public Pointer() {} public Pointer(Object o) { this.o = o; } @Override public Pointer shallowClone() { return new Pointer(); } @Override public void deepenClone(DeepCloneable clone,DeepCloner cloner) { ((Pointer)clone).o = cloner.get(o); } }