1
0
mirror of https://github.com/1C-Company/v8-code-style.git synced 2024-12-03 19:26:38 +02:00

Исправление на регистронезависимое сравнение

This commit is contained in:
Artem Iliukhin 2022-08-09 23:53:32 +03:00
parent 1ec3a3d73f
commit a2ed08cdcd

View File

@ -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,