-
Notifications
You must be signed in to change notification settings - Fork 3k
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
Use uniform Assertions AssertJ class #19013
Use uniform Assertions AssertJ class #19013
Conversation
I've killed a build, since master is broken due to compilation issue: #19014 |
Thanks, I'll rebase once the fix is merged. |
Although funny thing is, it compiled for me locally? |
Did you rebase on master? |
No, and this branch doesn't even include the faulty commit 🤔 |
Anyway, the fix is in so I'll just rebase. |
According to javadocs, the `AssertionsFor(Class|Interface)Types` were introduced to circumvent type inference issues with generic classes in Java 8. But it seems that we don't have these issues in our code base, so it looks like importing from these classes was just a mistake.
42d538c
to
338e01a
Compare
@ksobolew github always rebased on target branch when running CI |
I see... |
I want to add these classes to the banned imports list, but I'll need a fix in airbase first, so I'll make it a draft for now. |
Is this blocking this change from being merged @ksobolew ? |
Nope,
Note: there is one place in |
No, not blocking. I was just hoping to do it in one PR. But it can be merged as-is. |
@ksobolew we should add this rule to airbase |
@ksobolew do you want this change to be merged? |
Yes, please :) |
👍 |
Description
According to javadocs, the
AssertionsFor(Class|Interface)Types
were introduced to circumvent type inference issues with generic classes in Java 8. But it seems that we don't have these issues in our code base, so it looks like importing from these classes was just a mistake.Additional context and related issues
These classes also have somewhat impoverished API. That's actually how I found it - I couldn't find a method I was expecting in one place.
Release notes
(x) This is not user-visible or is docs only, and no release notes are required.
( ) Release notes are required. Please propose a release note for me.
( ) Release notes are required, with the following suggested text: