Skip to content

Conversation

@AlexRiedler
Copy link
Contributor

What is the purpose of the change

Allows idl-protocol maven plugin to support createNullSafeAnnotations flag (which is currently defined, but has no effect since missing compiler.setCreateNullSafeAnnotations(createNullSafeAnnotations).

Also lined up settings so they are not repeated between Mojos so this does not happen again.

Verifying this change

This change is a trivial rework / code cleanup without any test coverage.

Documentation

  • Does this pull request introduce a new feature? no

Keep compiler settings DRY, in particular make idl-protocol support
for createNullSafeAnnotations flag
@github-actions github-actions bot added the Java Pull Requests for Java binding label Dec 9, 2024
@AlexRiedler AlexRiedler force-pushed the fix-null-annotation-support branch from 71b61c8 to c225a84 Compare December 9, 2024 14:53
@github-actions github-actions bot added the build label Jun 10, 2025
@opwvhk
Copy link
Contributor

opwvhk commented Jun 10, 2025

Thank you for this change, @AlexRiedler!

I've taken the liberty of adding a test case that demonstrates the flag for protocol-idl. I hope you don't mind.

@opwvhk opwvhk merged commit 70d6e7c into apache:main Jun 10, 2025
9 checks passed
@AlexRiedler
Copy link
Contributor Author

@opwvhk thanks for the review 🙏🏻 , and thanks for adding the missing test case!

opwvhk added a commit that referenced this pull request Jun 13, 2025
…r options [AVRO-4098] (#3261)

* AVRO-40980: [maven-plugin] make mojos support all compiler options

Keep compiler settings DRY, in particular make idl-protocol support
for createNullSafeAnnotations flag

* AVRO-4098: Add test case

---------

Co-authored-by: Oscar Westra van Holthe - Kind <opwvhk@apache.org>
(cherry picked from commit 70d6e7c)
opwvhk added a commit to opwvhk/avro that referenced this pull request Sep 5, 2025
…r options [AVRO-4098] (apache#3261)

* AVRO-40980: [maven-plugin] make mojos support all compiler options

Keep compiler settings DRY, in particular make idl-protocol support
for createNullSafeAnnotations flag

* AVRO-4098: Add test case

---------

Co-authored-by: Oscar Westra van Holthe - Kind <opwvhk@apache.org>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

build Java Pull Requests for Java binding

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants