The warning `'isEqualTo()' between objects of inconvertible types 'ArrayList<Integer>' and 'int'`
is being generated by the following code:
```java
final var test = new ArrayList<Integer>();
test.add(1);
assertThat(test).first().isEqualTo(1);
```
This is happening no matter what the generic type ends up being.
This code _does not_ produce the warning:
```java
final var test = new ArrayList<Integer>();
test.add(1);
final ListAssert<Integer> listAssert = assertThat(test);
final ObjectAssert<Integer> objAssert = listAssert.first();
objAssert.isEqualTo(1);
```
I'm not sure what your report is about. The AssertBetweenInconvertibleTypes inspection is, as far as I know, an inspection of the IntelliJ core and not generated by Cajon. Thus, this should be addressed to Jetbrains rather than me.
Please clarify, otherwise I will close this issue as invalid. Thank you.
Hi Mr. Queasy,
I'm not sure what your report is about. The AssertBetweenInconvertibleTypes inspection is, as far as I know, an inspection of the IntelliJ core and not generated by Cajon. Thus, this should be addressed to Jetbrains rather than me.
Please clarify, otherwise I will close this issue as invalid. Thank you.
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
The warning
'isEqualTo()' between objects of inconvertible types 'ArrayList<Integer>' and 'int'is being generated by the following code:
This is happening no matter what the generic type ends up being.
This code does not produce the warning:
Hi Mr. Queasy,
I'm not sure what your report is about. The AssertBetweenInconvertibleTypes inspection is, as far as I know, an inspection of the IntelliJ core and not generated by Cajon. Thus, this should be addressed to Jetbrains rather than me.
Please clarify, otherwise I will close this issue as invalid. Thank you.
Not sure you saw my reply, I had email notifications disabled, but they should be working now (hopefully).