[ 
https://issues.apache.org/jira/browse/AVRO-3345?focusedWorklogId=718960&page=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-718960
 ]

ASF GitHub Bot logged work on AVRO-3345:
----------------------------------------

                Author: ASF GitHub Bot
            Created on: 01/Feb/22 20:21
            Start Date: 01/Feb/22 20:21
    Worklog Time Spent: 10m 
      Work Description: martin-g commented on a change in pull request #1495:
URL: https://github.com/apache/avro/pull/1495#discussion_r796977667



##########
File path: lang/csharp/src/apache/main/File/DataFileConstants.cs
##########
@@ -64,10 +61,13 @@ public class DataFileConstants
         /// <summary>
         /// Magic bytes at the beginning of an Avro data file.
         /// </summary>
-        public static byte[] Magic = { (byte)'O',
-                                       (byte)'b',
-                                       (byte)'j',
-                                       Version };
+        public static readonly byte[] Magic =

Review comment:
       I am 99% sure no one is setting custom value for the `Magic` field. So I 
am OK to merge it as is! But only for 1.12.0!
   If someone complains that we broke his/her build then we can revert if (s)he 
gives us a really convincing reason!
   




-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


Issue Time Tracking
-------------------

    Worklog Id:     (was: 718960)
    Time Spent: 1h 20m  (was: 1h 10m)

> Resolve unnecessary suppression of CA1052 in DataFileConstants
> --------------------------------------------------------------
>
>                 Key: AVRO-3345
>                 URL: https://issues.apache.org/jira/browse/AVRO-3345
>             Project: Apache Avro
>          Issue Type: Improvement
>          Components: csharp
>    Affects Versions: 1.11.1
>            Reporter: Kyle Schoonover
>            Priority: Minor
>              Labels: pull-request-available
>          Time Spent: 1h 20m
>  Remaining Estimate: 0h
>
> This specifically revolves around the byte array Magic.  It just needs to be 
> marked readonly.



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

Reply via email to