make Thread.interrupted static to match Java API

This commit is contained in:
Joel Dice 2012-05-11 13:23:19 -06:00
parent 90fae940a7
commit d0eda37a90

View File

@ -145,8 +145,8 @@ public class Thread implements Runnable {
private static native boolean interrupt(long peer);
public boolean interrupted() {
return interrupted(peer);
public static boolean interrupted() {
return interrupted(currentThread().peer);
}
private static native boolean interrupted(long peer);