Skip to content
This repository was archived by the owner on Dec 1, 2021. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 14 additions & 0 deletions checkstyle/checkstyle.xml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,11 @@
<!DOCTYPE module PUBLIC
"-//Checkstyle//DTD Checkstyle Configuration 1.3//EN"
"https://checkstyle.org/dtds/configuration_1_3.dtd">
<!--
This document defines the code style checks that are performed on source code
in this repository. This ensures a uniform style and minimum code quality.
See https://checkstyle.org/ for more information.
-->
<module name="Checker">
<module name="TreeWalker">
<property name="fileExtensions" value="java"/>
Expand Down Expand Up @@ -80,5 +85,14 @@
<module name="MethodLength">
<property name="max" value="50"/>
</module>
<module name="MissingOverride"/>
<module name="EmptyForInitializerPad"/>
<module name="EmptyForIteratorPad"/>
<module name="EmptyLineSeparator">
<property name="allowNoEmptyLineBetweenFields" value="true"/>
</module>
<module name="GenericWhitespace"/>
<module name="MethodParamPad"/>
<module name="TypecastParenPad"/>
</module>
</module>
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
@Slf4j
public class ReflectionUtils {
private static final Map<Class<?>, Function<String, Object>> propertyTypeParsers = new HashMap<>();

static {
propertyTypeParsers.put(Integer.class, Integer::parseInt);
propertyTypeParsers.put(int.class, Integer::parseInt);
Expand Down