mirror of
https://github.com/1C-Company/v8-code-style.git
synced 2024-12-03 03:09:03 +02:00
Исправление на регистронезависимое сравнение
This commit is contained in:
parent
1ec3a3d73f
commit
a2ed08cdcd
@ -100,13 +100,14 @@ public class ModuleStructureEventRegionsCheck
|
||||
|
||||
String name = region.get().getName();
|
||||
String eventHandlersName = ModuleStructureSection.EVENT_HANDLERS.getName(scriptVariant);
|
||||
if (eventHandlersName.equals(name) && !method.isEvent())
|
||||
if (eventHandlersName.equalsIgnoreCase(name) && !method.isEvent())
|
||||
{
|
||||
resultAceptor.addIssue(
|
||||
MessageFormat.format(Messages.ModuleStructureEventRegionsCheck_Only_event_methods__0, name),
|
||||
McorePackage.Literals.NAMED_ELEMENT__NAME);
|
||||
}
|
||||
else if (!ModuleType.COMMON_MODULE.equals(moduleType) && !eventHandlersName.equals(name) && method.isEvent())
|
||||
else if (!ModuleType.COMMON_MODULE.equals(moduleType) && !eventHandlersName.equalsIgnoreCase(name)
|
||||
&& method.isEvent())
|
||||
{
|
||||
resultAceptor.addIssue(
|
||||
MessageFormat.format(Messages.ModuleStructureEventRegionsCheck_Event_handler__0__not_region__1,
|
||||
|
Loading…
Reference in New Issue
Block a user