Uploaded image for project: 'Apache Avro'
  1. Apache Avro
  2. AVRO-3357

Properties only assigned in constructors should be marked readonly

    XMLWordPrintableJSON

Details

    Description

      Properties only assigned in constructors should be marked readonly

      ie:

      public class MyClass
      {
          private readonly bool test;
      
          public MyClass(bool test)
          {
              _test = test;
          {
      }

      Attachments

        Issue Links

          Activity

            People

              KSchoonover Kyle Schoonover
              KSchoonover Kyle Schoonover
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 20m
                  20m