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-jxpath.git
The following commit(s) were added to refs/heads/master by this push: new df14a8b Better internal names df14a8b is described below commit df14a8bcd973015da136a744a9c72e8986b31c98 Author: Gary Gregory <garydgreg...@gmail.com> AuthorDate: Thu Oct 19 07:35:28 2023 -0400 Better internal names Javadoc --- .../java/org/apache/commons/jxpath/util/BasicTypeConverter.java | 8 ++++---- .../java/org/apache/commons/jxpath/xml/DocumentContainer.java | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/src/main/java/org/apache/commons/jxpath/util/BasicTypeConverter.java b/src/main/java/org/apache/commons/jxpath/util/BasicTypeConverter.java index 482de3d..91a45fa 100644 --- a/src/main/java/org/apache/commons/jxpath/util/BasicTypeConverter.java +++ b/src/main/java/org/apache/commons/jxpath/util/BasicTypeConverter.java @@ -378,12 +378,12 @@ public class BasicTypeConverter implements TypeConverter { // TODO ? https://pmd.sourceforge.io/pmd-6.50.0/pmd_rules_java_errorprone.html#avoiddecimalliteralsinbigdecimalconstructor return new BigDecimal(value); // NOPMD } - final String classname = type.getName(); + final String className = type.getName(); Class initialValueType = null; - if ("java.util.concurrent.atomic.AtomicInteger".equals(classname)) { + if ("java.util.concurrent.atomic.AtomicInteger".equals(className)) { initialValueType = int.class; } - if ("java.util.concurrent.atomic.AtomicLong".equals(classname)) { + if ("java.util.concurrent.atomic.AtomicLong".equals(className)) { initialValueType = long.class; } if (initialValueType != null) { @@ -395,7 +395,7 @@ public class BasicTypeConverter implements TypeConverter { value)); } catch (final Exception e) { - throw new JXPathTypeConversionException(classname, e); + throw new JXPathTypeConversionException(className, e); } } return null; diff --git a/src/main/java/org/apache/commons/jxpath/xml/DocumentContainer.java b/src/main/java/org/apache/commons/jxpath/xml/DocumentContainer.java index c1d929a..9d55d9c 100644 --- a/src/main/java/org/apache/commons/jxpath/xml/DocumentContainer.java +++ b/src/main/java/org/apache/commons/jxpath/xml/DocumentContainer.java @@ -73,7 +73,7 @@ public class DocumentContainer extends XMLParser2 implements Container { * Add a class of a custom XML parser. * Parsers for the models "DOM" and "JDOM" are pre-registered. * @param model model name - * @param parserClassName parser classname + * @param parserClassName parser class name */ public static void registerXMLParser(final String model, final String parserClassName) { parserClasses.put(model, parserClassName);