@@ -165,7 +165,7 @@ void emptyApiHooks() {
165
165
doThrow (RuntimeException .class ).when (h ).finallyAfter (any (), any ());
166
166
167
167
OpenFeatureAPI api = OpenFeatureAPI .getInstance ();
168
- api .setProvider (new NoOpProvider <> ());
168
+ api .setProvider (new NoOpProvider ());
169
169
Client c = api .getClient ();
170
170
171
171
assertThrows (RuntimeException .class , () -> c .getBooleanValue ("key" , false , null , FlagEvaluationOptions .builder ().hook (h ).build ()));
@@ -292,7 +292,7 @@ void finallyAfter(HookContext<Boolean> ctx, ImmutableMap<String, Object> hints)
292
292
@ Specification (spec ="hooks" , number ="6.1" , text ="HookHints MUST passed between each hook." )
293
293
@ Test void hook_hints () {
294
294
OpenFeatureAPI api = OpenFeatureAPI .getInstance ();
295
- api .setProvider (new NoOpProvider <> ());
295
+ api .setProvider (new NoOpProvider ());
296
296
Client client = api .getClient ();
297
297
Hook <Boolean > mutatingHook = new Hook <Boolean >() {
298
298
@ Override
@@ -359,7 +359,7 @@ void finallyAfter(HookContext<Boolean> ctx, ImmutableMap<String, Object> hints)
359
359
Hook hook = mock (Hook .class );
360
360
doThrow (RuntimeException .class ).when (hook ).before (any (), any ());
361
361
OpenFeatureAPI api = OpenFeatureAPI .getInstance ();
362
- api .setProvider (new NoOpProvider <> ());
362
+ api .setProvider (new NoOpProvider ());
363
363
Client client = api .getClient ();
364
364
client .getBooleanValue ("key" , false , new EvaluationContext (),
365
365
FlagEvaluationOptions .builder ().hook (hook ).build ());
@@ -374,7 +374,7 @@ void finallyAfter(HookContext<Boolean> ctx, ImmutableMap<String, Object> hints)
374
374
doThrow (RuntimeException .class ).when (hook ).before (any (), any ());
375
375
376
376
OpenFeatureAPI api = OpenFeatureAPI .getInstance ();
377
- api .setProvider (new NoOpProvider <> ());
377
+ api .setProvider (new NoOpProvider ());
378
378
Client client = api .getClient ();
379
379
380
380
client .getBooleanValue ("key" , false , new EvaluationContext (),
0 commit comments