summaryrefslogtreecommitdiffstats
path: root/libjava/classpath/org/omg/DynamicAny/DynStructHelper.java
diff options
context:
space:
mode:
Diffstat (limited to 'libjava/classpath/org/omg/DynamicAny/DynStructHelper.java')
-rw-r--r--libjava/classpath/org/omg/DynamicAny/DynStructHelper.java40
1 files changed, 20 insertions, 20 deletions
diff --git a/libjava/classpath/org/omg/DynamicAny/DynStructHelper.java b/libjava/classpath/org/omg/DynamicAny/DynStructHelper.java
index 077b7d09824..ed049a10535 100644
--- a/libjava/classpath/org/omg/DynamicAny/DynStructHelper.java
+++ b/libjava/classpath/org/omg/DynamicAny/DynStructHelper.java
@@ -53,10 +53,10 @@ import org.omg.CORBA.portable.OutputStream;
* specifications, DynStruct 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 DynStructHelper
@@ -64,7 +64,7 @@ public abstract class DynStructHelper
/**
* Cast the passed object into the DynStruct. As DynStruct 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 DynStruct.
@@ -80,23 +80,23 @@ public abstract class DynStructHelper
throw new BAD_PARAM(obj.getClass().getName() + " is not a DynStruct");
}
}
-
+
/**
* Narrow the given object to the DynStruct. 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 DynStruct.
- *
- * @since 1.5
+ *
+ * @since 1.5
*/
public static DynStruct unchecked_narrow(org.omg.CORBA.Object obj)
{
return narrow(obj);
- }
+ }
/**
* Get the type code of the {@link DynStruct}.
@@ -108,9 +108,9 @@ public abstract class DynStructHelper
/**
* Insert the DynStruct into the given Any.
- *
+ *
* @param any the Any to insert into.
- *
+ *
* @param that the DynStruct to insert.
*/
public static void insert(Any any, DynStruct that)
@@ -120,7 +120,7 @@ public abstract class DynStructHelper
/**
* Extract the DynStruct from given Any.
- *
+ *
* @throws BAD_OPERATION if the passed Any does not contain DynStruct.
*/
public static DynStruct extract(Any any)
@@ -130,7 +130,7 @@ public abstract class DynStructHelper
/**
* Get the DynStruct repository id.
- *
+ *
* @return "IDL:omg.org/DynamicAny/DynStruct:1.0", always.
*/
public static String id()
@@ -141,11 +141,11 @@ public abstract class DynStructHelper
/**
* This should read DynStruct 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 DynStruct read(InputStream input)
@@ -156,15 +156,15 @@ public abstract class DynStructHelper
/**
* This should read DynStruct 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, DynStruct value)
{
throw new MARSHAL(DynAnyFactoryHelper.not_applicable(id()));
}
-} \ No newline at end of file
+}
OpenPOWER on IntegriCloud