Processor.java: check enum euqality with == instead of .equals() method (#690)

This commit is contained in:
Ali K. Nouri 2021-01-03 11:12:45 -05:00 committed by GitHub
parent e6e1682089
commit 43b926eef8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 5 additions and 5 deletions

View File

@ -149,7 +149,7 @@ public Type getType() {
* @return {@code true}, if {@link Processor} is {@link Arch#BIT_32}, else {@code false}.
*/
public boolean is32Bit() {
return Arch.BIT_32.equals(arch);
return Arch.BIT_32 == arch;
}
/**
@ -158,7 +158,7 @@ public boolean is32Bit() {
* @return {@code true}, if {@link Processor} is {@link Arch#BIT_64}, else {@code false}.
*/
public boolean is64Bit() {
return Arch.BIT_64.equals(arch);
return Arch.BIT_64 == arch;
}
/**
@ -167,7 +167,7 @@ public boolean is64Bit() {
* @return {@code true}, if {@link Processor} is {@link Type#X86}, else {@code false}.
*/
public boolean isX86() {
return Type.X86.equals(type);
return Type.X86 == type;
}
/**
@ -176,7 +176,7 @@ public boolean isX86() {
* @return {@code true}. if {@link Processor} is {@link Type#IA_64}, else {@code false}.
*/
public boolean isIA64() {
return Type.IA_64.equals(type);
return Type.IA_64 == type;
}
/**
@ -185,7 +185,7 @@ public boolean isIA64() {
* @return {@code true}. if {@link Processor} is {@link Type#PPC}, else {@code false}.
*/
public boolean isPPC() {
return Type.PPC.equals(type);
return Type.PPC == type;
}
}