From fe44a99852719ff842ff5ce08b5a37d9b0a0d7fb Mon Sep 17 00:00:00 2001 From: pascalschumacher Date: Thu, 26 Dec 2019 10:25:50 +0100 Subject: [PATCH] CompareToBuilder: Fix checkstyle violation. --- .../java/org/apache/commons/lang3/builder/CompareToBuilder.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/org/apache/commons/lang3/builder/CompareToBuilder.java b/src/main/java/org/apache/commons/lang3/builder/CompareToBuilder.java index 03ca98409..0988629e0 100644 --- a/src/main/java/org/apache/commons/lang3/builder/CompareToBuilder.java +++ b/src/main/java/org/apache/commons/lang3/builder/CompareToBuilder.java @@ -285,7 +285,7 @@ public class CompareToBuilder implements Builder { } Objects.requireNonNull(lhs, "lhs"); Objects.requireNonNull(rhs, "rhs"); - + Class lhsClazz = lhs.getClass(); if (!lhsClazz.isInstance(rhs)) { throw new ClassCastException();