commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bay...@apache.org
Subject svn commit: r772548 - /commons/proper/lang/trunk/src/java/org/apache/commons/lang/builder/EqualsBuilder.java
Date Thu, 07 May 2009 08:31:48 GMT
Author: bayard
Date: Thu May  7 08:31:48 2009
New Revision: 772548

URL: http://svn.apache.org/viewvc?rev=772548&view=rev
Log:
Genericizing excludeFieldList variablle - LANG-336

Modified:
    commons/proper/lang/trunk/src/java/org/apache/commons/lang/builder/EqualsBuilder.java

Modified: commons/proper/lang/trunk/src/java/org/apache/commons/lang/builder/EqualsBuilder.java
URL: http://svn.apache.org/viewvc/commons/proper/lang/trunk/src/java/org/apache/commons/lang/builder/EqualsBuilder.java?rev=772548&r1=772547&r2=772548&view=diff
==============================================================================
--- commons/proper/lang/trunk/src/java/org/apache/commons/lang/builder/EqualsBuilder.java
(original)
+++ commons/proper/lang/trunk/src/java/org/apache/commons/lang/builder/EqualsBuilder.java
Thu May  7 08:31:48 2009
@@ -318,7 +318,7 @@
         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];



Mime
View raw message