From 43b926eef8d15b2d9f45a96d16ffb8de4a1e4fc4 Mon Sep 17 00:00:00 2001 From: "Ali K. Nouri" Date: Sun, 3 Jan 2021 11:12:45 -0500 Subject: [PATCH] Processor.java: check enum euqality with == instead of .equals() method (#690) --- .../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 563fefeb7..d825af7dd 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 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; } }