@@ -9,12 +9,6 @@ public class NoOpProvider implements FeatureProvider {
99 public static final String PASSED_IN_DEFAULT = "Passed in default" ;
1010 @ Getter
1111 private final String name = "No-op Provider" ;
12- private EvaluationContext ctx ;
13-
14- public EvaluationContext getMergedContext () {
15- return ctx ;
16- }
17-
1812 @ Override
1913 public Metadata getMetadata () {
2014 return new Metadata () {
@@ -27,7 +21,6 @@ public String getName() {
2721
2822 @ Override
2923 public ProviderEvaluation <Boolean > getBooleanEvaluation (String key , Boolean defaultValue , EvaluationContext ctx , FlagEvaluationOptions options ) {
30- this .ctx = ctx ;
3124 return ProviderEvaluation .<Boolean >builder ()
3225 .value (defaultValue )
3326 .variant (PASSED_IN_DEFAULT )
@@ -37,7 +30,6 @@ public ProviderEvaluation<Boolean> getBooleanEvaluation(String key, Boolean defa
3730
3831 @ Override
3932 public ProviderEvaluation <String > getStringEvaluation (String key , String defaultValue , EvaluationContext ctx , FlagEvaluationOptions options ) {
40- this .ctx = ctx ;
4133 return ProviderEvaluation .<String >builder ()
4234 .value (defaultValue )
4335 .variant (PASSED_IN_DEFAULT )
@@ -47,7 +39,6 @@ public ProviderEvaluation<String> getStringEvaluation(String key, String default
4739
4840 @ Override
4941 public ProviderEvaluation <Integer > getIntegerEvaluation (String key , Integer defaultValue , EvaluationContext ctx , FlagEvaluationOptions options ) {
50- this .ctx = ctx ;
5142 return ProviderEvaluation .<Integer >builder ()
5243 .value (defaultValue )
5344 .variant (PASSED_IN_DEFAULT )
@@ -56,7 +47,6 @@ public ProviderEvaluation<Integer> getIntegerEvaluation(String key, Integer defa
5647 }
5748 @ Override
5849 public ProviderEvaluation <Double > getDoubleEvaluation (String key , Double defaultValue , EvaluationContext ctx , FlagEvaluationOptions options ) {
59- this .ctx = ctx ;
6050 return ProviderEvaluation .<Double >builder ()
6151 .value (defaultValue )
6252 .variant (PASSED_IN_DEFAULT )
@@ -65,7 +55,6 @@ public ProviderEvaluation<Double> getDoubleEvaluation(String key, Double default
6555 }
6656 @ Override
6757 public <T > ProviderEvaluation <T > getObjectEvaluation (String key , T defaultValue , EvaluationContext invocationContext , FlagEvaluationOptions options ) {
68- this .ctx = ctx ;
6958 return ProviderEvaluation .<T >builder ()
7059 .value (defaultValue )
7160 .variant (PASSED_IN_DEFAULT )
0 commit comments