diff options
Diffstat (limited to 'org/omg/CosNaming/NamingContextHelper.java')
-rw-r--r-- | org/omg/CosNaming/NamingContextHelper.java | 10 |
1 files changed, 2 insertions, 8 deletions
diff --git a/org/omg/CosNaming/NamingContextHelper.java b/org/omg/CosNaming/NamingContextHelper.java index fb9b091a6..48b90c25a 100644 --- a/org/omg/CosNaming/NamingContextHelper.java +++ b/org/omg/CosNaming/NamingContextHelper.java @@ -39,6 +39,7 @@ exception statement from your version. */ package org.omg.CosNaming; import gnu.CORBA.Minor; +import gnu.CORBA.OrbRestricted; import org.omg.CORBA.Any; import org.omg.CORBA.BAD_OPERATION; @@ -63,11 +64,6 @@ public abstract class NamingContextHelper private static String _id = "IDL:omg.org/CosNaming/NamingContext:1.0"; /** - * The cached {@link NamingContext} typecode. - */ - private static TypeCode typeCode; - - /** * Extract the naming context from the given {@link Any}. */ public static NamingContext extract(Any a) @@ -176,9 +172,7 @@ public abstract class NamingContextHelper */ public static TypeCode type() { - if (typeCode == null) - typeCode = ORB.init().create_interface_tc(id(), "NamingContext"); - return typeCode; + return OrbRestricted.Singleton.create_interface_tc(id(), "NamingContext"); } /** |