Commit 09c99174 by songxiang

fix bug

parent 6eaacf35
...@@ -27,8 +27,8 @@ public class ResultUtils { ...@@ -27,8 +27,8 @@ public class ResultUtils {
* @date 2019年1月14日,下午7:32:35 * @date 2019年1月14日,下午7:32:35
*/ */
public static <T> T object(T t, Class<T> clazz) { public static <T> T object(T t, Class<T> clazz) {
if (t == null) { if (t != null) {
return null; return t;
} }
try { try {
return clazz.newInstance(); return clazz.newInstance();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment