From 97631fd6125b22853b08f0ad47c041258c6f0754 Mon Sep 17 00:00:00 2001 From: Henri Yandell Date: Thu, 7 May 2009 08:12:25 +0000 Subject: [PATCH] Adding generics - LANG-336 git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@772541 13f79535-47bb-0310-9956-ffa450edef68 --- .../org/apache/commons/lang/builder/CompareToBuilder.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/java/org/apache/commons/lang/builder/CompareToBuilder.java b/src/java/org/apache/commons/lang/builder/CompareToBuilder.java index 05bb1914b..6d0f48ada 100644 --- a/src/java/org/apache/commons/lang/builder/CompareToBuilder.java +++ b/src/java/org/apache/commons/lang/builder/CompareToBuilder.java @@ -355,7 +355,7 @@ public class CompareToBuilder { String[] excludeFields) { Field[] fields = clazz.getDeclaredFields(); - List excludedFieldList = excludeFields != null ? Arrays.asList(excludeFields) : Collections.EMPTY_LIST; + List excludedFieldList = excludeFields != null ? Arrays.asList(excludeFields) : Collections.emptyList(); AccessibleObject.setAccessible(fields, true); for (int i = 0; i < fields.length && builder.comparison == 0; i++) { Field f = fields[i]; @@ -685,7 +685,7 @@ public class CompareToBuilder { * with lhs * @since 2.0 */ - public CompareToBuilder append(Object[] lhs, Object[] rhs, Comparator comparator) { + public CompareToBuilder append(Object[] lhs, Object[] rhs, Comparator comparator) { if (comparison != 0) { return this; }