src/java.management/share/classes/javax/management/openmbean/TabularDataSupport.java
equal
deleted
inserted
replaced
1 /* |
1 /* |
2 * Copyright (c) 2000, 2011, Oracle and/or its affiliates. All rights reserved. |
2 * Copyright (c) 2000, 2018, Oracle and/or its affiliates. All rights reserved. |
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. |
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. |
4 * |
4 * |
5 * This code is free software; you can redistribute it and/or modify it |
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 |
6 * under the terms of the GNU General Public License version 2 only, as |
7 * published by the Free Software Foundation. Oracle designates this |
7 * published by the Free Software Foundation. Oracle designates this |
43 import java.util.Iterator; |
43 import java.util.Iterator; |
44 import java.util.LinkedHashMap; |
44 import java.util.LinkedHashMap; |
45 import java.util.List; |
45 import java.util.List; |
46 import java.util.Map; |
46 import java.util.Map; |
47 import java.util.Set; |
47 import java.util.Set; |
|
48 import jdk.internal.misc.SharedSecrets; |
48 |
49 |
49 // jmx import |
50 // jmx import |
50 // |
51 // |
51 |
52 |
52 |
53 |
920 */ |
921 */ |
921 private void readObject(ObjectInputStream in) |
922 private void readObject(ObjectInputStream in) |
922 throws IOException, ClassNotFoundException { |
923 throws IOException, ClassNotFoundException { |
923 in.defaultReadObject(); |
924 in.defaultReadObject(); |
924 List<String> tmpNames = tabularType.getIndexNames(); |
925 List<String> tmpNames = tabularType.getIndexNames(); |
925 indexNamesArray = tmpNames.toArray(new String[tmpNames.size()]); |
926 int size = tmpNames.size(); |
|
927 SharedSecrets.getJavaObjectInputStreamAccess().checkArray(in, String[].class, size); |
|
928 indexNamesArray = tmpNames.toArray(new String[size]); |
926 } |
929 } |
927 } |
930 } |