[ 
https://issues.apache.org/jira/browse/AVRO-3497?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17525249#comment-17525249
 ] 

ASF subversion and git services commented on AVRO-3497:
-------------------------------------------------------

Commit 6fb62006b7bcda4365f3e86ed93ad5b98703938d in avro's branch 
refs/heads/branch-1.11 from Kyle Schoonover
[ https://gitbox.apache.org/repos/asf?p=avro.git;h=6fb62006b ]

AVRO-3497 Simplify conditional expression (#1658)

* AVRO-3497 Simplify conditional expression

* Added null check back

* Updated tests

(cherry picked from commit 9d87a206b52de7dc9402be711a51b72cb3c11160)


> Fix IDE0075 Simplify conditional expression
> -------------------------------------------
>
>                 Key: AVRO-3497
>                 URL: https://issues.apache.org/jira/browse/AVRO-3497
>             Project: Apache Avro
>          Issue Type: Sub-task
>          Components: csharp
>            Reporter: Kyle Schoonover
>            Priority: Major
>              Labels: pull-request-available
>          Time Spent: 2h 40m
>  Remaining Estimate: 0h
>
> {code:java}
> // dotnet_style_prefer_simplified_boolean_expressions = true
> var result1 = M1() && M2();
> var result2 = M1() || M2();
> // dotnet_style_prefer_simplified_boolean_expressions = false
> var result1 = M1() && M2() ? true : false;
> var result2 = M1() ? true : M2(); {code}



--
This message was sent by Atlassian Jira
(v8.20.7#820007)

Reply via email to