|
Lines 1-5
Link Here
|
| 1 |
/******************************************************************************* |
1 |
/******************************************************************************* |
| 2 |
* Copyright (c) 2000, 2010 IBM Corporation and others. |
2 |
* Copyright (c) 2000, 2011 IBM Corporation and others. |
| 3 |
* All rights reserved. This program and the accompanying materials |
3 |
* All rights reserved. This program and the accompanying materials |
| 4 |
* are made available under the terms of the Eclipse Public License v1.0 |
4 |
* are made available under the terms of the Eclipse Public License v1.0 |
| 5 |
* which accompanies this distribution, and is available at |
5 |
* which accompanies this distribution, and is available at |
|
Lines 2616-2622
Link Here
|
| 2616 |
CustomHashtable children = newHashtable(elementChildren.length * 2); |
2616 |
CustomHashtable children = newHashtable(elementChildren.length * 2); |
| 2617 |
for (int i = 0; i < elementChildren.length; i++) { |
2617 |
for (int i = 0; i < elementChildren.length; i++) { |
| 2618 |
Object elementChild = elementChildren[i]; |
2618 |
Object elementChild = elementChildren[i]; |
| 2619 |
children.put(elementChild, elementChild); |
2619 |
Object old = children.put(elementChild, elementChild); |
|
|
2620 |
if (old != null) { |
| 2621 |
throw new IllegalStateException("Element has multiple equal children:\n" + //$NON-NLS-1$ |
| 2622 |
"parent: " + parent + "\n" + //$NON-NLS-1$ //$NON-NLS-2$ |
| 2623 |
"child 1: " + old + "\n" + //$NON-NLS-1$ //$NON-NLS-2$ |
| 2624 |
"child 2: " + elementChild); //$NON-NLS-1$ |
| 2625 |
} |
| 2620 |
} |
2626 |
} |
| 2621 |
int i = 0; |
2627 |
int i = 0; |
| 2622 |
while (numItemsToDispose > 0 && i < items.length) { |
2628 |
while (numItemsToDispose > 0 && i < items.length) { |