CompareToBuilder: Fix checkstyle violation.

This commit is contained in:
pascalschumacher 2019-12-26 10:25:50 +01:00
parent 3744263970
commit fe44a99852
1 changed files with 1 additions and 1 deletions

View File

@ -285,7 +285,7 @@ public class CompareToBuilder implements Builder<Integer> {
}
Objects.requireNonNull(lhs, "lhs");
Objects.requireNonNull(rhs, "rhs");
Class<?> lhsClazz = lhs.getClass();
if (!lhsClazz.isInstance(rhs)) {
throw new ClassCastException();