Commit Graph

4 Commits

Author SHA1 Message Date
Tagir Valeev
dbf25ab12b [java-inspections] IDEA-326604 Constant expression can be evaluated using dataflow analysis
GitOrigin-RevId: 5e663ac98c323faf36afcaf18115b6e4036d980d
2023-07-28 09:45:29 +00:00
Mikhail Pyltsin
4390e0ec86 IDEA-312818 [java-inspections] "Replace concatenation" naming is too long
GitOrigin-RevId: 732e1b24a1ce6c3f3791ad18483865eada50f529
2023-03-20 15:27:55 +00:00
Tagir Valeev
8560c6a5d1 [java-inspections] More preview tests
GitOrigin-RevId: 571a82f66623887c1b5008963df842b2597c58c9
2022-07-27 10:00:31 +00:00
Tagir Valeev
ec3b05f6a3 ConstantExpressionVisitor fixes
1. Relational operators are promoted according to JLS, not always to double type (IDEA-199775)
2. Casting to boxed type is disabled, as JLS 15.28 suggests
Result of boxed comparison like (Long)128L == (Long)128L is unknown now as size of boxing cache is not specified in JLS
2018-10-02 12:59:27 +07:00