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

Improve InstanceIdentifier annotations

XMLWordPrintable

    • Icon: Improvement Improvement
    • Resolution: Done
    • Icon: High High
    • 5.0.15, 7.0.1, 6.0.7
    • None
    • Binding API
    • None

      We are using Eclipse annotations and Eclipse ends up being very noisy if you enable nullness analysis. One part of it revolves around our use of .class references in APIs – while the APIs do not specify nullness, Eclipse treats the class reference in

      InstanceIdentifier.create(Foo.class)
      

      as Class<@NonNull Foo>, and, very unhelpfully, generates a warning when it meets InstanceIdentifier's lack of annotations. This is perhaps an issue with Eclipse, but at the end of the day we need to support everyone.

      Improve the situation by taking into account Eclipse's short falls and annotate InstanceIdentifier to keep it happy.

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

              Created:
              Updated:
              Resolved: