mirror of
https://github.com/1C-Company/v8-code-style.git
synced 2024-12-04 19:45:05 +02:00
Исправлены ошибки checkstyle
This commit is contained in:
parent
74e859fc40
commit
2bab3e7423
@ -181,13 +181,17 @@ public class EventDataExchangeLoadCheck
|
|||||||
Conditional conditional = statementMethod.getIfPart();
|
Conditional conditional = statementMethod.getIfPart();
|
||||||
Expression predicate = conditional.getPredicate();
|
Expression predicate = conditional.getPredicate();
|
||||||
if (predicate instanceof DynamicFeatureAccess)
|
if (predicate instanceof DynamicFeatureAccess)
|
||||||
|
{
|
||||||
return checkDynamicFeatureAccess((DynamicFeatureAccess)predicate, checkCalls);
|
return checkDynamicFeatureAccess((DynamicFeatureAccess)predicate, checkCalls);
|
||||||
|
}
|
||||||
else if (predicate instanceof Invocation)
|
else if (predicate instanceof Invocation)
|
||||||
{
|
{
|
||||||
FeatureAccess expression = ((Invocation)predicate).getMethodAccess();
|
FeatureAccess expression = ((Invocation)predicate).getMethodAccess();
|
||||||
if (expression instanceof DynamicFeatureAccess
|
if (expression instanceof DynamicFeatureAccess
|
||||||
&& checkDynamicFeatureAccess((DynamicFeatureAccess)expression, checkCalls))
|
&& checkDynamicFeatureAccess((DynamicFeatureAccess)expression, checkCalls))
|
||||||
|
{
|
||||||
return true;
|
return true;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
else if (predicate instanceof BinaryExpression)
|
else if (predicate instanceof BinaryExpression)
|
||||||
{
|
{
|
||||||
@ -197,10 +201,14 @@ public class EventDataExchangeLoadCheck
|
|||||||
{
|
{
|
||||||
Expression expression = temp.getKey();
|
Expression expression = temp.getKey();
|
||||||
if (expression instanceof Invocation)
|
if (expression instanceof Invocation)
|
||||||
|
{
|
||||||
expression = ((Invocation)expression).getMethodAccess();
|
expression = ((Invocation)expression).getMethodAccess();
|
||||||
|
}
|
||||||
if (expression instanceof DynamicFeatureAccess
|
if (expression instanceof DynamicFeatureAccess
|
||||||
&& checkDynamicFeatureAccess((DynamicFeatureAccess)expression, checkCalls))
|
&& checkDynamicFeatureAccess((DynamicFeatureAccess)expression, checkCalls))
|
||||||
|
{
|
||||||
return true;
|
return true;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -261,7 +269,9 @@ public class EventDataExchangeLoadCheck
|
|||||||
|
|
||||||
BinaryExpression currentExpression = null;
|
BinaryExpression currentExpression = null;
|
||||||
if (binaryLeft instanceof BinaryExpression)
|
if (binaryLeft instanceof BinaryExpression)
|
||||||
|
{
|
||||||
currentExpression = (BinaryExpression)binaryLeft;
|
currentExpression = (BinaryExpression)binaryLeft;
|
||||||
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
mapOperatorOperand.put(binaryLeft, tempOperation);
|
mapOperatorOperand.put(binaryLeft, tempOperation);
|
||||||
@ -275,9 +285,13 @@ public class EventDataExchangeLoadCheck
|
|||||||
tempOperation = currentExpression.getOperation();
|
tempOperation = currentExpression.getOperation();
|
||||||
mapOperatorOperand.put(temp, tempOperation);
|
mapOperatorOperand.put(temp, tempOperation);
|
||||||
if (binaryLeft instanceof BinaryExpression)
|
if (binaryLeft instanceof BinaryExpression)
|
||||||
|
{
|
||||||
currentExpression = (BinaryExpression)binaryLeft;
|
currentExpression = (BinaryExpression)binaryLeft;
|
||||||
|
}
|
||||||
else
|
else
|
||||||
|
{
|
||||||
currentExpression = null;
|
currentExpression = null;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
mapOperatorOperand.put(binaryLeft, tempOperation);
|
mapOperatorOperand.put(binaryLeft, tempOperation);
|
||||||
|
Loading…
Reference in New Issue
Block a user