mirror of
https://gitee.com/chinabugotech/hutool.git
synced 2025-07-21 15:09:48 +08:00
fix
This commit is contained in:
@@ -190,7 +190,7 @@ public class DateTime extends Date {
|
|||||||
public DateTime(String dateStr, DateParser dateParser) {
|
public DateTime(String dateStr, DateParser dateParser) {
|
||||||
this(parse(dateStr, dateParser), dateParser.getTimeZone());
|
this(parse(dateStr, dateParser), dateParser.getTimeZone());
|
||||||
}
|
}
|
||||||
|
|
||||||
// -------------------------------------------------------------------- Constructor end
|
// -------------------------------------------------------------------- Constructor end
|
||||||
|
|
||||||
// -------------------------------------------------------------------- offset start
|
// -------------------------------------------------------------------- offset start
|
||||||
|
@@ -369,6 +369,19 @@ public class ObjectUtil {
|
|||||||
}
|
}
|
||||||
return byteOut.toByteArray();
|
return byteOut.toByteArray();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 反序列化<br>
|
||||||
|
* 对象必须实现Serializable接口
|
||||||
|
*
|
||||||
|
* @param <T> 对象类型
|
||||||
|
* @param bytes 反序列化的字节码
|
||||||
|
* @return 反序列化后的对象
|
||||||
|
* @see #unserialize(byte[])
|
||||||
|
*/
|
||||||
|
public static <T> T deserialize(byte[] bytes) {
|
||||||
|
return unserialize(bytes);
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 反序列化<br>
|
* 反序列化<br>
|
||||||
|
Reference in New Issue
Block a user