Commit Graph

3 Commits

Author SHA1 Message Date
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