[java-decompiler] IDEA-346312 adapt patches

- show constructors and getters for IDEA
- cast with null
- more tests

GitOrigin-RevId: 4a9aef46e4cac7fd15a27b1c75d88dedd8825659
This commit is contained in:
Mikhail Pyltsin
2024-09-11 15:06:41 +02:00
committed by intellij-monorepo-bot
parent 26b21b852e
commit e7546bddfd
25 changed files with 815 additions and 76 deletions

View File

@@ -245,6 +245,8 @@ private fun getOptions(): Map<String, Any> {
IFernflowerPreferences.VERIFY_ANONYMOUS_CLASSES to "1",
IFernflowerPreferences.CONVERT_PATTERN_SWITCH to "1",
IFernflowerPreferences.CONVERT_RECORD_PATTERN to "1",
IFernflowerPreferences.HIDE_RECORD_CONSTRUCTOR_AND_GETTERS to "0", //must be 0. Otherwise there are problems with mirroring
IFernflowerPreferences.CHECK_CLOSABLE_INTERFACE to "0", //must be 0. Otherwise it doesn't work in idea
//IFernflowerPreferences.UNIT_TEST_MODE to if (ApplicationManager.getApplication().isUnitTestMode) "1" else "0"
)
}