• Jacek Surazski's avatar
    Java: Don't annotate vector-of-tables item getters with @nullable. (#5562) · 8bfafc76
    Jacek Surazski authored
    * Annotate getters with @Pure when --java-checkerframework is specified.
    
    Together with @Nullable, this allows users to use static analysis tools
    like CheckerFramework to catch NPEs caused by unset fields.
    
    * Don't annotate vector-of-tables item getters with @Nullable.
    
    Since Flatbuffers don't support null items in vectors of tables.
    8bfafc76
idl_gen_general.cpp 72.8 KB