diff options
Diffstat (limited to 'lib/asn1/src/asn1ct_gen_jer.erl')
-rw-r--r-- | lib/asn1/src/asn1ct_gen_jer.erl | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/lib/asn1/src/asn1ct_gen_jer.erl b/lib/asn1/src/asn1ct_gen_jer.erl index 7f6152ad80..cfd16ea7ca 100644 --- a/lib/asn1/src/asn1ct_gen_jer.erl +++ b/lib/asn1/src/asn1ct_gen_jer.erl @@ -1,7 +1,7 @@ %% %% %CopyrightBegin% %% -%% Copyright Ericsson AB 2019-2022. All Rights Reserved. +%% Copyright Ericsson AB 2019-2023. All Rights Reserved. %% %% Licensed under the Apache License, Version 2.0 (the "License"); %% you may not use this file except in compliance with the License. @@ -159,10 +159,9 @@ gen_encode_choice(Erules,TypeName,D) when is_record(D,type) -> {Rl,El} -> Rl ++ El; _ -> CompList end, - {choice,maps:from_list( - [{AltName,AltType}|| - {AltName,AltType,_OptOrMand} <- - gen_enc_comptypes(Erules,TypeName,CompList1,0,0,[])])}. + {choice,#{AltName => AltType || + {AltName,AltType,_OptOrMand} <- + gen_enc_comptypes(Erules,TypeName,CompList1,0,0,[])}}. gen_decode_choice(_,_,_) -> ok. |