Skip to content

Commit 0ec25a4

Browse files
CesarCoelhoclaude
andcommitted
Remove the deprecated HelperAttributes conversion methods
The four methods delegated to Attribute, which declares them with the same signatures. The remaining call sites, all in TestHelperAttributes, now call Attribute directly. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
1 parent 7f573f0 commit 0ec25a4

2 files changed

Lines changed: 93 additions & 141 deletions

File tree

‎apis/api-area001-v003-mal/src/main/java/org/ccsds/moims/mo/mal/helpertools/helpers/HelperAttributes.java‎

Lines changed: 0 additions & 48 deletions
Original file line numberDiff line numberDiff line change
@@ -42,30 +42,6 @@ public class HelperAttributes {
4242
*/
4343
public static String SERIAL_OBJECT_STRING = "SerializedObject";
4444

45-
/**
46-
* Converts an {@link Attribute} into a Java Double.
47-
*
48-
* @param in the Attribute to convert
49-
* @return the converted Double value
50-
* @deprecated Use {@link Attribute#attribute2double(Attribute)} directly.
51-
*/
52-
@Deprecated
53-
public static Double attribute2double(Attribute in) {
54-
return Attribute.attribute2double(in);
55-
}
56-
57-
/**
58-
* Converts a value into its String representation.
59-
*
60-
* @param in the value to convert
61-
* @return the String representation
62-
* @deprecated Use {@link Attribute#attribute2string(Object)} directly.
63-
*/
64-
@Deprecated
65-
public static String attribute2string(Object in) {
66-
return Attribute.attribute2string(in);
67-
}
68-
6945
/**
7046
* Creates an instance of a MAL attribute from attribute name
7147
*
@@ -266,30 +242,6 @@ public static Object string2attribute(Object in, String value)
266242
return null;
267243
}
268244

269-
/**
270-
* Converts a Java type into an MO {@link Attribute}.
271-
*
272-
* @param obj the Java object to convert
273-
* @return the resulting Attribute
274-
* @deprecated Use {@link Attribute#javaType2Attribute(Object)} directly.
275-
*/
276-
@Deprecated
277-
public static Object javaType2Attribute(Object obj) {
278-
return Attribute.javaType2Attribute(obj);
279-
}
280-
281-
/**
282-
* Converts a MAL data type into a Java data type
283-
*
284-
* @param obj The object in the MAL data type
285-
* @return The object in the Java data type
286-
* @deprecated Use {@link Attribute#attribute2JavaType(Object)} directly.
287-
*/
288-
@Deprecated
289-
public static Object attribute2JavaType(Object obj) {
290-
return Attribute.attribute2JavaType(obj);
291-
}
292-
293245
/**
294246
* Generates the correct Element List based on the Java type
295247
*

0 commit comments

Comments
 (0)