1
0
Fork 0
mirror of https://github.com/vanitasvitae/Smack.git synced 2025-09-09 17:19:39 +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

@ -104,7 +104,9 @@ public class WorkgroupProperties extends IQ {
while (!done) {
int eventType = parser.next();
if ((eventType == XmlPullParser.START_TAG) && ("authRequired".equals(parser.getName()))) {
// CHECKSTYLE:OFF
props.setAuthRequired(Boolean.valueOf(parser.nextText()).booleanValue());
// CHECKSTYLE:ON
}
else if ((eventType == XmlPullParser.START_TAG) && ("email".equals(parser.getName()))) {
props.setEmail(parser.nextText());