Skip to content

Commit

Permalink
improve isWindows method in HashedWheelTimer (apache#6845)
Browse files Browse the repository at this point in the history
  • Loading branch information
zx844174097 authored Oct 30, 2020
1 parent 4a8da59 commit c0a205f
Showing 1 changed file with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -805,8 +805,10 @@ private HashedWheelTimeout pollTimeout() {
return head;
}
}


private static final boolean IS_OS_WINDOWS = System.getProperty("os.name", "").toLowerCase(Locale.US).contains("win");

private boolean isWindows() {
return System.getProperty("os.name", "").toLowerCase(Locale.US).contains("win");
return IS_OS_WINDOWS;
}
}

0 comments on commit c0a205f

Please sign in to comment.