Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Making Thread's isInterrupted() non-static and make it use the curren…

…t instance's interrupted variable.
  • Loading branch information...
commit 5061d7fe4df365e8ca4f00511e782a4c08d7ed2d 1 parent cad4719
@mkeesey mkeesey authored
Showing with 2 additions and 2 deletions.
  1. +2 −2 classpath/java/lang/Thread.java
View
4 classpath/java/lang/Thread.java
@@ -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 {
Please sign in to comment.
Something went wrong with that request. Please try again.