Merge branch 'wrongly_boxing' into master

Refs #2725
This commit is contained in:
Clément Fournier
2020-08-24 20:16:52 +02:00
2 changed files with 2 additions and 2 deletions

View File

@ -33,7 +33,7 @@ public final class BooleanProperty extends AbstractSingleValueProperty<Boolean>
*/
@Deprecated
public BooleanProperty(String theName, String theDescription, String defaultBoolStr, float theUIOrder) {
this(theName, theDescription, Boolean.valueOf(defaultBoolStr), theUIOrder, false);
this(theName, theDescription, Boolean.parseBoolean(defaultBoolStr), theUIOrder, false);
}

View File

@ -93,7 +93,7 @@ public class GenericClassCounterRule extends AbstractJavaRule {
this.operand = getProperty(OPERAND_DESCRIPTOR);
this.typesMatch = RegexHelper.compilePatternsFromList(getProperty(TYPE_MATCH_DESCRIPTOR));
String thresholdAsString = getProperty(THRESHOLD_DESCRIPTOR);
this.threshold = Integer.valueOf(thresholdAsString);
this.threshold = Integer.parseInt(thresholdAsString);
// Initializing list of match
this.matches = new ArrayList<>();