Commit Graph

56 Commits

Author SHA1 Message Date
Tagir Valeev
6759c476ef CleanUp: redundant String operation fixes applied 2018-03-01 13:13:39 +07:00
Egor Ushakov
8b9687ed20 IDEA-184560 Java decompiler doesn't use stored parameter names 2018-01-10 16:28:43 +03:00
Tagir Valeev
023bb2462a Unnecessary null check before instanceof removed 2018-01-10 13:26:21 +07:00
Roman Shevchenko
e449aeb6fa Cleanup (duplicates; final fields; typos) 2017-12-07 14:02:52 +01:00
Roman Shevchenko
b3171e60c9 [java decompiler] cleanup (duplicates; dead code; typos; formatting) 2017-12-06 11:58:46 +01:00
Roman Shevchenko
29de7ad72e [java decompiler] cleanup (dead code; optimizations; warnings) 2017-12-01 18:24:06 +01:00
Roman Shevchenko
7521c17aba [java decompiler] updates copyright comment 2017-11-28 12:32:09 +01: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
Egor.Ushakov
7575bb57de removed unneeded boxing 2017-04-26 13:57:24 +03:00
Egor.Ushakov
2fab291fe1 minor cleanup: avoid creating empty arrays and unneeded boxing 2017-04-25 12:39:25 +03:00
Egor.Ushakov
7041accfe9 reduced memory usage - use HashMap for attributes 2017-04-21 12:12:17 +03:00
Egor.Ushakov
234073efb2 specify the exact collection size when we know 2017-04-21 12:12:17 +03:00
Egor.Ushakov
6fc7ae736a speedup descriptors parsing, avoid using regexp split 2017-04-21 12:12:17 +03:00
Tagir Valeev
fdf34d9be2 DataPoint: useless check removed (already handled in previous branch) 2017-04-13 12:47:51 +07:00
Egor.Ushakov
5e45e5ac40 IDEA-130708 Incorrect locals names 2017-01-12 16:30:41 +03:00
Egor.Ushakov
6a09fe2524 avoid stream to array copying 2017-01-11 15:14:36 +03:00
Egor.Ushakov
cb133af01e IDEA-166363 Support LocalVariableTypeTable attribute 2017-01-10 18:50:16 +03:00
Anna.Kozlova
947fae191f explicit types to diamonds 2016-08-08 17:08:03 +02:00
Egor.Ushakov
7628ddfd2c toString impls for debug 2016-05-26 13:54:15 +03:00
Roman Shevchenko
71bb82acbe [java-decompiler] correct decompilation of refs to inner generic classes (IDEA-155430) 2016-05-20 20:16:01 +02:00
Roman Shevchenko
52b31bf325 [java, java-decompiler] type annotations in class files
Step 1: add top-level field/method/parameter annotations to stubs; include them in decompiled text.
2016-04-21 21:22:36 +02:00
Roman Shevchenko
b96586cc2f [java-decompiler] utility classes reorganized 2016-04-20 14:06:47 +02:00
Roman Shevchenko
23da5d99d2 Cleanup (I/O ops in java-decompiler) 2016-03-16 11:22:39 +01:00
Egor.Ushakov
ec51c10d08 decompiler: support java 9 bytecode version 2016-02-29 16:22:42 +03:00
Christopher Carpenter
94851b6cbb Added a TODO regarding IDEA-137253. 2016-02-03 16:30:06 -05:00
Roman Shevchenko
c825dd68ec Cleanup (formatting; minor optimization) 2016-01-27 19:06:07 +03:00
Christopher Carpenter
bfddced4e2 Fixed renaming class elements when using the decompilers -ren=1 option. Fixes issue IDEA-137253 2016-01-21 01:06:45 -05:00
Roman Shevchenko
45a41684e6 [java-decompiler] cleanup (arrays to data classes; formatting; typos; dead code) 2015-11-11 16:25:41 +01:00
Sebastian Zarnekow
e4e72404dc Fixed Fernflower decompiler output for generic nested types (IDEA-141230)
https://github.com/JetBrains/intellij-community/pull/273
2015-06-09 15:35:17 +03:00
Egor.Ushakov
262d580ccc decompiler: cleanup 2015-03-27 12:58:33 +03:00
Egor.Ushakov
ca7e2dfa1c decompiler: cleanup - marked const fields final 2015-03-26 15:28:13 +03:00
Stiver
b3962a09ca Extended option 'dc4' to handle inlined class references (mainly Eclipse). See IDEA-135387 for an example. 2015-03-01 13:51:30 +01:00
Egor.Ushakov
635c94f023 decompiler: read sourceFile attribute 2015-01-26 21:10:14 +03:00
Roman Shevchenko
82a2939271 java-decompiler: cleanups and fixes
- duplicates eliminated
- immutable fields
- typos
- formatting
2014-11-05 11:07:37 +01:00
Roman Shevchenko
020f5c404b java-decompiler: extra casts on method calls omitted
(loosely based on https://github.com/JetBrains/intellij-community/pull/217)
2014-11-04 11:32:40 +01:00
Roman Shevchenko
a721490f62 IDEA-127182 (passing line number map to debugger) 2014-10-17 21:35:16 +02:00
Egor.Ushakov
1a183952b4 decompiler: build original lines mapping 2014-10-17 19:35:07 +04:00
Egor.Ushakov
a182de6271 decompiler: map all lines according to bytecode information 2014-10-15 20:22:11 +04:00
Stiver
c975f11ecc Activated bytecode-to-source mapping for all instructions 2014-10-15 06:26:49 +02:00
Egor.Ushakov
37422ead1c cleanup after review - use option for decompiler banner text 2014-10-08 12:35:14 +04:00
Egor.Ushakov
125441a88f decompiler: move generated lines as it is stated in debug line table (disabled for now) 2014-10-07 20:39:03 +04:00
Roman Shevchenko
bef17b44fc java-decompiler: minor optimization (no more empty array creation) 2014-10-06 17:26:24 +02:00
Roman Shevchenko
07ca9cf062 java-decompiler: unwanted dependency dropped 2014-10-06 10:10:01 +03:00
Egor Ushakov
0c8508ff8a decompiler: support line number table attribute 2014-10-05 17:12:17 +04:00
Roman Shevchenko
e90f1de039 IDEA-129221 (tolerate invalid signature attributes) 2014-09-12 17:30:26 +04:00
Roman Shevchenko
ff382a6fdf java-decompiler: fixes and cleanups
- console decompiler: resource closing, lookup instead of scan, error reporting
- logger interface reworked
- saver interface renamed
- bytecode provider returns byte array (to reduce stream leakage)
- extra level of context unit avoided
- unneeded exceptions, dead code, formatting
2014-09-07 14:35:39 +04:00
Roman Shevchenko
4e79d160ca java-decompiler: code attributes reading restored 2014-09-04 19:02:10 +04:00
Roman Shevchenko
686b5abef9 java-decompiler: optimization (empty lists allocation avoided) 2014-09-04 18:41:39 +04:00
Roman Shevchenko
2df49d32a7 java-decompiler: fixes and cleanups
- unified attribute loading code
- common methods for checking member flags
- verifying skip()
- correct resource closing
- typos
2014-09-03 11:39:32 +04:00