Mercurial > hg > openjdk > jdk7u > jaxp
changeset 1269:c2f20a5bb465 jdk7u181-b00
8189993: Improve document portability
Reviewed-by: joehw
author | aefimov |
---|---|
date | Mon, 29 Jan 2018 12:56:49 +0000 |
parents | 7620d1b917c5 |
children | 236e9466a0a9 |
files | src/com/sun/org/apache/xerces/internal/dom/NamedNodeMapImpl.java |
diffstat | 1 files changed, 3 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- a/src/com/sun/org/apache/xerces/internal/dom/NamedNodeMapImpl.java Thu Feb 15 19:53:07 2018 +0000 +++ b/src/com/sun/org/apache/xerces/internal/dom/NamedNodeMapImpl.java Mon Jan 29 12:56:49 2018 +0000 @@ -1,6 +1,5 @@ /* - * reserved comment block - * DO NOT REMOVE OR ALTER! + * Copyright (c) 2018, Oracle and/or its affiliates. All rights reserved. */ /* * Copyright 1999-2002,2004,2005 The Apache Software Foundation. @@ -608,7 +607,8 @@ throws IOException, ClassNotFoundException { in.defaultReadObject(); if (nodes != null) { - nodes = new ArrayList(nodes); + // cast to Vector is required + nodes = new ArrayList((Vector)nodes); } }