mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
IDEA-73347 (Naming convention inspections options: fields "Min Length" and "Max Length" behave agains usability rules)
This commit is contained in:
@@ -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 =
|
||||
|
||||
Reference in New Issue
Block a user