[ 
https://issues.apache.org/jira/browse/AVRO-3354?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

ASF GitHub Bot updated AVRO-3354:
---------------------------------
    Labels: pull-request-available  (was: )

> Simplify If statements in CodeGen
> ---------------------------------
>
>                 Key: AVRO-3354
>                 URL: https://issues.apache.org/jira/browse/AVRO-3354
>             Project: Apache Avro
>          Issue Type: Improvement
>          Components: csharp
>    Affects Versions: 1.11.1
>            Reporter: Kyle Schoonover
>            Priority: Minor
>              Labels: pull-request-available
>          Time Spent: 10m
>  Remaining Estimate: 0h
>
> Simple if statements can be converted to conditionals.  Specifically if one 
> thing is happening in each block:
> ie:
> {code:java}
>                     if (nullible)
>                     {
>                         return $"System.Nullable<{typeof(bool)}>";
>                     }
>                     else
>                     {
>                         return typeof(bool).ToString();
>                     }{code}
> can become:
> {code:java}
>                     return nullible ? $"System.Nullable<{typeof(bool)}>" : 
> typeof(bool).ToString(); {code}



--
This message was sent by Atlassian Jira
(v8.20.1#820001)

Reply via email to