src/share/classes/com/sun/tools/javac/comp/Env.java

changeset 1409
33abf479f202
parent 1127
ca49d50318dc
child 1917
2fbe77c38802
equal deleted inserted replaced
1408:b486794d160d 1409:33abf479f202
1 /* 1 /*
2 * Copyright (c) 1999, 2011, Oracle and/or its affiliates. All rights reserved. 2 * Copyright (c) 1999, 2012, Oracle and/or its affiliates. All rights reserved.
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4 * 4 *
5 * This code is free software; you can redistribute it and/or modify it 5 * This code is free software; you can redistribute it and/or modify it
6 * under the terms of the GNU General Public License version 2 only, as 6 * under the terms of the GNU General Public License version 2 only, as
7 * published by the Free Software Foundation. Oracle designates this 7 * published by the Free Software Foundation. Oracle designates this
120 Env<A> env1 = this; 120 Env<A> env1 = this;
121 while (env1 != null && !env1.tree.hasTag(tag)) env1 = env1.next; 121 while (env1 != null && !env1.tree.hasTag(tag)) env1 = env1.next;
122 return env1; 122 return env1;
123 } 123 }
124 124
125 @Override
125 public String toString() { 126 public String toString() {
126 return "Env[" + info + (outer == null ? "" : ",outer=" + outer) + "]"; 127 return "Env[" + info + (outer == null ? "" : ",outer=" + outer) + "]";
127 } 128 }
128 129
129 public Iterator<Env<A>> iterator() { 130 public Iterator<Env<A>> iterator() {

mercurial