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/08/01 14:53:43 UTC

[commons-dbutils] 08/15: Format tweak

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 3360324b3fbed356b8e8a3046117ac3876812246
Author: Gary Gregory <ga...@gmail.com>
AuthorDate: Tue Aug 1 10:27:15 2023 -0400

    Format tweak
---
 src/main/java/org/apache/commons/dbutils/BeanProcessor.java | 10 ++++------
 1 file changed, 4 insertions(+), 6 deletions(-)

diff --git a/src/main/java/org/apache/commons/dbutils/BeanProcessor.java b/src/main/java/org/apache/commons/dbutils/BeanProcessor.java
index 2890726..0ed1b9a 100644
--- a/src/main/java/org/apache/commons/dbutils/BeanProcessor.java
+++ b/src/main/java/org/apache/commons/dbutils/BeanProcessor.java
@@ -139,16 +139,14 @@ public class BeanProcessor {
 
             // Don't call setter if the value object isn't the right type
             if (!this.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
+                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
             }
             setter.invoke(target, value);
 
         } catch (final IllegalArgumentException | IllegalAccessException | InvocationTargetException e) {
-            throw new SQLException(
-                "Cannot set " + prop.getName() + ": " + e.getMessage());
+            throw new SQLException("Cannot set " + prop.getName() + ": " + e.getMessage());
         }
     }