Skip to content

Commit

Permalink
Making Thread's isInterrupted() non-static and make it use the curren…
Browse files Browse the repository at this point in the history
…t instance's interrupted variable.
  • Loading branch information
Mike Keesey committed Dec 26, 2012
1 parent cad4719 commit 5061d7f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions classpath/java/lang/Thread.java
Expand Up @@ -151,8 +151,8 @@ public static boolean interrupted() {

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 {
Expand Down

0 comments on commit 5061d7f

Please sign in to comment.