@@ -84,7 +84,7 @@ public final class CelRuntimeLegacyImpl implements CelRuntime {
8484 // CEL-Internal-4
8585 private final ImmutableSet <CelRuntimeLibrary > celRuntimeLibraries ;
8686
87- private final ImmutableList <dev . cel . runtime . CelFunctionBinding > celFunctionBindings ;
87+ private final ImmutableList <CelFunctionBinding > celFunctionBindings ;
8888
8989 @ Override
9090 public CelRuntime .Program createProgram (CelAbstractSyntaxTree ast ) {
@@ -129,8 +129,7 @@ public static final class Builder implements CelRuntimeBuilder {
129129 // The following properties are for testing purposes only. Do not expose to public.
130130 @ VisibleForTesting final ImmutableSet .Builder <FileDescriptor > fileTypes ;
131131
132- @ VisibleForTesting
133- final HashMap <String , dev .cel .runtime .CelFunctionBinding > customFunctionBindings ;
132+ @ VisibleForTesting final HashMap <String , CelFunctionBinding > customFunctionBindings ;
134133
135134 @ VisibleForTesting final ImmutableSet .Builder <CelRuntimeLibrary > celRuntimeLibraries ;
136135
@@ -151,13 +150,12 @@ public CelRuntimeBuilder setOptions(CelOptions options) {
151150 }
152151
153152 @ Override
154- public CelRuntimeBuilder addFunctionBindings (dev . cel . runtime . CelFunctionBinding ... bindings ) {
153+ public CelRuntimeBuilder addFunctionBindings (CelFunctionBinding ... bindings ) {
155154 return addFunctionBindings (Arrays .asList (bindings ));
156155 }
157156
158157 @ Override
159- public CelRuntimeBuilder addFunctionBindings (
160- Iterable <dev .cel .runtime .CelFunctionBinding > bindings ) {
158+ public CelRuntimeBuilder addFunctionBindings (Iterable <CelFunctionBinding > bindings ) {
161159 bindings .forEach (o -> customFunctionBindings .putIfAbsent (o .getOverloadId (), o ));
162160 return this ;
163161 }
@@ -272,9 +270,9 @@ public CelRuntimeLegacyImpl build() {
272270 DynamicProto dynamicProto = DynamicProto .create (runtimeTypeFactory );
273271 RuntimeEquality runtimeEquality = ProtoMessageRuntimeEquality .create (dynamicProto , options );
274272
275- ImmutableMap .Builder <String , dev . cel . runtime . CelFunctionBinding > functionBindingsBuilder =
273+ ImmutableMap .Builder <String , CelFunctionBinding > functionBindingsBuilder =
276274 ImmutableMap .builder ();
277- for (dev . cel . runtime . CelFunctionBinding standardFunctionBinding :
275+ for (CelFunctionBinding standardFunctionBinding :
278276 newStandardFunctionBindings (runtimeEquality )) {
279277 functionBindingsBuilder .put (
280278 standardFunctionBinding .getOverloadId (), standardFunctionBinding );
@@ -286,7 +284,7 @@ public CelRuntimeLegacyImpl build() {
286284 functionBindingsBuilder
287285 .buildOrThrow ()
288286 .forEach (
289- (String overloadId , dev . cel . runtime . CelFunctionBinding func ) ->
287+ (String overloadId , CelFunctionBinding func ) ->
290288 dispatcher .add (
291289 overloadId , func .getArgTypes (), (args ) -> func .getDefinition ().apply (args )));
292290
@@ -327,7 +325,7 @@ public CelRuntimeLegacyImpl build() {
327325 ImmutableList .copyOf (customFunctionBindings .values ()));
328326 }
329327
330- private ImmutableSet <dev . cel . runtime . CelFunctionBinding > newStandardFunctionBindings (
328+ private ImmutableSet <CelFunctionBinding > newStandardFunctionBindings (
331329 RuntimeEquality runtimeEquality ) {
332330 CelStandardFunctions celStandardFunctions ;
333331 if (standardEnvironmentEnabled ) {
@@ -424,7 +422,7 @@ private CelRuntimeLegacyImpl(
424422 @ Nullable CelValueProvider celValueProvider ,
425423 ImmutableSet <FileDescriptor > fileDescriptors ,
426424 ImmutableSet <CelRuntimeLibrary > celRuntimeLibraries ,
427- ImmutableList <dev . cel . runtime . CelFunctionBinding > celFunctionBindings ) {
425+ ImmutableList <CelFunctionBinding > celFunctionBindings ) {
428426 this .interpreter = interpreter ;
429427 this .options = options ;
430428 this .standardEnvironmentEnabled = standardEnvironmentEnabled ;
0 commit comments