From b64f685febe056c5d90c6bb1589edf0a7f09254a Mon Sep 17 00:00:00 2001 From: paltherr Date: Thu, 17 Jun 2004 09:11:09 +0000 Subject: - Adapted to new class scala.tools.util.debug.D... - Adapted to new class scala.tools.util.debug.Debug --- sources/scalac/ast/Tree.java.tmpl | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'sources/scalac/ast') diff --git a/sources/scalac/ast/Tree.java.tmpl b/sources/scalac/ast/Tree.java.tmpl index e7e23e54a5..0b130451fe 100644 --- a/sources/scalac/ast/Tree.java.tmpl +++ b/sources/scalac/ast/Tree.java.tmpl @@ -119,10 +119,7 @@ public class Tree { //######################################################################## // Public Methods - duplication - public static Transformer duplicator = - new Transformer( - Global.instance, Global.instance.make, - new StrictTreeCopier(Global.instance.make)); + public static Transformer duplicator; /** Returns a shallow copy of the given array. */ public static Tree[] cloneArray(Tree[] array) { @@ -168,6 +165,9 @@ public class Tree { } public Tree duplicate() { + if (duplicator == null) duplicator =new Transformer( + Global.instance, Global.instance.make, + new StrictTreeCopier(Global.instance.make)); return duplicator.transform(this); } -- cgit v1.2.3