Uploaded image for project: 'Commons Math'
  1. Commons Math
  2. MATH-348

Indirect access to instance variables

    XMLWordPrintableJSON

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Trivial
    • Resolution: Fixed
    • Affects Version/s: 2.0
    • Fix Version/s: 2.1
    • Labels:
      None

      Description

      In all the methods (except the setters/getters) of

      • BinomialDistributionImpl
      • CauchyDistributionImpl
      • ExponentialDistributionImpl
      • FDistributionImpl
      • GammaDistributionImpl
      • HypergeometricDistributionImpl
      • TDistributionImpl
      • NormalDistributionImpl
      • WeibullDistributionImpl
      • ZipfDistributionImpl

      the instance variables are accessed through their respective getter.
      This is confusing (and possibly inefficient).
      What would be the expected behaviour of the getter if it were overriden?

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              erans Gilles Sadowski
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Time Tracking

                Estimated:
                Original Estimate - 1h
                1h
                Remaining:
                Remaining Estimate - 1h
                1h
                Logged:
                Time Spent - Not Specified
                Not Specified