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-dbutils.git

commit 1f263c8a98acb62db289e3e89f7780b6a9f48679
Author: Gary Gregory <garydgreg...@gmail.com>
AuthorDate: Tue Jul 9 10:22:52 2024 -0400

    Remove redundant keywords
---
 .../java/org/apache/commons/dbutils/BeanProcessor.java     | 14 +++++++-------
 1 file changed, 7 insertions(+), 7 deletions(-)

diff --git a/src/main/java/org/apache/commons/dbutils/BeanProcessor.java 
b/src/main/java/org/apache/commons/dbutils/BeanProcessor.java
index 1d8c649..282e913 100644
--- a/src/main/java/org/apache/commons/dbutils/BeanProcessor.java
+++ b/src/main/java/org/apache/commons/dbutils/BeanProcessor.java
@@ -138,7 +138,7 @@ public class BeanProcessor {
             }
 
             // Don't call setter if the value object isn't the right type
-            if (!this.isCompatibleType(value, firstParam)) {
+            if (!isCompatibleType(value, firstParam)) {
                 throw new SQLException(
                         "Cannot set " + prop.getName() + ": incompatible 
types, cannot convert " + value.getClass().getName() + " to " + 
firstParam.getName());
                 // value cannot be null here because isCompatibleType allows 
null
@@ -321,9 +321,9 @@ public class BeanProcessor {
      * @throws SQLException if a database error occurs.
      */
     public <T> T populateBean(final ResultSet resultSet, final T bean) throws 
SQLException {
-        final PropertyDescriptor[] props = 
this.propertyDescriptors(bean.getClass());
+        final PropertyDescriptor[] props = 
propertyDescriptors(bean.getClass());
         final ResultSetMetaData rsmd = resultSet.getMetaData();
-        final int[] columnToProperty = this.mapColumnsToProperties(rsmd, 
props);
+        final int[] columnToProperty = mapColumnsToProperties(rsmd, props);
 
         return populateBean(resultSet, bean, props, columnToProperty);
     }
@@ -354,14 +354,14 @@ public class BeanProcessor {
 
             Object value = null;
             if (propType != null) {
-                value = this.processColumn(resultSet, i, propType);
+                value = processColumn(resultSet, i, propType);
 
                 if (value == null && propType.isPrimitive()) {
                     value = PRIMITIVE_DEFAULTS.get(propType);
                 }
             }
 
-            this.callSetter(bean, prop, value);
+            callSetter(bean, prop, value);
         }
 
         return bean;
@@ -512,9 +512,9 @@ public class BeanProcessor {
         if (!resultSet.next()) {
             return results;
         }
-        final PropertyDescriptor[] props = this.propertyDescriptors(type);
+        final PropertyDescriptor[] props = propertyDescriptors(type);
         final ResultSetMetaData rsmd = resultSet.getMetaData();
-        final int[] columnToProperty = this.mapColumnsToProperties(rsmd, 
props);
+        final int[] columnToProperty = mapColumnsToProperties(rsmd, props);
         do {
             results.add(this.createBean(resultSet, type, props, 
columnToProperty));
         } while (resultSet.next()); // NOPMD False positive CheckResultSet

Reply via email to