@ -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);
|
||||
}
|
||||
|
||||
|
||||
|
@ -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<>();
|
||||
|
||||
|
Reference in New Issue
Block a user