diff options
| author | Matt Rendina <mrendina@stsci.edu> | 2017-11-30 10:48:02 -0500 |
|---|---|---|
| committer | Matt Rendina <mrendina@stsci.edu> | 2017-11-30 10:48:02 -0500 |
| commit | eaf163f77eecce3a68da9d14f7b5044ace21781e (patch) | |
| tree | ba23d3eaa9398cdd922421eb382ea40719ce283d /vars/utils.groovy | |
| parent | 59c8efa7ea37643b4630f341644d7dacfddd9bd0 (diff) | |
| download | jscu_refactor-eaf163f77eecce3a68da9d14f7b5044ace21781e.tar.gz | |
Trim down
Diffstat (limited to 'vars/utils.groovy')
| -rw-r--r-- | vars/utils.groovy | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/vars/utils.groovy b/vars/utils.groovy index c2f0b47..1def2c6 100644 --- a/vars/utils.groovy +++ b/vars/utils.groovy @@ -105,16 +105,16 @@ def concurrent(configs) { * This method makes a "deep clone" of any object it is given. */ def deepClone(object) { - try { + //try { ByteArrayOutputStream baos = new ByteArrayOutputStream() ObjectOutputStream oos = new ObjectOutputStream(baos) oos.writeObject(object) ByteArrayInputStream bais = new ByteArrayInputStream(baos.toByteArray()) ObjectInputStream ois = new ObjectInputStream(bais) return ois.readObject() - } - catch (Exception e) { - e.printStackTrace() - return null - } + //} + //catch (Exception e) { + // e.printStackTrace() + // return null + //} } |
