Skip to content

Commit

Permalink
Исправление ClassCastException
Browse files Browse the repository at this point in the history
  • Loading branch information
marmyshev committed Jul 15, 2022
1 parent 89b94b0 commit b04602d
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ protected void check(Object object, ResultAcceptor resultAcceptor, ICheckParamet
{
return;
}
FeatureAccess tempFile = (FeatureAccess)statement.getLeft();
Expression tempFile = statement.getLeft();
String tempFileName = getFullFeatureAccessName(tempFile);

if (!monitor.isCanceled() && tempFileName != null && checkFileCloses(sfa, parameters, tempFileName))
Expand Down Expand Up @@ -154,17 +154,17 @@ private boolean checkParameterInList(FeatureAccess featureAccess, String paramet
{
if (parameter instanceof FeatureAccess)
{
String faParameterName = getFullFeatureAccessName((FeatureAccess)parameter);
String faParameterName = getFullFeatureAccessName(parameter);
return faParameterName != null && faParameterName.equals(parameterName);
}
}
return false;
}

private String getFullFeatureAccessName(FeatureAccess featureAccess)
private String getFullFeatureAccessName(Expression tempFile)
{
StringBuilder builder = new StringBuilder();
Expression expression = featureAccess;
Expression expression = tempFile;

while (expression instanceof DynamicFeatureAccess)
{
Expand Down

0 comments on commit b04602d

Please sign in to comment.