Why is this <T extends Object>?
git-svn-id: https://samskivert.googlecode.com/svn/trunk@2775 6335cc39-0255-0410-8fd6-9bcaacd3b74c
This commit is contained in:
@@ -37,7 +37,7 @@ public class ArrayUtil
|
|||||||
*
|
*
|
||||||
* @return the index of the first matching value if one was found, -1 otherwise.
|
* @return the index of the first matching value if one was found, -1 otherwise.
|
||||||
*/
|
*/
|
||||||
public static <T extends Object> int indexOf (T[] values, T value)
|
public static <T> int indexOf (T[] values, T value)
|
||||||
{
|
{
|
||||||
int count = (values == null) ? 0 : values.length;
|
int count = (values == null) ? 0 : values.length;
|
||||||
for (int ii = 0; ii < count; ii++) {
|
for (int ii = 0; ii < count; ii++) {
|
||||||
|
|||||||
Reference in New Issue
Block a user