From cbd61d6846af5d48fbb1c34b60a5c74a94f71901 Mon Sep 17 00:00:00 2001 From: Elliott Hughes Date: Mon, 13 May 2013 13:32:03 -0700 Subject: Fix Short.compare. Bug: 3484927 Change-Id: I53fbed8d7060556ade960174d567e975ebc70928 --- luni/src/main/java/java/lang/Short.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'luni') diff --git a/luni/src/main/java/java/lang/Short.java b/luni/src/main/java/java/lang/Short.java index 1101805..e07b568 100644 --- a/luni/src/main/java/java/lang/Short.java +++ b/luni/src/main/java/java/lang/Short.java @@ -114,7 +114,7 @@ public final class Short extends Number implements Comparable { * @since 1.7 * @hide 1.7 */ - public static int compare(long lhs, long rhs) { + public static int compare(short lhs, short rhs) { return lhs > rhs ? 1 : (lhs < rhs ? -1 : 0); } -- cgit v1.1