equal
deleted
inserted
replaced
1 /* |
1 /* |
2 * Copyright (c) 2003, 2013, Oracle and/or its affiliates. All rights reserved. |
2 * Copyright (c) 2003, 2014, 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 |
241 |
241 |
242 ObjectOutputStream.PutField fields = s.putFields(); |
242 ObjectOutputStream.PutField fields = s.putFields(); |
243 fields.put("baseTypeName", baseTypeName); |
243 fields.put("baseTypeName", baseTypeName); |
244 fields.put("object", object); |
244 fields.put("object", object); |
245 // Note: this check to see if it is an instance of Serializable |
245 // Note: this check to see if it is an instance of Serializable |
246 // is for backwards compatibiity |
246 // is for backwards compatibility |
247 fields.put("reference", reference instanceof Serializable ? reference : null); |
247 fields.put("reference", reference instanceof Serializable ? reference : null); |
248 s.writeFields(); |
248 s.writeFields(); |
249 } |
249 } |
250 |
250 |
251 /** |
251 /** |