mirror of
https://github.com/corda/corda.git
synced 2025-01-06 05:04:20 +00:00
make Thread.interrupted static to match Java API
This commit is contained in:
parent
90fae940a7
commit
d0eda37a90
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user