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

混淆

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