diff options
Diffstat (limited to 'libjava/classpath/org/omg/IOP/CodecFactoryHelper.java')
| -rw-r--r-- | libjava/classpath/org/omg/IOP/CodecFactoryHelper.java | 11 |
1 files changed, 3 insertions, 8 deletions
diff --git a/libjava/classpath/org/omg/IOP/CodecFactoryHelper.java b/libjava/classpath/org/omg/IOP/CodecFactoryHelper.java index fea0b887bd9..89404f7d584 100644 --- a/libjava/classpath/org/omg/IOP/CodecFactoryHelper.java +++ b/libjava/classpath/org/omg/IOP/CodecFactoryHelper.java @@ -38,6 +38,8 @@ exception statement from your version. */ package org.omg.IOP; +import gnu.CORBA.OrbRestricted; + import org.omg.CORBA.Any; import org.omg.CORBA.BAD_PARAM; import org.omg.CORBA.CompletionStatus; @@ -56,18 +58,11 @@ import org.omg.CORBA.portable.OutputStream; public abstract class CodecFactoryHelper { /** - * The cached {@link CodecFactory} typecode, computed once. - */ - private static TypeCode typeCode; - - /** * Get the type code of the {@link CodecFactory}. */ public static TypeCode type() { - if (typeCode == null) - typeCode = ORB.init().create_interface_tc(id(), "CodecFactory"); - return typeCode; + return OrbRestricted.Singleton.create_interface_tc(id(), "CodecFactory"); } /** |
