-
Notifications
You must be signed in to change notification settings - Fork 210
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Generated Class and CompletableFuture<Void> Annotations #3170
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
please add a changelog entry.
You're probably missing adding a using in the refiner for the generated annotation.
@baywet , Should I add a using in the refiner or simply use the full annotation in a similar way to the other annotations? It would be like: "jakarta.annotation.Generated("com.microsoft.kiota") instead of just "Generated" |
I think the name is good, you should probably centralize the constant in the JavaConventionService though. |
Also, would that then be a standard that we should refactor? If we are already using the jakarta annotations across the board quite frequently then should it simply be added to the refiner? So that the Nullable (and NonNull) annotations are also just 'Nullable' rather than the current 'jakarta.annotation.Nullable'? |
I misread your prior question. Please go ahead and use the full name for the annotation to align with others. Sorry about the confusion. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yep, it was because I hadn't added the fully qualified name. Just added that, should be good soon.
Kudos, SonarCloud Quality Gate passed! |
Fixes: #3106
Also,
Noticed an edge case that wasn't considered when I removed the annotations from 'Void' returns.
Initially removed annotations when the return value is 'Void', however Api-Linting for the Java-SDK is telling us that an annotation is still needed if the Void return is wrapped in a completable future.
Needs to be