summaryrefslogtreecommitdiff
path: root/org/omg/CORBA/CompletionStatusHelper.java
diff options
context:
space:
mode:
Diffstat (limited to 'org/omg/CORBA/CompletionStatusHelper.java')
-rw-r--r--org/omg/CORBA/CompletionStatusHelper.java23
1 files changed, 7 insertions, 16 deletions
diff --git a/org/omg/CORBA/CompletionStatusHelper.java b/org/omg/CORBA/CompletionStatusHelper.java
index 43b6b8c10..bf1c37532 100644
--- a/org/omg/CORBA/CompletionStatusHelper.java
+++ b/org/omg/CORBA/CompletionStatusHelper.java
@@ -52,11 +52,6 @@ import org.omg.CORBA.portable.OutputStream;
public abstract class CompletionStatusHelper
{
/**
- * The cached typecode value, computed once.
- */
- private static TypeCode typeCode;
-
- /**
* Extract the {@link CompletionStatus} from the
* given {@link Any}. This implementation expects
* the integer (Corba long) value, stating the completion
@@ -125,16 +120,12 @@ public abstract class CompletionStatusHelper
*/
public static TypeCode type()
{
- if (typeCode == null)
- {
- String[] members =
- new String[] { "COMPLETED_YES", "COMPLETED_NO", "COMPLETED_MAYBE" };
-
- typeCode =
- OrbRestricted.Singleton.create_enum_tc(id(), "CompletionStatus",
- members
- );
- }
- return typeCode;
+ String[] members =
+ new String[] { "COMPLETED_YES", "COMPLETED_NO", "COMPLETED_MAYBE" };
+
+ return
+ OrbRestricted.Singleton.create_enum_tc(id(), "CompletionStatus",
+ members
+ );
}
} \ No newline at end of file