package us.codecraft.forger.property;

import java.lang.reflect.Field;
import java.util.ArrayList;
import java.util.List;

/**
 * @author code4crafter@gmail.com
 */
public class SimpleFieldPropertyLoader extends AbstractPropertyLoader {

    @Override
    public List<Property> getProperties(Class clazz) {
        Field[] fields = clazz.getDeclaredFields();
        List<Property> properties = new ArrayList<Property>(fields.length);
        for (Field field : fields) {
            if (!field.isAccessible()){
                field.setAccessible(true);
            }
            properties.add(Property.fromField(field).setObjectFormatter(getObjectFormatter(field)));
        }
        return properties;
    }
}

@@ -64,16 +64,51 @@
 .Field;%0A
+import java.lang.reflect.Modifier;%0A
 import j
@@ -496,24 +496,122 @@
 : fields) %7B%0A
+            if (Modifier.isStatic(field.getModifiers()))%7B%0A                continue;%0A            %7D%0A
             

remove inject of static property