corba/src/share/classes/com/sun/corba/se/impl/encoding/CDROutputStream_1_0.java
Print this page
rev 502 : 8000631: Restrict access to class constructor
Reviewed-by: alanb, ahgross
*** 1,7 ****
/*
! * Copyright (c) 1997, 2011, 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
* under the terms of the GNU General Public License version 2 only, as
* published by the Free Software Foundation. Oracle designates this
--- 1,7 ----
/*
! * Copyright (c) 1997, 2012, 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
* under the terms of the GNU General Public License version 2 only, as
* published by the Free Software Foundation. Oracle designates this
*** 187,209 ****
init(orb, littleEndian, bufferManager, streamFormatVersion, true);
}
private final void createRepositoryIdHandlers()
{
- if (orb != null) {
- // Get the appropriate versions based on the ORB version. The
- // ORB versioning info is only in the core ORB.
- repIdUtil
- = RepositoryIdFactory.getRepIdUtility(orb);
- repIdStrs
- = RepositoryIdFactory.getRepIdStringsFactory(orb);
- } else {
- // Get the latest versions
repIdUtil = RepositoryIdFactory.getRepIdUtility();
repIdStrs = RepositoryIdFactory.getRepIdStringsFactory();
}
- }
public BufferManagerWrite getBufferManager()
{
return bufferManagerWrite;
}
--- 187,199 ----
*** 703,713 ****
}
private void writeArray(Serializable array, Class clazz) {
if (valueHandler == null)
! valueHandler = ORBUtility.createValueHandler(orb); //d11638
// Write value_tag
int indirection = writeValueTag(mustChunk, true,
Util.getCodebase(clazz));
--- 693,703 ----
}
private void writeArray(Serializable array, Class clazz) {
if (valueHandler == null)
! valueHandler = ORBUtility.createValueHandler(); //d11638
// Write value_tag
int indirection = writeValueTag(mustChunk, true,
Util.getCodebase(clazz));
*** 766,776 ****
writeEndTag(true);
}
private void writeRMIIIOPValueType(Serializable object, Class clazz) {
if (valueHandler == null)
! valueHandler = ORBUtility.createValueHandler(orb); //d11638
Serializable key = object;
// Allow the ValueHandler to call writeReplace on
// the Serializable (if the method is present)
--- 756,766 ----
writeEndTag(true);
}
private void writeRMIIIOPValueType(Serializable object, Class clazz) {
if (valueHandler == null)
! valueHandler = ORBUtility.createValueHandler(); //d11638
Serializable key = object;
// Allow the ValueHandler to call writeReplace on
// the Serializable (if the method is present)