mirror of
https://gitflic.ru/project/openide/openide.git
synced 2025-12-16 14:23:28 +07:00
[java-decompiler] IDEA-198397 disable limit for decompiler for BGT
GitOrigin-RevId: eb915c3bdec17cc1cfbd46a1aa257daf71cb7162
This commit is contained in:
committed by
intellij-monorepo-bot
parent
a146d41a4e
commit
c65019f32c
@@ -38,7 +38,6 @@ public interface IFernflowerPreferences {
|
||||
String LOG_LEVEL = "log";
|
||||
String MAX_PROCESSING_METHOD = "mpm";
|
||||
String MAX_BYTES_CLASS_NOT_UNDER_PROGRESS = "mbcnup";
|
||||
String MAX_BYTES_CLASS = "mbc";
|
||||
String RENAME_ENTITIES = "ren";
|
||||
String USER_RENAMER_CLASS = "urc";
|
||||
String NEW_LINE_SEPARATOR = "nls";
|
||||
@@ -86,7 +85,6 @@ public interface IFernflowerPreferences {
|
||||
defaults.put(LOG_LEVEL, IFernflowerLogger.Severity.INFO.name());
|
||||
defaults.put(MAX_PROCESSING_METHOD, "0");
|
||||
defaults.put(MAX_BYTES_CLASS_NOT_UNDER_PROGRESS, "0");
|
||||
defaults.put(MAX_BYTES_CLASS, "0");
|
||||
defaults.put(RENAME_ENTITIES, "0");
|
||||
defaults.put(NEW_LINE_SEPARATOR, (InterpreterUtil.IS_WINDOWS ? "0" : "1"));
|
||||
defaults.put(INDENT_STRING, " ");
|
||||
|
||||
@@ -63,7 +63,6 @@ class IdeaDecompiler : ClassFileDecompilers.Light() {
|
||||
IFernflowerPreferences.BANNER to BANNER,
|
||||
IFernflowerPreferences.MAX_PROCESSING_METHOD to 60,
|
||||
IFernflowerPreferences.MAX_BYTES_CLASS_NOT_UNDER_PROGRESS to 20_000, //approximately 2_000 lines
|
||||
IFernflowerPreferences.MAX_BYTES_CLASS to 150_000, //approximately 15_000 lines
|
||||
IFernflowerPreferences.INDENT_STRING to indent,
|
||||
IFernflowerPreferences.IGNORE_INVALID_BYTECODE to "1",
|
||||
IFernflowerPreferences.VERIFY_ANONYMOUS_CLASSES to "1",
|
||||
@@ -133,12 +132,9 @@ class IdeaDecompiler : ClassFileDecompilers.Light() {
|
||||
}
|
||||
else {
|
||||
val maxBytesNotUnderProgress = myOptions.value[IFernflowerPreferences.MAX_BYTES_CLASS_NOT_UNDER_PROGRESS]?.toString()?.toIntOrNull() ?: 0
|
||||
val maxBytes = myOptions.value[IFernflowerPreferences.MAX_BYTES_CLASS]?.toString()?.toIntOrNull() ?: 0
|
||||
return if (!ApplicationManager.getApplication().isUnitTestMode &&
|
||||
(maxBytesNotUnderProgress > 0 && EDT.isCurrentThreadEdt() &&
|
||||
file.length > maxBytesNotUnderProgress) ||
|
||||
(maxBytes > 0 && file.length > maxBytes && !ProgressManager.getInstance().hasProgressIndicator())
|
||||
) {
|
||||
file.length > maxBytesNotUnderProgress)) {
|
||||
ClsFileImpl.decompile(file)
|
||||
}
|
||||
else {
|
||||
|
||||
Reference in New Issue
Block a user