Stefano Cordio

Results 595 comments of Stefano Cordio

@dependabot ignore this major version

If using AssertJ is an option, with version 3.27.0 it will be possible to write the following: ```java import static org.assertj.core.api.Assertions.assertThat; ... Foo foo = assertThat(bar.doSomething()).isNotNull().actual().getFoo(); ``` See assertj/assertj#3489.

Totally understandable 😉 a pure non-null assertion is not the best showcase for that, but users find it handy for more complex use cases. As with everything, YMMV 🙂

Thanks to an AssertJ [bug report](https://github.com/assertj/assertj/issues/2870#issuecomment-2969825864), I learned a new reason for having such annotations, on top of the obvious nullability awareness: fixing a Kotlin interoperability issue with Java wrapper...

I just tried with `org.jetbrains.annotations.Nullable`, and, surprisingly, the IDE is capable of navigating to the appropriate method, but it fails at runtime with: ``` java.lang.NullPointerException: nullableProperty(...) must not be null...

I think what we experienced goes beyond warnings/errors and it's rather a bug in Kotlin's behavior. I'll raise an issue to JetBrains as soon as I get the time, especially...

Seeing the website in German and > © 2025 CyberLand - an event of iJUG e. V., organized by r**epresentatives of the German-speaking Java community** I assume they are held...