commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bay...@apache.org
Subject svn commit: r772541 - /commons/proper/lang/trunk/src/java/org/apache/commons/lang/builder/CompareToBuilder.java
Date Thu, 07 May 2009 08:12:34 GMT
Author: bayard
Date: Thu May  7 08:12:25 2009
New Revision: 772541

URL: http://svn.apache.org/viewvc?rev=772541&view=rev
Log:
Adding generics - LANG-336

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

Modified: commons/proper/lang/trunk/src/java/org/apache/commons/lang/builder/CompareToBuilder.java
URL: http://svn.apache.org/viewvc/commons/proper/lang/trunk/src/java/org/apache/commons/lang/builder/CompareToBuilder.java?rev=772541&r1=772540&r2=772541&view=diff
==============================================================================
--- commons/proper/lang/trunk/src/java/org/apache/commons/lang/builder/CompareToBuilder.java
(original)
+++ commons/proper/lang/trunk/src/java/org/apache/commons/lang/builder/CompareToBuilder.java
Thu May  7 08:12:25 2009
@@ -355,7 +355,7 @@
         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 @@
      *  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;
         }



Mime
View raw message