Mercurial > hg > icedtea8-forest > jdk
changeset 12551:936085d9aff0 jdk8u141-b02
8174105: Better naming attribution
Reviewed-by: chegar, dfuchs, rriggs, vtewari
author | rpatil |
---|---|
date | Wed, 15 Mar 2017 14:14:57 +0530 |
parents | 70b0eb614c92 |
children | 3a99785f69d4 |
files | src/share/classes/javax/naming/directory/BasicAttribute.java |
diffstat | 1 files changed, 2 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/src/share/classes/javax/naming/directory/BasicAttribute.java Mon Mar 20 10:55:14 2017 -0700 +++ b/src/share/classes/javax/naming/directory/BasicAttribute.java Wed Mar 15 14:14:57 2017 +0530 @@ -1,5 +1,5 @@ /* - * Copyright (c) 1999, 2011, Oracle and/or its affiliates. All rights reserved. + * Copyright (c) 1999, 2017, Oracle and/or its affiliates. All rights reserved. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * * This code is free software; you can redistribute it and/or modify it @@ -515,7 +515,7 @@ throws java.io.IOException, ClassNotFoundException { s.defaultReadObject(); // read in the attrID int n = s.readInt(); // number of values - values = new Vector<>(n); + values = new Vector<>(Math.min(1024, n)); while (--n >= 0) { values.addElement(s.readObject()); }