1
0
Fork 0
mirror of https://github.com/vanitasvitae/Smack.git synced 2025-09-09 09:09:38 +02:00

Add checkstyle rule for "Boolean.valueOf()" usages

This commit is contained in:
Florian Schmaus 2018-11-29 22:38:11 +01:00
parent dbfc123e5e
commit fa7297019d
4 changed files with 11 additions and 0 deletions

View file

@ -123,7 +123,9 @@ public class IntrospectionProvider{
case "java.lang.String":
return value;
case "boolean":
// CHECKSTYLE:OFF
return Boolean.valueOf(value);
// CHECKSTYLE:ON
case "int":
return Integer.valueOf(value);
case "long":