20
20
21
21
import org .elasticsearch .common .Strings ;
22
22
import org .elasticsearch .common .xcontent .ContextParser ;
23
- import org .elasticsearch .common .xcontent .LoggingDeprecationHandler ;
23
+ import org .elasticsearch .common .xcontent .DeprecationHandler ;
24
24
import org .elasticsearch .common .xcontent .NamedXContentRegistry ;
25
25
import org .elasticsearch .common .xcontent .ToXContentObject ;
26
26
import org .elasticsearch .common .xcontent .XContentBuilder ;
@@ -50,7 +50,7 @@ public static ContextParser<Void, RuleScope> parser() {
50
50
Map <String , ?> value = (Map <String , ?>) entry .getValue ();
51
51
builder .map (value );
52
52
try (XContentParser scopeParser = XContentFactory .xContent (builder .contentType ()).createParser (
53
- NamedXContentRegistry .EMPTY , LoggingDeprecationHandler . INSTANCE , Strings .toString (builder ))) {
53
+ NamedXContentRegistry .EMPTY , DEPRECATION_HANDLER , Strings .toString (builder ))) {
54
54
scope .put (entry .getKey (), FilterRef .PARSER .parse (scopeParser , null ));
55
55
}
56
56
}
@@ -59,6 +59,15 @@ public static ContextParser<Void, RuleScope> parser() {
59
59
};
60
60
}
61
61
62
+ private static final DeprecationHandler DEPRECATION_HANDLER = new DeprecationHandler () {
63
+
64
+ @ Override
65
+ public void usedDeprecatedName (String usedName , String modernName ) {}
66
+
67
+ @ Override
68
+ public void usedDeprecatedField (String usedName , String replacedWith ) {}
69
+ };
70
+
62
71
private final Map <String , FilterRef > scope ;
63
72
64
73
public RuleScope () {
0 commit comments