Repository navigation
Conversation
63f3fd4 to
6522b29
Compare
6522b29 to
678b2ec
Compare
678b2ec to
8da4fa9
Compare
8da4fa9 to
8298f68
Compare
8298f68 to
1f1295b
Compare
1f1295b to
06b06d8
Compare
06b06d8 to
a16cbb0
Compare
8a0fee0 to
fe690b4
Compare
bbb78e7 to
fe92534
Compare
fe92534 to
512b064
Compare
512b064 to
d8e6099
Compare
d8e6099 to
4568bb6
Compare
4568bb6 to
24bf877
Compare
24bf877 to
8c22f16
Compare
8c22f16 to
d39ba88
Compare
d39ba88 to
a68b35c
Compare
a68b35c to
16a8621
Compare
16a8621 to
4edde8d
Compare
4edde8d to
98fc225
Compare
98fc225 to
6334f68
Compare
Code Review ✅ Approved 🟡 Medium risk 13 closed / 13 findingsDeriving unused-import and self-assignment warnings changes diagnostics for SemSitter-parsed code, potentially misreporting issues within that frontend. Derives UNUSED_IMPORT and ASSIGNMENT_HAS_NO_EFFECT warnings from the translated tree in ✅ 13 closed✅ Bug: Supported warning kinds only show up when a warning was found
✅ Performance: isInScope parent walk is recomputed for every import × identifier
✅ Bug: On-demand import is counted as used by types from its subpackages
✅ Edge Case: Javadoc reference wrapped onto the next line is read as
|
| Auto-apply | Compact |
|
|
Was this helpful? React with 👍 / 👎 | Gitar
|




Part 13 of 17 of JAVA-7392. Ticket: JAVA-7403.
Intent
Checks such as S1128 read the compiler warnings of the compilation unit. ECJ computes them, SemSitter does not, so
CompilerWarningsderives them from the translated tree: unused imports and assignments without effect.From
Warnings.expected.txt, identical to what ECJ reports:ReplayTest.same_warnings_as_ecjcompares the derived warnings with ECJ on every compiling sample. Cast and catch warnings come in the next PR.Test plan
same_warnings_as_ecjon the replay samples,JWarningTest,SemSitterParityTest