mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
SSR: fix "can't replace expressions with statements" warning and reverse
This commit is contained in:
+1
-1
@@ -437,7 +437,7 @@ public class JavaStructuralSearchProfile extends StructuralSearchProfile {
|
||||
boolean targetFound = false;
|
||||
for (final String name : matchOptions.getVariableConstraintNames()) {
|
||||
final MatchVariableConstraint constraint = matchOptions.getVariableConstraint(name);
|
||||
if (constraint.isPartOfSearchResults()) {
|
||||
if (constraint.isPartOfSearchResults() && !Configuration.CONTEXT_VAR_NAME.equals(constraint.getName())) {
|
||||
targetFound = true;
|
||||
break;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user