1
0
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:
Dmitriy Marmyshev 2021-10-11 16:52:25 +03:00
parent 68014a2942
commit 2c40e4b842
2 changed files with 6 additions and 3 deletions

View File

@ -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;
}

View File

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