Commit c0a57e04 authored by p x's avatar p x
Browse files

1

parent f92c773b
...@@ -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) {
Field tField = null;
try {
Field[] fields = source.getClass().getDeclaredFields(); Field[] fields = source.getClass().getDeclaredFields();
// List<Field> fList = new ArrayList<>(); // List<Field> fList = new ArrayList<>();
List<Field> fList = Arrays.asList(fields); List<Field> fList = Arrays.asList(fields);
...@@ -524,8 +526,7 @@ public class Parse { ...@@ -524,8 +526,7 @@ public class Parse {
return f1.getAnnotation(Order.class).value() - f2.getAnnotation(Order.class).value(); return f1.getAnnotation(Order.class).value() - f2.getAnnotation(Order.class).value();
} }
}); });
Field tField = null;
try {
// Field[] fields = source.getClass().getDeclaredFields(); // Field[] fields = source.getClass().getDeclaredFields();
//获取目标对象指定的属性 //获取目标对象指定的属性
//List<Field> fList = new ArrayList<>(); //List<Field> fList = new ArrayList<>();
......
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