Uploaded image for project: 'Guacamole'
  1. Guacamole
  2. GUACAMOLE-1772

Add @NotNull and @Nullable annotations everywhere in guacamole-client Java codebase

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Open
    • Minor
    • Resolution: Unresolved
    • None
    • None
    • guacamole-client
    • None

    Description

      NOTE: Some commits erroneously tag this issue in the git commit history instead of "GUACAMOLE-1722". If looking for the JIRA issue related to a commit, but that commit doesn't seem related to this, check GUACAMOLE-1722.

      Adding @Nullable and @NotNull annotations in the Java codebase would be really nice - this would not only make it easier to understand the code, but it would even have prevented issues like the one described in GUACAMOLE-1769, as the compiler would have caught the potential NPE.

      It'd be a big project to add these to the entire codebase at the same time, so maybe it might make sense to break this up into smaller pieces, though adding these annotations often results in a cascading refactor where more and more things need to be annotated.

      Attachments

        Activity

          People

            Unassigned Unassigned
            jmuehlner James Muehlner
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated: