This is an automated email from the ASF dual-hosted git repository.
ggregory pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/commons-lang.git
The following commit(s) were added to refs/heads/master by this push:
new 43b926e Processor.java: check enum euqality with == instead of
.equals() method (#690)
43b926e is described below
commit 43b926eef8d15b2d9f45a96d16ffb8de4a1e4fc4
Author: Ali K. Nouri <[email protected]>
AuthorDate: Sun Jan 3 11:12:45 2021 -0500
Processor.java: check enum euqality with == instead of .equals() method
(#690)
---
src/main/java/org/apache/commons/lang3/arch/Processor.java | 10 +++++-----
1 file changed, 5 insertions(+), 5 deletions(-)
diff --git a/src/main/java/org/apache/commons/lang3/arch/Processor.java
b/src/main/java/org/apache/commons/lang3/arch/Processor.java
index 563fefe..d825af7 100644
--- a/src/main/java/org/apache/commons/lang3/arch/Processor.java
+++ b/src/main/java/org/apache/commons/lang3/arch/Processor.java
@@ -149,7 +149,7 @@ public class Processor {
* @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 class Processor {
* @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 class Processor {
* @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 class Processor {
* @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 class Processor {
* @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;
}
}