From f166065b1949c3a6c64b768c246c68ef03ce7c78 Mon Sep 17 00:00:00 2001 From: Andrew Lalis Date: Thu, 4 Nov 2021 10:08:10 +0100 Subject: [PATCH] Added more checkstyle settings. --- checkstyle/checkstyle.xml | 14 ++++++++++++++ .../javabot2/config/ReflectionUtils.java | 1 + 2 files changed, 15 insertions(+) diff --git a/checkstyle/checkstyle.xml b/checkstyle/checkstyle.xml index c1dd314..f9b83be 100644 --- a/checkstyle/checkstyle.xml +++ b/checkstyle/checkstyle.xml @@ -2,6 +2,11 @@ + @@ -80,5 +85,14 @@ + + + + + + + + + \ No newline at end of file diff --git a/src/main/java/net/javadiscord/javabot2/config/ReflectionUtils.java b/src/main/java/net/javadiscord/javabot2/config/ReflectionUtils.java index af5ac78..7f696a8 100644 --- a/src/main/java/net/javadiscord/javabot2/config/ReflectionUtils.java +++ b/src/main/java/net/javadiscord/javabot2/config/ReflectionUtils.java @@ -17,6 +17,7 @@ @Slf4j public class ReflectionUtils { private static final Map, Function> propertyTypeParsers = new HashMap<>(); + static { propertyTypeParsers.put(Integer.class, Integer::parseInt); propertyTypeParsers.put(int.class, Integer::parseInt);