author | darcy |
Wed, 23 Oct 2019 13:01:40 -0700 | |
changeset 58766 | 54ffb15c4839 |
parent 47216 | 71c04702a3d5 |
permissions | -rw-r--r-- |
2 | 1 |
/* |
23010
6dadb192ad81
8029235: Update copyright year to match last edit in jdk8 jdk repository for 2013
lana
parents:
21656
diff
changeset
|
2 |
* Copyright (c) 1999, 2013, Oracle and/or its affiliates. All rights reserved. |
2 | 3 |
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. |
4 |
* |
|
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 |
|
5506 | 7 |
* published by the Free Software Foundation. Oracle designates this |
2 | 8 |
* particular file as subject to the "Classpath" exception as provided |
5506 | 9 |
* by Oracle in the LICENSE file that accompanied this code. |
2 | 10 |
* |
11 |
* This code is distributed in the hope that it will be useful, but WITHOUT |
|
12 |
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or |
|
13 |
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License |
|
14 |
* version 2 for more details (a copy is included in the LICENSE file that |
|
15 |
* accompanied this code). |
|
16 |
* |
|
17 |
* You should have received a copy of the GNU General Public License version |
|
18 |
* 2 along with this work; if not, write to the Free Software Foundation, |
|
19 |
* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. |
|
20 |
* |
|
5506 | 21 |
* Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA |
22 |
* or visit www.oracle.com if you need additional information or have any |
|
23 |
* questions. |
|
2 | 24 |
*/ |
25 |
||
26 |
package javax.management; |
|
27 |
||
28 |
import java.util.ArrayList; |
|
29 |
import java.util.Collection; |
|
1571
421ef5172dd3
6336968: Methods to convert AttributeList to/from Map
emcmanus
parents:
1510
diff
changeset
|
30 |
import java.util.LinkedHashMap; |
2 | 31 |
import java.util.List; |
1571
421ef5172dd3
6336968: Methods to convert AttributeList to/from Map
emcmanus
parents:
1510
diff
changeset
|
32 |
import java.util.Map; |
2 | 33 |
|
34 |
/** |
|
1571
421ef5172dd3
6336968: Methods to convert AttributeList to/from Map
emcmanus
parents:
1510
diff
changeset
|
35 |
* <p>Represents a list of values for attributes of an MBean. See the |
421ef5172dd3
6336968: Methods to convert AttributeList to/from Map
emcmanus
parents:
1510
diff
changeset
|
36 |
* {@link MBeanServerConnection#getAttributes getAttributes} and |
421ef5172dd3
6336968: Methods to convert AttributeList to/from Map
emcmanus
parents:
1510
diff
changeset
|
37 |
* {@link MBeanServerConnection#setAttributes setAttributes} methods of |
421ef5172dd3
6336968: Methods to convert AttributeList to/from Map
emcmanus
parents:
1510
diff
changeset
|
38 |
* {@link MBeanServer} and {@link MBeanServerConnection}.</p> |
421ef5172dd3
6336968: Methods to convert AttributeList to/from Map
emcmanus
parents:
1510
diff
changeset
|
39 |
* |
421ef5172dd3
6336968: Methods to convert AttributeList to/from Map
emcmanus
parents:
1510
diff
changeset
|
40 |
* <p id="type-safe">For compatibility reasons, it is possible, though |
421ef5172dd3
6336968: Methods to convert AttributeList to/from Map
emcmanus
parents:
1510
diff
changeset
|
41 |
* highly discouraged, to add objects to an {@code AttributeList} that are |
421ef5172dd3
6336968: Methods to convert AttributeList to/from Map
emcmanus
parents:
1510
diff
changeset
|
42 |
* not instances of {@code Attribute}. However, an {@code AttributeList} |
421ef5172dd3
6336968: Methods to convert AttributeList to/from Map
emcmanus
parents:
1510
diff
changeset
|
43 |
* can be made <em>type-safe</em>, which means that an attempt to add |
421ef5172dd3
6336968: Methods to convert AttributeList to/from Map
emcmanus
parents:
1510
diff
changeset
|
44 |
* an object that is not an {@code Attribute} will produce an {@code |
421ef5172dd3
6336968: Methods to convert AttributeList to/from Map
emcmanus
parents:
1510
diff
changeset
|
45 |
* IllegalArgumentException}. An {@code AttributeList} becomes type-safe |
421ef5172dd3
6336968: Methods to convert AttributeList to/from Map
emcmanus
parents:
1510
diff
changeset
|
46 |
* when the method {@link #asList()} is called on it.</p> |
2 | 47 |
* |
48 |
* @since 1.5 |
|
49 |
*/ |
|
50 |
/* We cannot extend ArrayList<Attribute> because our legacy |
|
51 |
add(Attribute) method would then override add(E) in ArrayList<E>, |
|
52 |
and our return value is void whereas ArrayList.add(E)'s is boolean. |
|
53 |
Likewise for set(int,Attribute). Grrr. We cannot use covariance |
|
54 |
to override the most important methods and have them return |
|
55 |
Attribute, either, because that would break subclasses that |
|
56 |
override those methods in turn (using the original return type |
|
57 |
of Object). Finally, we cannot implement Iterable<Attribute> |
|
58 |
so you could write |
|
59 |
for (Attribute a : attributeList) |
|
60 |
because ArrayList<> implements Iterable<> and the same class cannot |
|
61 |
implement two versions of a generic interface. Instead we provide |
|
62 |
the asList() method so you can write |
|
63 |
for (Attribute a : attributeList.asList()) |
|
64 |
*/ |
|
65 |
public class AttributeList extends ArrayList<Object> { |
|
66 |
||
1571
421ef5172dd3
6336968: Methods to convert AttributeList to/from Map
emcmanus
parents:
1510
diff
changeset
|
67 |
private transient volatile boolean typeSafe; |
421ef5172dd3
6336968: Methods to convert AttributeList to/from Map
emcmanus
parents:
1510
diff
changeset
|
68 |
private transient volatile boolean tainted; |
2 | 69 |
|
70 |
/* Serial version */ |
|
71 |
private static final long serialVersionUID = -4077085769279709076L; |
|
72 |
||
73 |
/** |
|
74 |
* Constructs an empty <CODE>AttributeList</CODE>. |
|
75 |
*/ |
|
76 |
public AttributeList() { |
|
77 |
super(); |
|
78 |
} |
|
79 |
||
80 |
/** |
|
81 |
* Constructs an empty <CODE>AttributeList</CODE> with |
|
82 |
* the initial capacity specified. |
|
83 |
* |
|
84 |
* @param initialCapacity the initial capacity of the |
|
85 |
* <code>AttributeList</code>, as specified by {@link |
|
86 |
* ArrayList#ArrayList(int)}. |
|
87 |
*/ |
|
88 |
public AttributeList(int initialCapacity) { |
|
89 |
super(initialCapacity); |
|
90 |
} |
|
91 |
||
92 |
/** |
|
93 |
* Constructs an <CODE>AttributeList</CODE> containing the |
|
94 |
* elements of the <CODE>AttributeList</CODE> specified, in the |
|
95 |
* order in which they are returned by the |
|
96 |
* <CODE>AttributeList</CODE>'s iterator. The |
|
97 |
* <CODE>AttributeList</CODE> instance has an initial capacity of |
|
98 |
* 110% of the size of the <CODE>AttributeList</CODE> specified. |
|
99 |
* |
|
100 |
* @param list the <code>AttributeList</code> that defines the initial |
|
101 |
* contents of the new <code>AttributeList</code>. |
|
102 |
* |
|
103 |
* @see ArrayList#ArrayList(java.util.Collection) |
|
104 |
*/ |
|
105 |
public AttributeList(AttributeList list) { |
|
106 |
super(list); |
|
107 |
} |
|
108 |
||
109 |
/** |
|
110 |
* Constructs an {@code AttributeList} containing the elements of the |
|
111 |
* {@code List} specified, in the order in which they are returned by |
|
112 |
* the {@code List}'s iterator. |
|
113 |
* |
|
114 |
* @param list the {@code List} that defines the initial contents of |
|
115 |
* the new {@code AttributeList}. |
|
116 |
* |
|
117 |
* @exception IllegalArgumentException if the {@code list} parameter |
|
118 |
* is {@code null} or if the {@code list} parameter contains any |
|
119 |
* non-Attribute objects. |
|
120 |
* |
|
121 |
* @see ArrayList#ArrayList(java.util.Collection) |
|
122 |
* |
|
123 |
* @since 1.6 |
|
124 |
*/ |
|
125 |
public AttributeList(List<Attribute> list) { |
|
126 |
// Check for null parameter |
|
127 |
// |
|
128 |
if (list == null) |
|
129 |
throw new IllegalArgumentException("Null parameter"); |
|
130 |
||
131 |
// Check for non-Attribute objects |
|
132 |
// |
|
1571
421ef5172dd3
6336968: Methods to convert AttributeList to/from Map
emcmanus
parents:
1510
diff
changeset
|
133 |
adding(list); |
2 | 134 |
|
135 |
// Build the List<Attribute> |
|
136 |
// |
|
137 |
super.addAll(list); |
|
138 |
} |
|
139 |
||
140 |
/** |
|
141 |
* Return a view of this list as a {@code List<Attribute>}. |
|
142 |
* Changes to the returned value are reflected by changes |
|
143 |
* to the original {@code AttributeList} and vice versa. |
|
144 |
* |
|
145 |
* @return a {@code List<Attribute>} whose contents |
|
146 |
* reflect the contents of this {@code AttributeList}. |
|
147 |
* |
|
148 |
* <p>If this method has ever been called on a given |
|
149 |
* {@code AttributeList} instance, a subsequent attempt to add |
|
150 |
* an object to that instance which is not an {@code Attribute} |
|
37880 | 151 |
* will fail with an {@code IllegalArgumentException}. For compatibility |
2 | 152 |
* reasons, an {@code AttributeList} on which this method has never |
153 |
* been called does allow objects other than {@code Attribute}s to |
|
154 |
* be added.</p> |
|
155 |
* |
|
156 |
* @throws IllegalArgumentException if this {@code AttributeList} contains |
|
157 |
* an element that is not an {@code Attribute}. |
|
158 |
* |
|
159 |
* @since 1.6 |
|
160 |
*/ |
|
161 |
@SuppressWarnings("unchecked") |
|
162 |
public List<Attribute> asList() { |
|
1571
421ef5172dd3
6336968: Methods to convert AttributeList to/from Map
emcmanus
parents:
1510
diff
changeset
|
163 |
typeSafe = true; |
421ef5172dd3
6336968: Methods to convert AttributeList to/from Map
emcmanus
parents:
1510
diff
changeset
|
164 |
if (tainted) |
421ef5172dd3
6336968: Methods to convert AttributeList to/from Map
emcmanus
parents:
1510
diff
changeset
|
165 |
adding((Collection<?>) this); // will throw IllegalArgumentException |
1510 | 166 |
return (List<Attribute>) (List<?>) this; |
2 | 167 |
} |
168 |
||
169 |
/** |
|
170 |
* Adds the {@code Attribute} specified as the last element of the list. |
|
171 |
* |
|
172 |
* @param object The attribute to be added. |
|
173 |
*/ |
|
174 |
public void add(Attribute object) { |
|
175 |
super.add(object); |
|
176 |
} |
|
177 |
||
178 |
/** |
|
179 |
* Inserts the attribute specified as an element at the position specified. |
|
180 |
* Elements with an index greater than or equal to the current position are |
|
21656
d4c777ccb1db
8028014: Doclint warning/error cleanup in javax.management
rriggs
parents:
5506
diff
changeset
|
181 |
* shifted up. If the index is out of range {@literal (index < 0 || index > |
d4c777ccb1db
8028014: Doclint warning/error cleanup in javax.management
rriggs
parents:
5506
diff
changeset
|
182 |
* size())} a RuntimeOperationsException should be raised, wrapping the |
2 | 183 |
* java.lang.IndexOutOfBoundsException thrown. |
184 |
* |
|
185 |
* @param object The <CODE>Attribute</CODE> object to be inserted. |
|
186 |
* @param index The position in the list where the new {@code Attribute} |
|
187 |
* object is to be inserted. |
|
188 |
*/ |
|
189 |
public void add(int index, Attribute object) { |
|
190 |
try { |
|
191 |
super.add(index, object); |
|
192 |
} |
|
193 |
catch (IndexOutOfBoundsException e) { |
|
194 |
throw new RuntimeOperationsException(e, |
|
195 |
"The specified index is out of range"); |
|
196 |
} |
|
197 |
} |
|
198 |
||
199 |
/** |
|
200 |
* Sets the element at the position specified to be the attribute specified. |
|
201 |
* The previous element at that position is discarded. If the index is |
|
21656
d4c777ccb1db
8028014: Doclint warning/error cleanup in javax.management
rriggs
parents:
5506
diff
changeset
|
202 |
* out of range {@literal (index < 0 || index > size())} a RuntimeOperationsException |
2 | 203 |
* should be raised, wrapping the java.lang.IndexOutOfBoundsException thrown. |
204 |
* |
|
205 |
* @param object The value to which the attribute element should be set. |
|
206 |
* @param index The position specified. |
|
207 |
*/ |
|
208 |
public void set(int index, Attribute object) { |
|
209 |
try { |
|
210 |
super.set(index, object); |
|
211 |
} |
|
212 |
catch (IndexOutOfBoundsException e) { |
|
213 |
throw new RuntimeOperationsException(e, |
|
214 |
"The specified index is out of range"); |
|
215 |
} |
|
216 |
} |
|
217 |
||
218 |
/** |
|
219 |
* Appends all the elements in the <CODE>AttributeList</CODE> specified to |
|
220 |
* the end of the list, in the order in which they are returned by the |
|
221 |
* Iterator of the <CODE>AttributeList</CODE> specified. |
|
222 |
* |
|
223 |
* @param list Elements to be inserted into the list. |
|
224 |
* |
|
225 |
* @return true if this list changed as a result of the call. |
|
226 |
* |
|
227 |
* @see ArrayList#addAll(java.util.Collection) |
|
228 |
*/ |
|
229 |
public boolean addAll(AttributeList list) { |
|
230 |
return (super.addAll(list)); |
|
231 |
} |
|
232 |
||
233 |
/** |
|
234 |
* Inserts all of the elements in the <CODE>AttributeList</CODE> specified |
|
235 |
* into this list, starting at the specified position, in the order in which |
|
236 |
* they are returned by the Iterator of the {@code AttributeList} specified. |
|
21656
d4c777ccb1db
8028014: Doclint warning/error cleanup in javax.management
rriggs
parents:
5506
diff
changeset
|
237 |
* If the index is out of range {@literal (index < 0 || index > size())} a |
2 | 238 |
* RuntimeOperationsException should be raised, wrapping the |
239 |
* java.lang.IndexOutOfBoundsException thrown. |
|
240 |
* |
|
241 |
* @param list Elements to be inserted into the list. |
|
242 |
* @param index Position at which to insert the first element from the |
|
243 |
* <CODE>AttributeList</CODE> specified. |
|
244 |
* |
|
245 |
* @return true if this list changed as a result of the call. |
|
246 |
* |
|
247 |
* @see ArrayList#addAll(int, java.util.Collection) |
|
248 |
*/ |
|
249 |
public boolean addAll(int index, AttributeList list) { |
|
250 |
try { |
|
251 |
return super.addAll(index, list); |
|
1571
421ef5172dd3
6336968: Methods to convert AttributeList to/from Map
emcmanus
parents:
1510
diff
changeset
|
252 |
} catch (IndexOutOfBoundsException e) { |
2 | 253 |
throw new RuntimeOperationsException(e, |
254 |
"The specified index is out of range"); |
|
255 |
} |
|
256 |
} |
|
257 |
||
258 |
/* |
|
259 |
* Override all of the methods from ArrayList<Object> that might add |
|
260 |
* a non-Attribute to the List, and disallow that if asList has ever |
|
261 |
* been called on this instance. |
|
262 |
*/ |
|
263 |
||
1571
421ef5172dd3
6336968: Methods to convert AttributeList to/from Map
emcmanus
parents:
1510
diff
changeset
|
264 |
/** |
421ef5172dd3
6336968: Methods to convert AttributeList to/from Map
emcmanus
parents:
1510
diff
changeset
|
265 |
* {@inheritDoc} |
421ef5172dd3
6336968: Methods to convert AttributeList to/from Map
emcmanus
parents:
1510
diff
changeset
|
266 |
* @throws IllegalArgumentException if this {@code AttributeList} is |
421ef5172dd3
6336968: Methods to convert AttributeList to/from Map
emcmanus
parents:
1510
diff
changeset
|
267 |
* <a href="#type-safe">type-safe</a> and {@code element} is not an |
421ef5172dd3
6336968: Methods to convert AttributeList to/from Map
emcmanus
parents:
1510
diff
changeset
|
268 |
* {@code Attribute}. |
421ef5172dd3
6336968: Methods to convert AttributeList to/from Map
emcmanus
parents:
1510
diff
changeset
|
269 |
*/ |
2 | 270 |
@Override |
1571
421ef5172dd3
6336968: Methods to convert AttributeList to/from Map
emcmanus
parents:
1510
diff
changeset
|
271 |
public boolean add(Object element) { |
421ef5172dd3
6336968: Methods to convert AttributeList to/from Map
emcmanus
parents:
1510
diff
changeset
|
272 |
adding(element); |
421ef5172dd3
6336968: Methods to convert AttributeList to/from Map
emcmanus
parents:
1510
diff
changeset
|
273 |
return super.add(element); |
2 | 274 |
} |
275 |
||
1571
421ef5172dd3
6336968: Methods to convert AttributeList to/from Map
emcmanus
parents:
1510
diff
changeset
|
276 |
/** |
421ef5172dd3
6336968: Methods to convert AttributeList to/from Map
emcmanus
parents:
1510
diff
changeset
|
277 |
* {@inheritDoc} |
421ef5172dd3
6336968: Methods to convert AttributeList to/from Map
emcmanus
parents:
1510
diff
changeset
|
278 |
* @throws IllegalArgumentException if this {@code AttributeList} is |
421ef5172dd3
6336968: Methods to convert AttributeList to/from Map
emcmanus
parents:
1510
diff
changeset
|
279 |
* <a href="#type-safe">type-safe</a> and {@code element} is not an |
421ef5172dd3
6336968: Methods to convert AttributeList to/from Map
emcmanus
parents:
1510
diff
changeset
|
280 |
* {@code Attribute}. |
421ef5172dd3
6336968: Methods to convert AttributeList to/from Map
emcmanus
parents:
1510
diff
changeset
|
281 |
*/ |
2 | 282 |
@Override |
283 |
public void add(int index, Object element) { |
|
1571
421ef5172dd3
6336968: Methods to convert AttributeList to/from Map
emcmanus
parents:
1510
diff
changeset
|
284 |
adding(element); |
2 | 285 |
super.add(index, element); |
286 |
} |
|
287 |
||
1571
421ef5172dd3
6336968: Methods to convert AttributeList to/from Map
emcmanus
parents:
1510
diff
changeset
|
288 |
/** |
421ef5172dd3
6336968: Methods to convert AttributeList to/from Map
emcmanus
parents:
1510
diff
changeset
|
289 |
* {@inheritDoc} |
421ef5172dd3
6336968: Methods to convert AttributeList to/from Map
emcmanus
parents:
1510
diff
changeset
|
290 |
* @throws IllegalArgumentException if this {@code AttributeList} is |
421ef5172dd3
6336968: Methods to convert AttributeList to/from Map
emcmanus
parents:
1510
diff
changeset
|
291 |
* <a href="#type-safe">type-safe</a> and {@code c} contains an |
421ef5172dd3
6336968: Methods to convert AttributeList to/from Map
emcmanus
parents:
1510
diff
changeset
|
292 |
* element that is not an {@code Attribute}. |
421ef5172dd3
6336968: Methods to convert AttributeList to/from Map
emcmanus
parents:
1510
diff
changeset
|
293 |
*/ |
2 | 294 |
@Override |
295 |
public boolean addAll(Collection<?> c) { |
|
1571
421ef5172dd3
6336968: Methods to convert AttributeList to/from Map
emcmanus
parents:
1510
diff
changeset
|
296 |
adding(c); |
2 | 297 |
return super.addAll(c); |
298 |
} |
|
299 |
||
300 |
/** |
|
1571
421ef5172dd3
6336968: Methods to convert AttributeList to/from Map
emcmanus
parents:
1510
diff
changeset
|
301 |
* {@inheritDoc} |
421ef5172dd3
6336968: Methods to convert AttributeList to/from Map
emcmanus
parents:
1510
diff
changeset
|
302 |
* @throws IllegalArgumentException if this {@code AttributeList} is |
421ef5172dd3
6336968: Methods to convert AttributeList to/from Map
emcmanus
parents:
1510
diff
changeset
|
303 |
* <a href="#type-safe">type-safe</a> and {@code c} contains an |
421ef5172dd3
6336968: Methods to convert AttributeList to/from Map
emcmanus
parents:
1510
diff
changeset
|
304 |
* element that is not an {@code Attribute}. |
2 | 305 |
*/ |
1571
421ef5172dd3
6336968: Methods to convert AttributeList to/from Map
emcmanus
parents:
1510
diff
changeset
|
306 |
@Override |
421ef5172dd3
6336968: Methods to convert AttributeList to/from Map
emcmanus
parents:
1510
diff
changeset
|
307 |
public boolean addAll(int index, Collection<?> c) { |
421ef5172dd3
6336968: Methods to convert AttributeList to/from Map
emcmanus
parents:
1510
diff
changeset
|
308 |
adding(c); |
421ef5172dd3
6336968: Methods to convert AttributeList to/from Map
emcmanus
parents:
1510
diff
changeset
|
309 |
return super.addAll(index, c); |
2 | 310 |
} |
311 |
||
312 |
/** |
|
1571
421ef5172dd3
6336968: Methods to convert AttributeList to/from Map
emcmanus
parents:
1510
diff
changeset
|
313 |
* {@inheritDoc} |
421ef5172dd3
6336968: Methods to convert AttributeList to/from Map
emcmanus
parents:
1510
diff
changeset
|
314 |
* @throws IllegalArgumentException if this {@code AttributeList} is |
421ef5172dd3
6336968: Methods to convert AttributeList to/from Map
emcmanus
parents:
1510
diff
changeset
|
315 |
* <a href="#type-safe">type-safe</a> and {@code element} is not an |
421ef5172dd3
6336968: Methods to convert AttributeList to/from Map
emcmanus
parents:
1510
diff
changeset
|
316 |
* {@code Attribute}. |
2 | 317 |
*/ |
1571
421ef5172dd3
6336968: Methods to convert AttributeList to/from Map
emcmanus
parents:
1510
diff
changeset
|
318 |
@Override |
421ef5172dd3
6336968: Methods to convert AttributeList to/from Map
emcmanus
parents:
1510
diff
changeset
|
319 |
public Object set(int index, Object element) { |
421ef5172dd3
6336968: Methods to convert AttributeList to/from Map
emcmanus
parents:
1510
diff
changeset
|
320 |
adding(element); |
421ef5172dd3
6336968: Methods to convert AttributeList to/from Map
emcmanus
parents:
1510
diff
changeset
|
321 |
return super.set(index, element); |
2 | 322 |
} |
323 |
||
1571
421ef5172dd3
6336968: Methods to convert AttributeList to/from Map
emcmanus
parents:
1510
diff
changeset
|
324 |
private void adding(Object x) { |
421ef5172dd3
6336968: Methods to convert AttributeList to/from Map
emcmanus
parents:
1510
diff
changeset
|
325 |
if (x == null || x instanceof Attribute) |
421ef5172dd3
6336968: Methods to convert AttributeList to/from Map
emcmanus
parents:
1510
diff
changeset
|
326 |
return; |
421ef5172dd3
6336968: Methods to convert AttributeList to/from Map
emcmanus
parents:
1510
diff
changeset
|
327 |
if (typeSafe) |
421ef5172dd3
6336968: Methods to convert AttributeList to/from Map
emcmanus
parents:
1510
diff
changeset
|
328 |
throw new IllegalArgumentException("Not an Attribute: " + x); |
421ef5172dd3
6336968: Methods to convert AttributeList to/from Map
emcmanus
parents:
1510
diff
changeset
|
329 |
else |
421ef5172dd3
6336968: Methods to convert AttributeList to/from Map
emcmanus
parents:
1510
diff
changeset
|
330 |
tainted = true; |
421ef5172dd3
6336968: Methods to convert AttributeList to/from Map
emcmanus
parents:
1510
diff
changeset
|
331 |
} |
421ef5172dd3
6336968: Methods to convert AttributeList to/from Map
emcmanus
parents:
1510
diff
changeset
|
332 |
|
421ef5172dd3
6336968: Methods to convert AttributeList to/from Map
emcmanus
parents:
1510
diff
changeset
|
333 |
private void adding(Collection<?> c) { |
421ef5172dd3
6336968: Methods to convert AttributeList to/from Map
emcmanus
parents:
1510
diff
changeset
|
334 |
for (Object x : c) |
421ef5172dd3
6336968: Methods to convert AttributeList to/from Map
emcmanus
parents:
1510
diff
changeset
|
335 |
adding(x); |
2 | 336 |
} |
337 |
} |