You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@commons.apache.org by gg...@apache.org on 2023/07/12 12:44:45 UTC

[commons-lang] 01/04: Generics

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

commit 90666da627776724d89dc8c507179abb24de494c
Author: Gary Gregory <ga...@gmail.com>
AuthorDate: Wed Jul 12 08:24:40 2023 -0400

    Generics
---
 .../org/apache/commons/lang3/builder/ReflectionDiffBuilder.java   | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/src/main/java/org/apache/commons/lang3/builder/ReflectionDiffBuilder.java b/src/main/java/org/apache/commons/lang3/builder/ReflectionDiffBuilder.java
index 2ac3a3b5b..bacc0cb89 100644
--- a/src/main/java/org/apache/commons/lang3/builder/ReflectionDiffBuilder.java
+++ b/src/main/java/org/apache/commons/lang3/builder/ReflectionDiffBuilder.java
@@ -73,8 +73,8 @@ import org.apache.commons.lang3.reflect.FieldUtils;
  */
 public class ReflectionDiffBuilder<T> implements Builder<DiffResult<T>> {
 
-    private final Object left;
-    private final Object right;
+    private final T left;
+    private final T right;
     private final DiffBuilder<T> diffBuilder;
 
     /**
@@ -105,7 +105,7 @@ public class ReflectionDiffBuilder<T> implements Builder<DiffResult<T>> {
     public ReflectionDiffBuilder(final T lhs, final T rhs, final ToStringStyle style) {
         this.left = lhs;
         this.right = rhs;
-        diffBuilder = new DiffBuilder<>(lhs, rhs, style);
+        this.diffBuilder = new DiffBuilder<>(lhs, rhs, style);
     }
 
     /**
@@ -127,7 +127,7 @@ public class ReflectionDiffBuilder<T> implements Builder<DiffResult<T>> {
      * @return {@code this}
      * @since 3.13.0
      */
-    public ReflectionDiffBuilder setExcludeFieldNames(final String... excludeFieldNamesParam) {
+    public ReflectionDiffBuilder<T> setExcludeFieldNames(final String... excludeFieldNamesParam) {
         if (excludeFieldNamesParam == null) {
             this.excludeFieldNames = ArrayUtils.EMPTY_STRING_ARRAY;
         } else {