Commit Graph

5 Commits

Author SHA1 Message Date
Tagir Valeev
619bfa9963 IDEA-231280 Quick fix for compare() method can be used to compare numbers generates broken code
Also declaration is joined automatically

GitOrigin-RevId: f94ddf5ae3e94edffdb44cd56ad6bf8b3a9054b4
2020-01-24 06:32:55 +00:00
Tagir Valeev
35de5a903d 'compare()' method can be used to compare primitives -> 'compare()' method can be used to compare numbers 2018-10-12 12:41:24 +07:00
Tagir Valeev
95f2337448 UseCompareMethod: support boxed inputs and suggest "compareTo"
Allows to do IDEA-200365 in three steps now
2018-10-12 12:22:38 +07:00
yarik
ced545552a [java formatter] c style comments formatting supported. Note, only single line comments or comments with each line starting with asterisks will be formatted, since by using /* and */ you 2017-06-20 14:48:26 +03:00
Tagir Valeev
dbcddf5a4a BoxForComparisonInspection enhanced -> UseCompareMethodInspection
Suggests to use Integer.compare(), etc. instead if ternary operator or if chain. Fixes IDEA-173766.
2017-06-06 17:20:08 +07:00