IDEA-73347 (Naming convention inspections options: fields "Min Length" and "Max Length" behave agains usability rules)

This commit is contained in:
Bas Leijdekkers
2011-09-16 11:09:13 +02:00
parent 56ea7a4598
commit 1007d4d7c7
2 changed files with 4 additions and 4 deletions
@@ -1120,8 +1120,8 @@ constant.naming.convention.problem.descriptor.long=Constant name <code>#ref</cod
constant.naming.convention.problem.descriptor.regex.mismatch=Constant <code>#ref</code> doesn''t match regex ''{0}'' #loc
constant.naming.convention.immutables.option=Only check static final fields with immutable types
convention.pattern.option=Pattern:
convention.min.length.option=Min Length:
convention.max.length.option=Max Length:
convention.min.length.option=Min length:
convention.max.length.option=Max length:
enumerated.class.naming.convention.problem.descriptor.short=Enumerated class name <code>#ref</code> is too short #loc
enumerated.class.naming.convention.problem.descriptor.long=Enumerated class name <code>#ref</code> is too long #loc
enumerated.class.naming.convention.problem.descriptor.regex.mismatch=Enumerated class name <code>#ref</code> doesn''t match regex ''{0}'' #loc
@@ -1,5 +1,5 @@
/*
* Copyright 2003-2009 Dave Griffith, Bas Leijdekkers
* Copyright 2003-2011 Dave Griffith, Bas Leijdekkers
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@@ -119,7 +119,7 @@ public abstract class ConventionInspection extends BaseInspection {
numberFormat.setMaximumIntegerDigits(2);
final InternationalFormatter formatter =
new InternationalFormatter(numberFormat);
formatter.setAllowsInvalid(false);
formatter.setAllowsInvalid(true);
formatter.setCommitsOnValidEdit(true);
final JFormattedTextField minLengthField =