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 00:06:51 UTC
[commons-dbutils] 05/13: Naming convention
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 f77d7736a81a0beca468626c9b1bb79f4e0ce314
Author: Gary Gregory <ga...@gmail.com>
AuthorDate: Mon Jul 31 19:47:16 2023 -0400
Naming convention
---
.../apache/commons/dbutils/wrappers/SqlNullCheckedResultSet.java | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/src/main/java/org/apache/commons/dbutils/wrappers/SqlNullCheckedResultSet.java b/src/main/java/org/apache/commons/dbutils/wrappers/SqlNullCheckedResultSet.java
index 5bfc1f5..350e26e 100644
--- a/src/main/java/org/apache/commons/dbutils/wrappers/SqlNullCheckedResultSet.java
+++ b/src/main/java/org/apache/commons/dbutils/wrappers/SqlNullCheckedResultSet.java
@@ -74,7 +74,7 @@ public class SqlNullCheckedResultSet implements InvocationHandler {
* Maps normal method names (ie. "getBigDecimal") to the corresponding null
* Method object (ie. getNullBigDecimal).
*/
- private static final Map<String, Method> nullMethods = new HashMap<>();
+ private static final Map<String, Method> NULL_METHODS = new HashMap<>();
/**
* The {@code getNull} string prefix.
@@ -89,7 +89,7 @@ public class SqlNullCheckedResultSet implements InvocationHandler {
if (methodName.startsWith(GET_NULL_PREFIX)) {
final String normalName = "get" + methodName.substring(GET_NULL_PREFIX.length());
- nullMethods.put(normalName, method);
+ NULL_METHODS.put(normalName, method);
}
}
}
@@ -387,7 +387,7 @@ public class SqlNullCheckedResultSet implements InvocationHandler {
final Object result = method.invoke(this.rs, args);
- final Method nullMethod = nullMethods.get(method.getName());
+ final Method nullMethod = NULL_METHODS.get(method.getName());
// Check nullMethod != null first so that we don't call wasNull()
// before a true getter method was invoked on the ResultSet.