mirror of
https://github.com/apache/commons-lang.git
synced 2025-02-13 13:35:13 +00:00
Fix param name.
This commit is contained in:
parent
4d066361c0
commit
54afd64c79
@ -225,14 +225,14 @@ public static <T> T deserialize(final InputStream inputStream) {
|
||||
*
|
||||
* @param <T>
|
||||
* the type of the object involved
|
||||
* @param msg
|
||||
* @param obj
|
||||
* the object to roundtrip
|
||||
* @return the serialized and deserialized object
|
||||
* @since 3.3
|
||||
*/
|
||||
@SuppressWarnings("unchecked") // OK, because we serialized a type `T`
|
||||
public static <T extends Serializable> T roundtrip(final T msg) {
|
||||
return (T) deserialize(serialize(msg));
|
||||
public static <T extends Serializable> T roundtrip(final T obj) {
|
||||
return (T) deserialize(serialize(obj));
|
||||
}
|
||||
|
||||
/**
|
||||
|
Loading…
x
Reference in New Issue
Block a user