Skip to content

Conversation

cppwfs
Copy link
Contributor

@cppwfs cppwfs commented Sep 2, 2025

  • Add Nullability to core module's graph package.
  • buildGraph and getGraph methods in the IntegrationGraphServer because Nullify could not see the creation of the graph
  • IntegrationGraphServer.receiptListRoutingHandler required a change where the messageChannel could not be null in the map portion of expression. So it was extracted into a var and the var was checked for null.

@cppwfs cppwfs requested a review from artembilan September 2, 2025 16:04
Copy link
Member

@artembilan artembilan left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This looks hard: thank you for the effort!
And let's hope we will nail all the quirks together!

@cppwfs cppwfs force-pushed the GH-10083-core-graph branch from 3fa3972 to 10af742 Compare September 3, 2025 13:04
cppwfs and others added 3 commits September 3, 2025 11:12
* Add Nullability to core module's graph package.
* `buildGraph` and `getGraph` methods in the `IntegrationGraphServer` because Nullify could not see the creation of the graph
* `IntegrationGraphServer.receiptListRoutingHandler` required a change where the messageChannel could not be null in the `map` portion of expression.  So it was extracted into a var and the var was checked for null.
* Set AppContext to not be nullable
* Consumer's inbound channels are never null. Update to remove nullable
* Update outbound channels so they are not nullable
* Use local variable trick to work past Nullables inability to see a new above return value
* Add contract to channelToBeanName in IntegrationGraphServer
@cppwfs cppwfs force-pushed the GH-10083-core-graph branch from 0c03a42 to ec20eb0 Compare September 3, 2025 15:14
@@ -119,8 +123,12 @@ private <T extends IntegrationNode> Timer obtainTimer(T node, String type, boole
}
}

@Nullable
private <T extends IntegrationNode> Timer observationTimer(T node, String type, boolean success) {
private RequiredSearch getRegistry(String name) {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We don't need this method any more after that NullAway.Init.
And therefore everything else.

Copy link
Member

@artembilan artembilan left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM.
Taking locally for final review, cleanup and merge.

Thank you!

@artembilan
Copy link
Member

Merged as aaae385.
And subsequent cleanup: e367374

Thank you!

@artembilan artembilan closed this Sep 3, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants