Genericizing excludeFieldList variablle - LANG-336
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@772548 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
bab78e92bb
commit
ca3a3baa65
|
@ -318,7 +318,7 @@ public class EqualsBuilder {
|
|||
boolean useTransients,
|
||||
String[] excludeFields) {
|
||||
Field[] fields = clazz.getDeclaredFields();
|
||||
List excludedFieldList = excludeFields != null ? Arrays.asList(excludeFields) : Collections.EMPTY_LIST;
|
||||
List<String> excludedFieldList = excludeFields != null ? Arrays.asList(excludeFields) : Collections.<String>emptyList();
|
||||
AccessibleObject.setAccessible(fields, true);
|
||||
for (int i = 0; i < fields.length && builder.isEquals; i++) {
|
||||
Field f = fields[i];
|
||||
|
|
Loading…
Reference in New Issue