Adding generics - LANG-336

git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@772541 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Henri Yandell 2009-05-07 08:12:25 +00:00
parent a373714575
commit 97631fd612
1 changed files with 2 additions and 2 deletions

View File

@ -355,7 +355,7 @@ public class CompareToBuilder {
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.comparison == 0; i++) {
Field f = fields[i];
@ -685,7 +685,7 @@ public class CompareToBuilder {
* with <code>lhs</code>
* @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;
}