summaryrefslogtreecommitdiff
path: root/org/omg/IOP/ServiceContextListHelper.java
diff options
context:
space:
mode:
Diffstat (limited to 'org/omg/IOP/ServiceContextListHelper.java')
-rw-r--r--org/omg/IOP/ServiceContextListHelper.java11
1 files changed, 3 insertions, 8 deletions
diff --git a/org/omg/IOP/ServiceContextListHelper.java b/org/omg/IOP/ServiceContextListHelper.java
index fa436cbb8..7875db29e 100644
--- a/org/omg/IOP/ServiceContextListHelper.java
+++ b/org/omg/IOP/ServiceContextListHelper.java
@@ -39,6 +39,7 @@ exception statement from your version. */
package org.omg.IOP;
import gnu.CORBA.Minor;
+import gnu.CORBA.OrbRestricted;
import org.omg.CORBA.Any;
import org.omg.CORBA.BAD_OPERATION;
@@ -56,18 +57,12 @@ import org.omg.CORBA.portable.OutputStream;
public abstract class ServiceContextListHelper
{
/**
- * The cached {@link ServiceContext[]} typecode, computed once.
- */
- private static TypeCode typeCode;
-
- /**
* Get the type code of the {@link ServiceContext[]}.
*/
public static TypeCode type()
{
- if (typeCode == null)
- typeCode = ORB.init().create_interface_tc(id(), "ServiceContextList");
- return typeCode;
+ return OrbRestricted.Singleton.create_interface_tc(id(),
+ "ServiceContextList");
}
/**