Skip to content

Conversation

@scordio
Copy link
Member

@scordio scordio commented Aug 4, 2025

@scordio scordio added this to the 3.27.4 milestone Aug 4, 2025
@scordio scordio force-pushed the gh-3880-contract-annotation branch from 30d0f26 to 9d9f8e6 Compare August 4, 2025 14:58
@scordio scordio linked an issue Aug 4, 2025 that may be closed by this pull request
@scordio scordio marked this pull request as ready for review August 7, 2025 13:42
@scordio scordio force-pushed the gh-3880-contract-annotation branch from 9d9f8e6 to 472d54b Compare August 7, 2025 13:44
@scordio scordio merged commit feb5f6f into 3.x Aug 7, 2025
29 checks passed
@scordio scordio deleted the gh-3880-contract-annotation branch August 7, 2025 13:55
jonatan-ivanov pushed a commit to scordio/micrometer that referenced this pull request Aug 7, 2025
This commit configures org.assertj.core.internal.annotation.Contract
as a custom contract annotation (added in AssertJ 3.27.4),
using it fixes the previous issue with NullAway.

See micrometer-metricsgh-6399
See micrometer-metricsgh-6589
See uber/NullAway#1222
See assertj/assertj#3882
See assertj/assertj#3880

Signed-off-by: Stefano Cordio <stefano.cordio@gmail.com>
jonatan-ivanov added a commit to micrometer-metrics/micrometer that referenced this pull request Aug 8, 2025
* Remove requireNonNull check from ObservationContextAssert

This commit configures org.assertj.core.internal.annotation.Contract
as a custom contract annotation (added in AssertJ 3.27.4),
using it fixes the previous issue with NullAway.

See gh-6399
See gh-6589
See uber/NullAway#1222
See assertj/assertj#3882
See assertj/assertj#3880

Signed-off-by: Stefano Cordio <stefano.cordio@gmail.com>

* Remove redundant requireNonNull from tests

These issues were fixed in NullAway 0.12.8

See gh-6399
See gh-6589
See uber/NullAway#1219
See uber/NullAway#1224
See https://github.com/uber/NullAway/releases/tag/v0.12.8

---------

Closes gh-6399

Signed-off-by: Stefano Cordio <stefano.cordio@gmail.com>
Co-authored-by: Jonatan Ivanov <jonatan.ivanov@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Introduce custom @Contract annotation to aid data flow analysis

2 participants