Commit 20b7afe5 authored by p x's avatar p x
Browse files

混淆

parent 82280e1c
......@@ -13,8 +13,6 @@ import java.util.Arrays;
import java.util.Collections;
import java.util.Comparator;
import java.util.List;
import java.util.SortedMap;
import java.util.TreeMap;
import java.util.UUID;
import io.netty.buffer.ByteBuf;
......@@ -197,6 +195,8 @@ public class Parse {
* @param fList 按Order 从小到大排序好的属性
*/
public static <T> T parse(ByteBuf data, T t, List<Field> fList) {
if (t == null)
return null;
try {
for (Field field : fList) {
field.setAccessible(true);
......@@ -510,6 +510,8 @@ public class Parse {
// public static void convoterBean( Object source , Object target) throws IllegalArgumentException, IllegalAccessException, ClassNotFoundException, InstantiationException, NoSuchFieldException, SecurityException {
public static void convoterBean(Object source, Object target) {
if (source == null)
return;
Field tField = null;
try {
Field[] fields = source.getClass().getDeclaredFields();
......@@ -691,7 +693,7 @@ public class Parse {
}
}
} catch (Exception e) {
System.out.println("----convoterBean Exception " + e + " tField " + tField);
System.out.println("----convoterBean Exception " + e + " tField " + tField + " object " + source.getClass().getName());
}
}
......
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