File tree Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -471,7 +471,9 @@ def type_loader(
471
471
name = f"map_of_{ i .name } " ,
472
472
init = "new MapLoader({}, {}, {})" .format (
473
473
i .name ,
474
- f"'{ container } '" if container is not None else None , # noqa: B907
474
+ (
475
+ f"'{ container } '" if container is not None else self .to_java (None )
476
+ ), # noqa: B907
475
477
self .to_java (no_link_check ),
476
478
),
477
479
loader_type = f"Loader<java.util.Map<String, { i .instance_type } >>" ,
@@ -494,7 +496,9 @@ def type_loader(
494
496
clazz = fqclass ,
495
497
ext = "Impl" if not is_abstract else "" ,
496
498
container = (
497
- f"'{ container } '" if container is not None else None # noqa: B907
499
+ f"'{ container } '"
500
+ if container is not None
501
+ else self .to_java (None ) # noqa: B907
498
502
),
499
503
no_link_check = self .to_java (no_link_check ),
500
504
),
You can’t perform that action at this time.
0 commit comments