Fix shadowed vars pt4 (#80842)

Part of #19752. Fix more instances where local variable names were shadowing field names.
This commit is contained in:
Rory Hunter 2021-11-18 19:59:33 +00:00 committed by GitHub
parent 89bbac9216
commit 754393d352
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
34 changed files with 187 additions and 183 deletions

View file

@ -49,7 +49,7 @@ public class ExpressionFieldScriptTests extends ESTestCase {
when(fieldData.load(any())).thenReturn(atomicFieldData);
service = new ExpressionScriptEngine();
lookup = new SearchLookup(field -> field.equals("field") ? fieldType : null, (ignored, lookup) -> fieldData);
lookup = new SearchLookup(field -> field.equals("field") ? fieldType : null, (ignored, _lookup) -> fieldData);
}
private FieldScript.LeafFactory compile(String expression) {

View file

@ -50,7 +50,7 @@ public class ExpressionNumberSortScriptTests extends ESTestCase {
when(fieldData.load(any())).thenReturn(atomicFieldData);
service = new ExpressionScriptEngine();
lookup = new SearchLookup(field -> field.equals("field") ? fieldType : null, (ignored, lookup) -> fieldData);
lookup = new SearchLookup(field -> field.equals("field") ? fieldType : null, (ignored, _lookup) -> fieldData);
}
private NumberSortScript.LeafFactory compile(String expression) {

View file

@ -49,7 +49,7 @@ public class ExpressionTermsSetQueryTests extends ESTestCase {
when(fieldData.load(any())).thenReturn(atomicFieldData);
service = new ExpressionScriptEngine();
lookup = new SearchLookup(field -> field.equals("field") ? fieldType : null, (ignored, lookup) -> fieldData);
lookup = new SearchLookup(field -> field.equals("field") ? fieldType : null, (ignored, _lookup) -> fieldData);
}
private TermsSetQueryScript.LeafFactory compile(String expression) {