mirror of
https://github.com/1C-Company/v8-code-style.git
synced 2025-02-03 18:02:08 +02:00
Исправление замечаний Sonar
This commit is contained in:
parent
68014a2942
commit
2c40e4b842
@ -96,7 +96,6 @@ public class SortJob
|
||||
if (monitor.isCanceled())
|
||||
{
|
||||
workspaceOrchestrator.cancelOperation(handler);
|
||||
return Status.CANCEL_STATUS;
|
||||
}
|
||||
else
|
||||
{
|
||||
@ -104,6 +103,10 @@ public class SortJob
|
||||
}
|
||||
}
|
||||
|
||||
if (monitor.isCanceled())
|
||||
{
|
||||
return Status.CANCEL_STATUS;
|
||||
}
|
||||
return Status.OK_STATUS;
|
||||
}
|
||||
|
||||
|
@ -210,8 +210,8 @@ public class FunctionCtorReturnSectionCheck
|
||||
.filter(t -> McoreUtil.getTypeName(t.getSecond()).equals(returnTypeName))
|
||||
.findAny();
|
||||
|
||||
checkTypeProperties(method, statment, isRussianScript, returnType, declaredProperties.get(),
|
||||
typeProperties.get(), resultAceptor);
|
||||
checkTypeProperties(method, statment, isRussianScript, returnType,
|
||||
declaredProperties.orElse(null), typeProperties.orElse(null), resultAceptor);
|
||||
}
|
||||
}
|
||||
else if (isWarningReturnNonDeclaredType(method, returnSection, returnType, computedReturnTypes))
|
||||
|
Loading…
x
Reference in New Issue
Block a user