diff options
Diffstat (limited to 'org/omg/PortableInterceptor/AdapterNameHelper.java')
-rw-r--r-- | org/omg/PortableInterceptor/AdapterNameHelper.java | 23 |
1 files changed, 7 insertions, 16 deletions
diff --git a/org/omg/PortableInterceptor/AdapterNameHelper.java b/org/omg/PortableInterceptor/AdapterNameHelper.java index 1cda311b2..05844560a 100644 --- a/org/omg/PortableInterceptor/AdapterNameHelper.java +++ b/org/omg/PortableInterceptor/AdapterNameHelper.java @@ -61,11 +61,6 @@ public abstract class AdapterNameHelper { /** - * The cached typecode, computed once. - */ - static TypeCode typecode; - - /** * Extract the adapter name (<code>String[]</code>) from the given {@link Any}. * * @param a an Any to extract the array from. @@ -114,26 +109,22 @@ public abstract class AdapterNameHelper } /** - * Creates and returns a new instance of the TypeCode, - * corresponding the adapter name. + * Creates and returns a new instance of the TypeCode, corresponding the + * adapter name. * * @return the alias of the string sequence, named "AdapterName". */ public static TypeCode type() { - if (typecode == null) - { - ORB orb = OrbRestricted.Singleton; - - TypeCode component = orb.create_string_tc(0); - typecode = orb.create_alias_tc(id(), "AdapterName", component); - } - return typecode; + ORB orb = OrbRestricted.Singleton; + + TypeCode component = orb.create_string_tc(0); + return orb.create_alias_tc(id(), "AdapterName", component); } /** * Writes the <code>String[]</code> into the given stream. - * + * * @param output the CORBA output stream to write. * @param value the value that must be written. */ |