mirror of
https://github.com/1C-Company/v8-code-style.git
synced 2025-02-22 08:19:39 +02:00
Merge pull request #1320 from 1C-Company/G5V8DT-23514
G5V8DT-23514 Ошибка при попытке вызвать контекстную подсказку в bsl редакторе
This commit is contained in:
commit
2a99d35eaf
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user