mirror of
https://gitee.com/chinabugotech/hutool.git
synced 2025-07-21 15:09:48 +08:00
fix code
This commit is contained in:
@@ -70,9 +70,10 @@ public class SerializeUtil {
|
||||
*
|
||||
* @param <T> 对象类型
|
||||
* @param bytes 反序列化的字节码
|
||||
* @param acceptClasses 读取对象类型
|
||||
* @return 反序列化后的对象
|
||||
*/
|
||||
public static <T> T deserialize(final byte[] bytes) {
|
||||
return IoUtil.readObj(new ByteArrayInputStream(bytes));
|
||||
public static <T> T deserialize(final byte[] bytes, final Class<?>... acceptClasses) {
|
||||
return IoUtil.readObj(new ByteArrayInputStream(bytes), acceptClasses);
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user