1
0
mirror of https://github.com/1C-Company/v8-code-style.git synced 2025-02-22 16:25:25 +02:00

Merge pull request #1320 from 1C-Company/G5V8DT-23514

G5V8DT-23514 Ошибка при попытке вызвать контекстную подсказку в bsl редакторе
This commit is contained in:
Dmitriy Marmyshev 2023-04-20 13:12:08 -07:00 committed by GitHub
commit 2a99d35eaf
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -102,7 +102,8 @@ public final class ModuleUnusedMethodCheck
IModuleExtensionService service = IModuleExtensionServiceProvider.INSTANCE.getModuleExtensionService();
String excludeNamePattern = parameters.getString(EXCLUDE_METHOD_NAME_PATTERN_PARAMETER_NAME);
Predicate<? super Method> predicate = method -> !method.isUsed() && !method.isExport() && !method.isEvent()
Predicate<? super Method> predicate = method -> method.getName() != null && !method.isUsed()
&& !method.isExport() && !method.isEvent()
&& service.getSourceMethodNames(method).isEmpty() && !isExcludeName(method.getName(), excludeNamePattern);
// TODO - only full validation first, optimization later