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

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

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

AVRO-3499 Remove unnecessary suppressions (#1656)

(cherry picked from commit 923ea8e6042db6eddbd727ee303adc54ae58f4b9)


> Fix IDE0079 Remove unnecessary suppression
> ------------------------------------------
>
>                 Key: AVRO-3499
>                 URL: https://issues.apache.org/jira/browse/AVRO-3499
>             Project: Apache Avro
>          Issue Type: Sub-task
>          Components: csharp
>            Reporter: Kyle Schoonover
>            Priority: Major
>              Labels: pull-request-available
>          Time Spent: 1h
>  Remaining Estimate: 0h
>
> {code:java}
> class C1
> {
>     // Necessary pragma suppression
> #pragma warning disable IDE0051 // IDE0051: Remove unused member
>     private int UnusedMethod() => 0;
> #pragma warning restore IDE0051
>     // IDE0079: Unnecessary pragma suppression
> #pragma warning disable IDE0051 // IDE0051: Remove unused member
>     private int UsedMethod() => 0;
> #pragma warning restore IDE0051
>     public int PublicMethod() => UsedMethod();
> }
> class C2
> {
>     // Necessary SuppressMessage attribute suppression
>     [SuppressMessage("CodeQuality", "IDE0051:Remove unused private members", 
> Justification = "<Pending>")]
>     private int _unusedField;
>     // IDE0079: Unnecessary SuppressMessage attribute suppression
>     [SuppressMessage("CodeQuality", "IDE0051:Remove unused private members", 
> Justification = "<Pending>")]
>     private int _usedField;
>     public int PublicMethod2() => _usedField;
> } {code}



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

Reply via email to