Commit Graph

5 Commits

Author SHA1 Message Date
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
Tagir Valeev
5fc5a86cdf ConstantExpressionInspection: make it working inside parentheses 2018-07-05 13:25:29 +07:00
Tagir Valeev
6cc8936598 Compute constant expression as an inspection; minor improvements
Works for unary operation
Do not suggested if replacement is the same as the original code
Replacement is displayed in the quick-fix name
2018-01-25 15:43:48 +07:00