Skip to content

Commit

Permalink
Better internal names
Browse files Browse the repository at this point in the history
Javadoc
  • Loading branch information
garydgregory committed Oct 19, 2023
1 parent 8310642 commit df14a8b
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -378,12 +378,12 @@ protected Number allocateNumber(Class type, final double value) {
// 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) {
Expand All @@ -395,7 +395,7 @@ protected Number allocateNumber(Class type, final double value) {
value));
}
catch (final Exception e) {
throw new JXPathTypeConversionException(classname, e);
throw new JXPathTypeConversionException(className, e);
}
}
return null;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ public static void registerXMLParser(final String model, final XMLParser parser)
* 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);
Expand Down

0 comments on commit df14a8b

Please sign in to comment.