private Map createPropertiesByNameMap(PropertyDescriptor [] pds, Field [] fields) { Map m = new HashMap(pds.length); for (int i = 0; i < pds.length; i++) { PropertyDescriptor pd = pds[i]; Method readMethod = pd.getReadMethod(); if (readMethod != null && isPublicAccessor(readMethod.getModifiers()) && (includeReadOnly || pd.getWriteMethod() != null)) m.put(pd.getName(), pd); } for (int i = 0; i < fields.length; i++) { Field field = fields[i]; if (isPublicField(field.getModifiers()) && !m.containsKey(field.getName())) m.put(field.getName(), field); } return m; }
private Map createPropertiesByNameMap(PropertyDescriptor [] pds, Field [] fields) { Map m = new HashMap(pds.length); for (PropertyDescriptor pd : pds) { Method readMethod = pd.getReadMethod(); if (readMethod != null && isPublicAccessor(readMethod.getModifiers()) && (getIncludeReadOnly() || pd.getWriteMethod() != null)) m.put(pd.getName(), pd); } for (Field field : fields) { if (isPublicField(field.getModifiers()) && !m.containsKey(field.getName())) m.put(field.getName(), field); } return m; }
private Map createPropertiesByNameMap(PropertyDescriptor [] pds, Field [] fields) { Map m = new HashMap(pds.length); for (PropertyDescriptor pd : pds) { Method readMethod = pd.getReadMethod(); if (readMethod != null && isPublicAccessor(readMethod.getModifiers()) && (getIncludeReadOnly() || pd.getWriteMethod() != null)) m.put(pd.getName(), pd); } for (Field field : fields) { if (isPublicField(field.getModifiers()) && !m.containsKey(field.getName())) m.put(field.getName(), field); } return m; }
String propertyName = field.getName(); int modifiers = field.getModifiers(); if (isPublicField(modifiers) && !props.containsKey(propertyName))
if (isPublicField(modifiers) && pName.equals(propertyName))
if (isPublicField(modifiers) && pName.equals(propertyName))
if (isPublicField(modifiers) && !props.containsKey(propertyName))
if (isPublicField(modifiers) && pName.equals(propertyName))
if (isPublicField(modifiers) && !props.containsKey(propertyName))