13 Commits

Author SHA1 Message Date
Egor Ushakov
f320e3abd4 IDEA-204223 Decompiler doesn't add mandatory narrowing cast on integer type 2018-12-14 17:57:35 +03:00
Alexandru-Constantin Bledea
893450cdb3 [Fernflower] autoboxing primitives should not always be ignored 2017-08-30 12:36:38 +03:00
Dmitry Cherniachenko
39db41ee8b Omit unnecessary unboxing calls in decompiled code 2017-07-10 15:55:33 +03:00
Dmitry Cherniachenko
aa78b7df28 Fixed narrowing cast from 'int' to 'Byte' / 'Short' 2017-07-10 15:55:32 +03:00
Dmitry Cherniachenko
5db9ad29c8 Removed setConstType() from is isBoxingCall() to avoid hidden side effect
Const type is now adjusted correctly also when the target is
java.lang.Character or java.lang.Integer
2017-07-10 15:55:32 +03:00
Dmitry Cherniachenko
d382ba2709 Updated TestPrimitives test to match the source 2017-07-10 15:55:32 +03:00
Dmitry Cherniachenko
9e788b09cb Fixed conflicts after recent changes in master 2017-07-10 15:55:32 +03:00
Dmitry Cherniachenko
5f292c415c Removed 'Integer.valueOf()' boxing of literals 2017-07-10 15:55:32 +03:00
Egor.Ushakov
bbc76e7cb4 IDEA-127533 int field is displayed as char - show \n etc as chars 2017-05-04 14:41:36 +03:00
Egor.Ushakov
844177d33e IDEA-127533 int field is displayed as char - show only reasonable ascii as chars 2017-05-04 12:53:29 +03:00
Egor.Ushakov
4de826363f (byte) type cast in constructor calls 2017-04-27 15:34:31 +03:00
Dmitry Cherniachenko
0a7a60fa7b Add '(byte)' and '(short)' type cast for int literals only in invocation parameters 2017-04-19 11:39:37 +03:00
Dmitry Cherniachenko
cd1acfa266 IDEA-171459 fix type cast for int literals used as byte / short in decompiled code 2017-04-19 11:39:37 +03:00