Processor.java: check enum euqality with == instead of .equals() method (#690)
This commit is contained in:
parent
e6e1682089
commit
43b926eef8
|
@ -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;
|
||||
}
|
||||
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue