Uploaded image for project: 'mdsal'
  1. mdsal
  2. MDSAL-395

Get rid of "get" prefix because it conflicts with getters

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Medium Medium
    • 4.0.0
    • None
    • Binding codegen
    • None

      This is (hopefully) the last straggler in the 'get*' family, after getKey() and getAugmentation(). Using "get" prefix followed by a capital letter infringes on namespace reserved for user-defined data, such as:

      grouping foo {
          leaf implemented-interface {
              type string;
          }
      }
      

      We suddenly have two getters differing only by return type, which is a JLS violation. Get rid of this by renaming to "implementedInterface".

            rovarga Robert Varga
            rovarga Robert Varga
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: