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

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

Commit cf373f2926e3e8e87b6aefe731d991611e65c95c in avro's branch 
refs/heads/master from Kyle Schoonover
[ https://gitbox.apache.org/repos/asf?p=avro.git;h=cf373f292 ]

AVRO-3490 Updated to use throw expressions (#1644)

* AVRO-3360 Updated XML documentation

* Revert "AVRO-3360 Updated XML documentation"

This reverts commit b8601c072a5083380d30b580804dd0908b8cf4cc.

* AVRO-3490 Updated to use throw expressions

* Additional expressions

Co-authored-by: Kyle T. Schoonover <[email protected]>

> Fix IDE0016 Use throw expression
> --------------------------------
>
>                 Key: AVRO-3490
>                 URL: https://issues.apache.org/jira/browse/AVRO-3490
>             Project: Apache Avro
>          Issue Type: Sub-task
>          Components: csharp
>            Reporter: Kyle Schoonover
>            Priority: Minor
>              Labels: pull-request-available
>             Fix For: 1.12.0
>
>          Time Spent: 20m
>  Remaining Estimate: 0h
>
> {code:java}
> // csharp_style_throw_expression = true
> this.s = s ?? throw new ArgumentNullException(nameof(s));
> // csharp_style_throw_expression = false
> if (s == null) { throw new ArgumentNullException(nameof(s)); }
> this.s = s; {code}
> For reference: [IDE0016: Use throw expression - .NET | Microsoft 
> Docs|https://docs.microsoft.com/en-us/dotnet/fundamentals/code-analysis/style-rules/ide0016]



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

Reply via email to