Skip to content

Commit

Permalink
use equals as per feedback from pr
Browse files Browse the repository at this point in the history
  • Loading branch information
selamin committed Mar 30, 2017
1 parent 77777e9 commit 632161b
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ public final class Platform {
static {
boolean _unaligned;
String arch = System.getProperty("os.arch", "");
if (arch.matches("^(ppc64le | ppc64)$")) {
if (arch.equals("ppc64le") || arch.equals("ppc64")) {
// Since java.nio.Bits.unaligned() doesn't return true on ppc (See JDK-8165231), but ppc64 and ppc64le support it
_unaligned = true;
} else {
Expand Down

0 comments on commit 632161b

Please sign in to comment.