Uploaded image for project: 'REEF (Retired)'
  1. REEF (Retired)
  2. REEF-332 Pass checkstyle
  3. REEF-441

Fix violations of VisibilityModifier checkstyle

    XMLWordPrintableJSON

Details

    • Sub-task
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • None
    • 0.12
    • All
    • None

    Description

      http://checkstyle.sourceforge.net/config_design.html#VisibilityModifier
      "Only static final, immutable or annotated by specified annotation members may be public; other class members must be private unless the property protectedAllowed or packageAllowed is set. "

      We have around 100 violations of various nature:

      • Some, like endIndicators and startIndicators in org/apache/reef/util/logging/LogParser.java, are static but not final and look like they should be final
      • Some, like in org/apache/reef/common/AbstractFailure.java, already have getters but are protected or default visibility instead of private
      • Some, like handler and message in org/apache/reef/runtime/common/utils/DispatchingEStage.java, have no getters and are public

      Fixing public members requires two-stage change with deprecation.

      Attachments

        Activity

          People

            MariiaMykhailova Mariia Mykhailova
            MariiaMykhailova Mariia Mykhailova
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: