summaryrefslogtreecommitdiff
path: root/libjava/classpath/org/omg/DynamicAny/DynEnumHelper.java
diff options
context:
space:
mode:
Diffstat (limited to 'libjava/classpath/org/omg/DynamicAny/DynEnumHelper.java')
-rw-r--r--libjava/classpath/org/omg/DynamicAny/DynEnumHelper.java40
1 files changed, 20 insertions, 20 deletions
diff --git a/libjava/classpath/org/omg/DynamicAny/DynEnumHelper.java b/libjava/classpath/org/omg/DynamicAny/DynEnumHelper.java
index da63e844f91..9599d72b581 100644
--- a/libjava/classpath/org/omg/DynamicAny/DynEnumHelper.java
+++ b/libjava/classpath/org/omg/DynamicAny/DynEnumHelper.java
@@ -54,10 +54,10 @@ import org.omg.CORBA.portable.OutputStream;
* specifications, DynEnum is always a local object, so the two methods of this
* helper ({@link #read} and {@link #write} are not in use, always throwing
* {@link MARSHAL}.
- *
+ *
* @specnote always throwing MARSHAL in read and write ensures compatibility
* with other popular implementations like Sun's.
- *
+ *
* @author Audrius Meskauskas, Lithuania (AudriusA@Bioinformatics.org)
*/
public abstract class DynEnumHelper
@@ -65,7 +65,7 @@ public abstract class DynEnumHelper
/**
* Cast the passed object into the DynEnum. As DynEnum is a local object, the
* method just uses java type cast.
- *
+ *
* @param obj the object to narrow.
* @return narrowed instance.
* @throws BAD_PARAM if the passed object is not a DynEnum.
@@ -81,23 +81,23 @@ public abstract class DynEnumHelper
throw new BAD_PARAM(obj.getClass().getName() + " is not a DynEnum");
}
}
-
+
/**
* Narrow the given object to the DynEnum. For the objects that are
* always local, this operation does not differ from the ordinary
* {@link #narrow} (ClassCastException will be thrown if narrowing something
* different). See OMG issue 4158.
- *
+ *
* @param obj the object to cast.
- *
+ *
* @return the casted DynEnum.
- *
- * @since 1.5
+ *
+ * @since 1.5
*/
public static DynEnum unchecked_narrow(org.omg.CORBA.Object obj)
{
return narrow(obj);
- }
+ }
/**
* Get the type code of the {@link DynEnum}.
@@ -109,9 +109,9 @@ public abstract class DynEnumHelper
/**
* Insert the DynEnum into the given Any.
- *
+ *
* @param any the Any to insert into.
- *
+ *
* @param that the DynEnum to insert.
*/
public static void insert(Any any, DynEnum that)
@@ -121,7 +121,7 @@ public abstract class DynEnumHelper
/**
* Extract the DynEnum from given Any.
- *
+ *
* @throws BAD_OPERATION if the passed Any does not contain DynEnum.
*/
public static DynEnum extract(Any any)
@@ -131,7 +131,7 @@ public abstract class DynEnumHelper
/**
* Get the DynEnum repository id.
- *
+ *
* @return "IDL:omg.org/DynamicAny/DynEnum:1.0", always.
*/
public static String id()
@@ -142,11 +142,11 @@ public abstract class DynEnumHelper
/**
* This should read DynEnum from the CDR input stream, but (following the JDK
* 1.5 API) it does not.
- *
+ *
* @param input a org.omg.CORBA.portable stream to read from.
- *
+ *
* @specenote Sun throws the same exception.
- *
+ *
* @throws MARSHAL always.
*/
public static DynEnum read(InputStream input)
@@ -157,15 +157,15 @@ public abstract class DynEnumHelper
/**
* This should read DynEnum from the CDR input stream, but (following the JDK
* 1.5 API) it does not.
- *
+ *
* @param output a org.omg.CORBA.portable stream to write into.
- *
+ *
* @specenote Sun throws the same exception.
- *
+ *
* @throws MARSHAL always.
*/
public static void write(OutputStream output, DynEnum value)
{
throw new MARSHAL(DynAnyFactoryHelper.not_applicable(id()));
}
-} \ No newline at end of file
+}