File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed
src/main/java/com/github/_1c_syntax/bsl/languageserver/context/computer Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change 22
22
package com .github ._1c_syntax .bsl .languageserver .context .computer ;
23
23
24
24
import com .github ._1c_syntax .bsl .languageserver .context .DocumentContext ;
25
+ import com .github ._1c_syntax .bsl .languageserver .context .symbol .MethodSymbol ;
25
26
import com .github ._1c_syntax .bsl .languageserver .context .symbol .annotations .Annotation ;
26
27
import com .github ._1c_syntax .bsl .languageserver .context .symbol .annotations .AnnotationKind ;
27
28
import com .github ._1c_syntax .bsl .languageserver .diagnostics .metadata .DiagnosticCode ;
@@ -104,7 +105,7 @@ private void computeExtensionIgnorance() {
104
105
method -> method .getAnnotations ().stream ()
105
106
.map (Annotation ::getKind )
106
107
.anyMatch (kind -> kind == AnnotationKind .CHANGEANDVALIDATE )
107
- ).forEach (methodSymbol -> {
108
+ ).forEach (( MethodSymbol methodSymbol ) -> {
108
109
lines .put (methodSymbol .getRange ().getStart ().getLine (), true );
109
110
lines .put (methodSymbol .getRange ().getEnd ().getLine (), false );
110
111
});
@@ -124,7 +125,7 @@ private void computeExtensionIgnorance() {
124
125
125
126
for (Map .Entry <Integer , Boolean > entry : lines .entrySet ()) {
126
127
127
- if (entry .getValue ()) {
128
+ if (Boolean . TRUE . equals ( entry .getValue () )) {
128
129
tokenLine = entry .getKey ();
129
130
} else {
130
131
lastTokenLine = entry .getKey ();
You can’t perform that action at this time.
0 commit comments