Mercurial > hg > openjdk > jdk8u > jaxp
changeset 1762:5279c6da822e jdk8u171-b05
8189993: Improve document portability
Reviewed-by: joehw
author | aefimov |
---|---|
date | Mon, 29 Jan 2018 12:56:49 +0000 |
parents | dd671638bd0f |
children | daab1512cd15 |
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 Tue Jan 30 11:23:29 2018 -0800 +++ 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); } }