harmony-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ndbe...@apache.org
Subject svn commit: r415059 - /incubator/harmony/enhanced/classlib/trunk/modules/luni/src/main/java/org/apache/harmony/luni/util/Sorter.java
Date Sat, 17 Jun 2006 20:33:59 GMT
Author: ndbeyer
Date: Sat Jun 17 13:33:58 2006
New Revision: 415059

URL: http://svn.apache.org/viewvc?rev=415059&view=rev
Log:
Deprecate unnecessary class

Modified:
    incubator/harmony/enhanced/classlib/trunk/modules/luni/src/main/java/org/apache/harmony/luni/util/Sorter.java

Modified: incubator/harmony/enhanced/classlib/trunk/modules/luni/src/main/java/org/apache/harmony/luni/util/Sorter.java
URL: http://svn.apache.org/viewvc/incubator/harmony/enhanced/classlib/trunk/modules/luni/src/main/java/org/apache/harmony/luni/util/Sorter.java?rev=415059&r1=415058&r2=415059&view=diff
==============================================================================
--- incubator/harmony/enhanced/classlib/trunk/modules/luni/src/main/java/org/apache/harmony/luni/util/Sorter.java
(original)
+++ incubator/harmony/enhanced/classlib/trunk/modules/luni/src/main/java/org/apache/harmony/luni/util/Sorter.java
Sat Jun 17 13:33:58 2006
@@ -15,14 +15,14 @@
 
 package org.apache.harmony.luni.util;
 
-
 import java.util.Arrays;
 
 /**
  * Helper class with methods for sorting arrays.
+ * @deprecated Use Comparator and Arrays.sort().
  */
 public final class Sorter {
-	public interface Comparator extends java.util.Comparator {
+	public interface Comparator<T> extends java.util.Comparator<T> {
 	}
 
 	/**
@@ -33,7 +33,7 @@
 	 * @param comp
 	 *            A Comparator to be used to sort the elements
 	 */
-	public static void sort(Object[] objs, Comparator comp) {
+	public static <T> void sort(T[] objs, Comparator<T> comp) {
 		Arrays.sort(objs, comp);
 	}
 



Mime
View raw message