summaryrefslogtreecommitdiff
path: root/org/omg/CosNaming/NamingContextPackage/NotEmptyHelper.java
diff options
context:
space:
mode:
Diffstat (limited to 'org/omg/CosNaming/NamingContextPackage/NotEmptyHelper.java')
-rw-r--r--org/omg/CosNaming/NamingContextPackage/NotEmptyHelper.java12
1 files changed, 3 insertions, 9 deletions
diff --git a/org/omg/CosNaming/NamingContextPackage/NotEmptyHelper.java b/org/omg/CosNaming/NamingContextPackage/NotEmptyHelper.java
index 6333dfcbc..a9b802f95 100644
--- a/org/omg/CosNaming/NamingContextPackage/NotEmptyHelper.java
+++ b/org/omg/CosNaming/NamingContextPackage/NotEmptyHelper.java
@@ -39,6 +39,7 @@ exception statement from your version. */
package org.omg.CosNaming.NamingContextPackage;
import gnu.CORBA.Minor;
+import gnu.CORBA.OrbRestricted;
import org.omg.CORBA.Any;
import org.omg.CORBA.BAD_OPERATION;
@@ -62,11 +63,6 @@ public abstract class NotEmptyHelper
"IDL:omg.org/CosNaming/NamingContext/NotEmpty:1.0";
/**
- * The cached type code value.
- */
- private static TypeCode typeCode;
-
- /**
* Extract the exception from the given {@link Any}.
*/
public static NotEmpty extract(Any a)
@@ -117,10 +113,8 @@ public abstract class NotEmptyHelper
*/
public static TypeCode type()
{
- if (typeCode == null)
- typeCode =
- ORB.init().create_struct_tc(id(), "NotEmpty", new StructMember[ 0 ]);
- return typeCode;
+ return OrbRestricted.Singleton.create_struct_tc(id(),
+ "NotEmpty", new StructMember[0]);
}
/**