Commit Graph

7 Commits

Author SHA1 Message Date
Tagir Valeev
2d08b71a4e [java-inspections] IDEA-285964 Replacement for 'Expression can be replaced with Double.compare()' sometimes breaks the code
Option is added to disable the inspection when semantics change is possible

GitOrigin-RevId: 97e5576582b65c3ba0cb3122d6274a37e271386d
2022-01-10 08:52:07 +00:00
Tagir Valeev
05309a5d4e [java-inspections] IDEA-273527 Incorrect generated code with "Can be replaced with 'Integer.compare'"
GitOrigin-RevId: 4918eebd8b1d6996a8330bf4cbfcc66a367ded18
2021-07-14 16:12:20 +00:00
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