[MDSAL-678] Incorrect @NonNull with binary requireFoo() Created: 21/Jul/21  Updated: 28/Sep/21  Resolved: 28/Sep/21

Status: Resolved
Project: mdsal
Component/s: Binding codegen
Affects Version/s: 8.0.0, 7.0.9
Fix Version/s: 7.0.10, 8.0.6

Type: Bug Priority: High
Reporter: Robert Varga Assignee: Robert Varga
Resolution: Done Votes: 0
Labels: pt
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Relates
relates to MDSAL-602 Add non-null getters for leaf objects Resolved

 Description   

Code generator ends up generating this method:

    default @NonNull byte[] requireSpeakerEntityIdValue() {
        // ...
    }

The problem here is that @NonNull placement, as that is a TYPE_USE annotation and therefore needs to look like this:

    default byte @NonNull[] requireSpeakerEntityIdValue() {
        // ...
    }

find the offender and fix it up.



 Comments   
Comment by Robert Varga [ 28/Sep/21 ]

This also seems to affect keys with binary components, hence is subject to backport.

Generated at Wed Feb 07 20:10:31 UTC 2024 using Jira 8.20.10#820010-sha1:ace47f9899e9ee25d7157d59aa17ab06aee30d3d.