Mercurial > hg > shenandoah-preopenjdk-archive > openjdk8 > corba
changeset 667:20e2e121586b
7095856: OutputStreamHook doesn't handle null values
Reviewed-by: lancea, msheppar
author | coffeys |
---|---|
date | Tue, 01 Jul 2014 15:17:55 +0100 |
parents | a4f04a11d70c |
children | 8f7e8338fd51 |
files | src/share/classes/com/sun/corba/se/impl/io/OutputStreamHook.java |
diffstat | 1 files changed, 4 insertions(+), 4 deletions(-) [+] |
line wrap: on
line diff
--- a/src/share/classes/com/sun/corba/se/impl/io/OutputStreamHook.java Mon Jul 07 18:03:59 2014 -0700 +++ b/src/share/classes/com/sun/corba/se/impl/io/OutputStreamHook.java Tue Jul 01 15:17:55 2014 +0100 @@ -1,5 +1,5 @@ /* - * Copyright (c) 1999, 2013, Oracle and/or its affiliates. All rights reserved. + * Copyright (c) 1999, 2014, 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 @@ -35,7 +35,8 @@ import java.io.OutputStream; import java.io.ObjectOutputStream; import java.io.ObjectOutput; -import java.util.Hashtable; +import java.util.Map; +import java.util.HashMap; import org.omg.CORBA.INTERNAL; @@ -49,7 +50,7 @@ */ private class HookPutFields extends ObjectOutputStream.PutField { - private Hashtable fields = new Hashtable(); + private Map<String,Object> fields = new HashMap<>(); /** * Put the value of the named boolean field into the persistent field. @@ -140,7 +141,6 @@ public OutputStreamHook() throws java.io.IOException { super(); - } public void defaultWriteObject() throws IOException {