mirror of
https://gitflic.ru/project/openide/openide.git
synced 2025-12-16 14:23:28 +07:00
[java decompiler] using Fernflower engine for package-info and module-info files
GitOrigin-RevId: fedc59f6760b5b361e7ecdd7f19bfc4e8974ac48
This commit is contained in:
committed by
intellij-monorepo-bot
parent
279c209e61
commit
180f08b1c0
@@ -1,4 +1,4 @@
|
||||
// Copyright 2000-2020 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license that can be found in the LICENSE file.
|
||||
// Copyright 2000-2021 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license that can be found in the LICENSE file.
|
||||
package org.jetbrains.java.decompiler
|
||||
|
||||
import com.intellij.application.options.CodeStyle
|
||||
@@ -24,8 +24,6 @@ import com.intellij.openapi.util.registry.Registry
|
||||
import com.intellij.openapi.util.text.StringUtil
|
||||
import com.intellij.openapi.util.text.Strings
|
||||
import com.intellij.openapi.vfs.VirtualFile
|
||||
import com.intellij.psi.PsiJavaModule
|
||||
import com.intellij.psi.PsiPackage
|
||||
import com.intellij.psi.compiled.ClassFileDecompilers
|
||||
import com.intellij.psi.impl.compiled.ClsFileImpl
|
||||
import com.intellij.ui.components.LegalNoticeDialog
|
||||
@@ -36,7 +34,6 @@ import org.jetbrains.java.decompiler.main.extern.IFernflowerPreferences
|
||||
import org.jetbrains.java.decompiler.main.extern.IResultSaver
|
||||
import java.io.File
|
||||
import java.io.IOException
|
||||
import java.util.*
|
||||
import java.util.concurrent.Callable
|
||||
import java.util.concurrent.Future
|
||||
import java.util.jar.Manifest
|
||||
@@ -132,10 +129,6 @@ class IdeaDecompiler : ClassFileDecompilers.Light() {
|
||||
else ClsFileImpl.decompile(file)
|
||||
|
||||
private fun decompile(file: VirtualFile): CharSequence {
|
||||
if (PsiPackage.PACKAGE_INFO_CLS_FILE == file.name || PsiJavaModule.MODULE_INFO_CLS_FILE == file.name) {
|
||||
return ClsFileImpl.decompile(file)
|
||||
}
|
||||
|
||||
val indicator = ProgressManager.getInstance().progressIndicator
|
||||
if (indicator != null) {
|
||||
indicator.text = IdeaDecompilerBundle.message("decompiling.progress", file.name)
|
||||
|
||||
Reference in New Issue
Block a user