Making Thread's isInterrupted() non-static and make it use the current instance's interrupted variable.

This commit is contained in:
Mike Keesey 2012-12-25 18:12:03 -07:00
parent cad4719f7d
commit 5061d7fe4d

View File

@ -151,8 +151,8 @@ public class Thread implements Runnable {
private static native boolean interrupted(long peer);
public static boolean isInterrupted() {
return currentThread().interrupted;
public boolean isInterrupted() {
return interrupted;
}
public static void sleep(long milliseconds) throws InterruptedException {