From b1933d27609864205866ce78df7639bbc7c582c6 Mon Sep 17 00:00:00 2001 From: Konloch Date: Wed, 21 Aug 2024 11:35:07 -0600 Subject: [PATCH] File Copyright Header Update --- .../club/bytecodeviewer/BytecodeViewer.java | 36 +++++++++---------- .../club/bytecodeviewer/CommandLineInput.java | 36 +++++++++---------- .../club/bytecodeviewer/Configuration.java | 22 ++++++------ .../club/bytecodeviewer/Constants.java | 16 ++++----- .../club/bytecodeviewer/GlobalHotKeys.java | 22 ++++++------ .../club/bytecodeviewer/Settings.java | 36 +++++++++---------- .../bytecodeviewer/SettingsSerializer.java | 28 +++++++-------- .../bytecodeviewer/api/ASMResourceUtil.java | 26 +++++++------- .../club/bytecodeviewer/api/ASMUtil.java | 14 ++++---- .../bytecode/club/bytecodeviewer/api/BCV.java | 36 +++++++++---------- .../club/bytecodeviewer/api/BytecodeHook.java | 4 +-- .../bytecodeviewer/api/ClassNodeLoader.java | 30 ++++++++-------- .../club/bytecodeviewer/api/ExceptionUI.java | 36 +++++++++---------- .../club/bytecodeviewer/api/Plugin.java | 16 ++++----- .../bytecodeviewer/api/PluginConsole.java | 14 ++++---- .../club/bytecodeviewer/bootloader/Boot.java | 36 +++++++++---------- .../bytecodeviewer/bootloader/BootState.java | 4 +-- .../bootloader/InitialBootScreen.java | 36 +++++++++---------- .../bootloader/InstallFatJar.java | 8 ++--- .../bootloader/UpdateCheck.java | 36 +++++++++---------- .../bootloader/classtree/ClassHelper.java | 14 ++++---- .../bootloader/classtree/ClassTree.java | 32 ++++++++--------- .../nullpermablehashmap/NullCreator.java | 4 +-- .../NullPermeableHashMap.java | 8 ++--- .../nullpermablehashmap/SetCreator.java | 10 +++--- .../nullpermablehashmap/ValueCreator.java | 4 +-- .../loader/AbstractLoaderFactory.java | 12 +++---- .../bootloader/loader/ClassPathLoader.java | 16 ++++----- .../bootloader/loader/ILoader.java | 8 ++--- .../bootloader/loader/LibraryClassLoader.java | 30 ++++++++-------- .../bootloader/loader/LoaderFactory.java | 4 +-- .../bootloader/resource/DataContainer.java | 12 +++---- .../external/EmptyExternalResource.java | 8 ++--- .../resource/external/ExternalLibrary.java | 34 +++++++++--------- .../resource/external/ExternalResource.java | 10 +++--- .../bootloader/resource/jar/JarInfo.java | 14 ++++---- .../bootloader/resource/jar/JarResource.java | 8 ++--- .../bootloader/resource/jar/JarType.java | 4 +-- .../resource/jar/contents/JarContents.java | 24 ++++++------- .../jar/contents/LocateableJarContents.java | 14 ++++---- .../bytecodeviewer/compilers/Compiler.java | 4 +-- .../compilers/InternalCompiler.java | 4 +-- .../compilers/impl/JavaCompiler.java | 36 +++++++++---------- .../compilers/impl/KrakatauAssembler.java | 36 +++++++++---------- .../compilers/impl/SmaliAssembler.java | 32 ++++++++--------- .../decompilers/Decompiler.java | 8 ++--- .../decompilers/InternalDecompiler.java | 8 ++--- .../bytecode/ClassNodeDecompiler.java | 28 +++++++-------- .../bytecode/FieldNodeDecompiler.java | 16 ++++----- .../bytecode/InstructionPattern.java | 36 +++++++++---------- .../bytecode/InstructionPrinter.java | 34 +++++++++--------- .../bytecode/InstructionSearcher.java | 20 +++++------ .../bytecode/MethodNodeDecompiler.java | 32 ++++++++--------- .../bytecode/PrefixedStringBuilder.java | 4 +-- .../decompilers/bytecode/TypeAndName.java | 8 ++--- .../impl/ASMTextifierDisassembler.java | 18 +++++----- .../decompilers/impl/ASMifierGenerator.java | 22 ++++++------ .../impl/BytecodeDisassembler.java | 16 ++++----- .../decompilers/impl/CFRDecompiler.java | 36 +++++++++---------- .../impl/FernFlowerDecompiler.java | 36 +++++++++---------- .../decompilers/impl/JADXDecompiler.java | 36 +++++++++---------- .../decompilers/impl/JDGUIDecompiler.java | 36 +++++++++---------- .../decompilers/impl/JavapDisassembler.java | 36 +++++++++---------- .../decompilers/impl/KrakatauDecompiler.java | 36 +++++++++---------- .../impl/KrakatauDisassembler.java | 36 +++++++++---------- .../decompilers/impl/ProcyonDecompiler.java | 36 +++++++++---------- .../decompilers/impl/SmaliDisassembler.java | 36 +++++++++---------- .../decompilers/jdgui/CommonPreferences.java | 18 ++++++++++ .../decompilers/jdgui/DirectoryLoader.java | 18 ++++++++++ .../decompilers/jdgui/JDGUIClassFileUtil.java | 18 ++++++++++ .../decompilers/jdgui/PlainTextPrinter.java | 18 ++++++++++ .../bytecodeviewer/gui/MainViewerGUI.java | 36 +++++++++---------- .../gui/components/AboutWindow.java | 24 ++++++------- .../gui/components/ButtonHoverAnimation.java | 14 ++++---- .../components/DecompilerViewComponent.java | 30 ++++++++-------- .../gui/components/ExportJar.java | 24 ++++++------- .../gui/components/ExtendedJOptionPane.java | 36 +++++++++---------- .../gui/components/FileChooser.java | 20 +++++------ .../gui/components/HTMLPane.java | 34 +++++++++--------- .../gui/components/ImageJLabel.java | 12 +++---- .../gui/components/JFrameConsole.java | 22 ++++++------ .../components/JFrameConsolePrintStream.java | 16 ++++----- .../gui/components/JFrameConsoleTabbed.java | 18 +++++----- .../gui/components/JMenuItemIcon.java | 16 ++++----- .../gui/components/JTextAreaOutputStream.java | 14 ++++---- .../gui/components/MaxWidthJLabel.java | 10 +++--- .../gui/components/MethodsRenderer.java | 24 ++++++------- .../gui/components/MultipleChoiceDialog.java | 12 +++---- .../gui/components/RunOptions.java | 26 +++++++------- .../gui/components/SearchableJTextArea.java | 36 +++++++++---------- .../components/SearchableRSyntaxTextArea.java | 36 +++++++++---------- .../gui/components/SettingsDialog.java | 30 ++++++++-------- .../gui/components/SystemConsole.java | 4 +-- .../gui/components/VisibleComponent.java | 18 +++++----- .../gui/components/WaitBusyIcon.java | 24 ++++++------- .../listeners/MouseClickedListener.java | 10 +++--- .../listeners/PressKeyListener.java | 10 +++--- .../listeners/ReleaseKeyListener.java | 10 +++--- .../gui/contextmenu/BuildContextMenuItem.java | 14 ++++---- .../gui/contextmenu/ContextMenu.java | 34 +++++++++--------- .../gui/contextmenu/ContextMenuItem.java | 4 +-- .../gui/contextmenu/ContextMenuType.java | 4 +-- .../contextmenu/resourcelist/Collapse.java | 18 +++++----- .../gui/contextmenu/resourcelist/Delete.java | 18 +++++----- .../gui/contextmenu/resourcelist/Expand.java | 18 +++++----- .../gui/contextmenu/resourcelist/New.java | 34 +++++++++--------- .../gui/contextmenu/resourcelist/Open.java | 18 +++++----- .../contextmenu/resourcelist/QuickEdit.java | 20 +++++------ .../contextmenu/resourcelist/QuickOpen.java | 20 +++++------ .../gui/contextmenu/searchbox/Open.java | 18 +++++----- .../gui/contextmenu/searchbox/QuickEdit.java | 20 +++++------ .../gui/contextmenu/searchbox/QuickOpen.java | 20 +++++------ .../hexviewer/BaseSwitchableSpinnerPanel.java | 18 ++++++++++ .../gui/hexviewer/BinaryStatusApi.java | 18 ++++++++++ .../gui/hexviewer/BinaryStatusPanel.java | 18 ++++++++++ .../gui/hexviewer/GoToBinaryPanel.java | 18 ++++++++++ .../gui/hexviewer/GoToBinaryPositionMode.java | 18 ++++++++++ .../gui/hexviewer/HexViewer.java | 18 ++++++++++ .../gui/hexviewer/OkCancelPanel.java | 18 ++++++++++ .../hexviewer/StatusCursorPositionFormat.java | 18 ++++++++++ .../hexviewer/StatusDocumentSizeFormat.java | 18 ++++++++++ .../gui/hexviewer/ValuesPanel.java | 18 ++++++++++ .../gui/plugins/GraphicalReflectionKit.java | 18 +++++----- .../plugins/MaliciousCodeScannerOptions.java | 30 ++++++++-------- .../gui/plugins/ReplaceStringsOptions.java | 26 +++++++------- .../ResourceListIconRenderer.java | 18 ++++++++++ .../gui/resourcelist/ResourceListPane.java | 36 +++++++++---------- .../gui/resourcelist/ResourceTree.java | 22 ++++++------ .../gui/resourcelist/ResourceTreeNode.java | 16 ++++----- .../gui/resourcelist/SearchKeyAdapter.java | 18 +++++----- .../gui/resourcesearch/PerformSearch.java | 24 ++++++------- .../gui/resourcesearch/SearchBoxPane.java | 36 +++++++++---------- .../gui/resourcesearch/SearchRadius.java | 4 +-- .../gui/resourcesearch/SearchType.java | 10 +++--- .../gui/resourceviewer/BytecodeViewPanel.java | 36 +++++++++---------- .../resourceviewer/CloseButtonComponent.java | 18 ++++++++++ .../DecompilerSelectionPane.java | 36 +++++++++---------- .../resourceviewer/DraggableTabbedPane.java | 18 ++++++++++ .../gui/resourceviewer/TabExitButton.java | 26 +++++++------- .../gui/resourceviewer/TabRemovalEvent.java | 16 ++++----- .../gui/resourceviewer/TabbedPane.java | 20 +++++------ .../gui/resourceviewer/Workspace.java | 36 +++++++++---------- .../gui/resourceviewer/WorkspaceRefresh.java | 14 ++++---- .../resourceviewer/WorkspaceRefreshEvent.java | 12 +++---- .../resourceviewer/viewer/ClassViewer.java | 36 +++++++++---------- .../viewer/ComponentViewer.java | 16 ++++----- .../gui/resourceviewer/viewer/FileViewer.java | 36 +++++++++---------- .../resourceviewer/viewer/ResourceViewer.java | 18 +++++----- .../viewer/synchronizedscroll/MethodData.java | 12 +++---- .../bytecodeviewer/gui/theme/LAFTheme.java | 36 +++++++++---------- .../bytecodeviewer/gui/theme/RSTATheme.java | 20 +++++------ .../gui/util/BytecodeViewPanelUpdater.java | 36 +++++++++---------- .../gui/util/StringMetricsUtil.java | 18 ++++++++++ .../malwarescanner/CodeScanner.java | 12 +++---- .../malwarescanner/MalwareCodeScanner.java | 24 ++++++------- .../malwarescanner/MalwareScan.java | 12 +++---- .../malwarescanner/MalwareScanModule.java | 24 ++++++------- .../malwarescanner/impl/AWTRobotScanner.java | 26 +++++++------- .../malwarescanner/impl/JavaIOScanner.java | 26 +++++++------- .../malwarescanner/impl/JavaNetScanner.java | 26 +++++++------- .../impl/JavaRuntimeScanner.java | 26 +++++++------- .../impl/NullSecurityManagerScanner.java | 30 ++++++++-------- .../impl/ReflectionScanner.java | 26 +++++++------- .../malwarescanner/impl/URLScanner.java | 26 +++++++------- .../util/MaliciousCodeOptions.java | 10 +++--- .../malwarescanner/util/SearchableString.java | 4 +-- .../obfuscators/JavaObfuscator.java | 16 ++++----- .../obfuscators/RenameClasses.java | 12 +++---- .../obfuscators/RenameFields.java | 14 ++++---- .../obfuscators/RenameMethods.java | 16 ++++----- .../obfuscators/mapping/HookMap.java | 16 ++++----- .../obfuscators/mapping/RefactorMapper.java | 20 +++++------ .../obfuscators/mapping/Refactorer.java | 14 ++++---- .../mapping/RemappingClassAdapter.java | 4 +-- .../mapping/data/FieldMappingData.java | 4 +-- .../obfuscators/mapping/data/MappingData.java | 4 +-- .../mapping/data/MethodMappingData.java | 4 +-- .../obfuscators/rename/RenameClasses.java | 20 +++++------ .../obfuscators/rename/RenameFields.java | 20 +++++------ .../obfuscators/rename/RenameMethods.java | 22 ++++++------ .../plugin/PluginLaunchStrategy.java | 10 +++--- .../bytecodeviewer/plugin/PluginManager.java | 36 +++++++++---------- .../bytecodeviewer/plugin/PluginTemplate.java | 16 ++++----- .../bytecodeviewer/plugin/PluginWriter.java | 36 +++++++++---------- .../preinstalled/AllatoriStringDecrypter.java | 36 +++++++++---------- .../preinstalled/ChangeClassFileVersions.java | 18 ++++++++++ .../preinstalled/CodeSequenceDiagram.java | 36 +++++++++---------- .../plugin/preinstalled/EZInjection.java | 36 +++++++++---------- .../preinstalled/MaliciousCodeScanner.java | 26 +++++++------- .../plugin/preinstalled/ReplaceStrings.java | 24 ++++++------- .../plugin/preinstalled/ShowAllStrings.java | 28 +++++++-------- .../plugin/preinstalled/ShowMainMethods.java | 18 +++++----- .../preinstalled/StackFramesRemover.java | 18 ++++++++++ .../ViewAPKAndroidPermissions.java | 18 ++++++++++ .../plugin/preinstalled/ViewManifest.java | 18 ++++++++++ .../preinstalled/ZKMStringDecrypter.java | 14 ++++---- .../preinstalled/ZStringArrayDecrypter.java | 30 ++++++++-------- .../CompiledJavaPluginLaunchStrategy.java | 30 ++++++++-------- .../GroovyPluginLaunchStrategy.java | 20 +++++------ .../strategies/JavaPluginLaunchStrategy.java | 14 ++++---- .../JavascriptPluginLaunchStrategy.java | 34 +++++++++--------- .../PythonPluginLaunchStrategy.java | 20 +++++------ .../strategies/RubyPluginLaunchStrategy.java | 20 +++++------ .../resources/ExternalResources.java | 36 +++++++++---------- .../resources/IconResources.java | 32 ++++++++--------- .../bytecodeviewer/resources/Resource.java | 18 +++++----- .../resources/ResourceContainer.java | 22 ++++++------ .../resources/ResourceContainerImporter.java | 32 ++++++++--------- .../resources/ResourceDecompiling.java | 36 +++++++++---------- .../resources/ResourceType.java | 12 +++---- .../resources/exporting/Export.java | 14 ++++---- .../resources/exporting/Exporter.java | 4 +-- .../resources/exporting/impl/APKExport.java | 36 +++++++++---------- .../resources/exporting/impl/DexExport.java | 32 ++++++++--------- .../exporting/impl/RunnableJarExporter.java | 22 ++++++------ .../resources/exporting/impl/ZipExport.java | 24 ++++++------- .../resources/importing/Import.java | 22 ++++++------ .../resources/importing/ImportResource.java | 14 ++++---- .../resources/importing/Importer.java | 8 ++--- .../importing/impl/APKResourceImporter.java | 34 +++++++++--------- .../importing/impl/ClassResourceImporter.java | 26 +++++++------- .../importing/impl/DEXResourceImporter.java | 30 ++++++++-------- .../impl/DirectoryResourceImporter.java | 36 +++++++++---------- .../importing/impl/FileResourceImporter.java | 16 ++++----- .../importing/impl/XAPKResourceImporter.java | 36 +++++++++---------- .../importing/impl/ZipResourceImporter.java | 16 ++++----- .../searching/BackgroundSearchThread.java | 8 ++--- .../searching/EnterKeyEvent.java | 12 +++---- .../searching/LDCSearchTreeNodeResult.java | 16 ++++----- .../searching/RegexInsnFinder.java | 36 +++++++++---------- .../bytecodeviewer/searching/SearchPanel.java | 12 +++---- .../searching/impl/FieldCallSearch.java | 20 +++++------ .../searching/impl/LDCSearch.java | 36 +++++++++---------- .../impl/MemberWithAnnotationSearch.java | 36 +++++++++---------- .../searching/impl/MethodCallSearch.java | 36 +++++++++---------- .../searching/impl/RegexSearch.java | 36 +++++++++---------- .../bytecodeviewer/translation/Language.java | 36 +++++++++---------- .../TranslatedComponentReference.java | 10 +++--- .../translation/TranslatedComponents.java | 4 +-- .../translation/TranslatedStrings.java | 14 ++++---- .../TranslatedDefaultMutableTreeNode.java | 14 ++++---- .../components/TranslatedJButton.java | 12 +++---- .../components/TranslatedJCheckBox.java | 12 +++---- .../TranslatedJCheckBoxMenuItem.java | 12 +++---- .../components/TranslatedJLabel.java | 12 +++---- .../components/TranslatedJMenu.java | 12 +++---- .../components/TranslatedJMenuItem.java | 12 +++---- .../TranslatedJRadioButtonMenuItem.java | 12 +++---- .../components/TranslatedJTextField.java | 12 +++---- .../TranslatedVisibleComponent.java | 12 +++---- .../club/bytecodeviewer/util/APKTool.java | 20 +++++------ .../club/bytecodeviewer/util/BootCheck.java | 30 ++++++++-------- .../bytecodeviewer/util/ClassFileUtils.java | 14 ++++---- .../club/bytecodeviewer/util/Dex2Jar.java | 24 ++++++------- .../club/bytecodeviewer/util/DialogUtils.java | 32 ++++++++--------- .../club/bytecodeviewer/util/EncodeUtils.java | 16 ++++----- .../club/bytecodeviewer/util/Enjarify.java | 20 +++++------ .../club/bytecodeviewer/util/FileDrop.java | 36 +++++++++---------- .../bytecodeviewer/util/FileHeaderUtils.java | 8 ++--- .../bytecodeviewer/util/JRTExtractor.java | 30 ++++++++-------- .../bytecodeviewer/util/JTextAreaUtils.java | 18 +++++----- .../club/bytecodeviewer/util/JarUtils.java | 36 +++++++++---------- .../bytecodeviewer/util/KeyEventDispatch.java | 14 ++++---- .../bytecodeviewer/util/LazyNameUtil.java | 14 ++++---- .../bytecodeviewer/util/MethodParser.java | 16 ++++----- .../club/bytecodeviewer/util/MiscUtils.java | 36 +++++++++---------- .../util/NewlineOutputStream.java | 16 ++++----- .../club/bytecodeviewer/util/PingBack.java | 12 +++---- .../club/bytecodeviewer/util/SecurityMan.java | 36 +++++++++---------- .../club/bytecodeviewer/util/SeqAndCount.java | 4 +-- .../club/bytecodeviewer/util/SleepUtil.java | 18 ++++++++++ .../bytecodeviewer/util/SyntaxLanguage.java | 16 ++++----- .../util/WindowClosingAdapter.java | 12 +++---- .../util/WindowStateChangeAdapter.java | 14 ++++---- .../club/bytecodeviewer/util/ZipUtils.java | 28 +++++++-------- .../AbstractJTabbedPanePopupMenuHandler.java | 18 ++++++++++ .../tabpopup/ITabPopupEventListener.java | 18 ++++++++++ .../ITabZeroComponentEventListener.java | 18 ++++++++++ .../JTabbedPanePopupEventHandler.java | 18 ++++++++++ .../club/uikit/tabpopup/TabPopupEvent.java | 18 ++++++++++ .../tabpopup/closer/JTabbedPaneCloser.java | 18 ++++++++++ .../JTabbedPanePopupMenuTabsCloser.java | 18 ++++++++++ .../PopupMenuTabsCloseConfiguration.java | 18 ++++++++++ 283 files changed, 3237 insertions(+), 2677 deletions(-) diff --git a/src/main/java/the/bytecode/club/bytecodeviewer/BytecodeViewer.java b/src/main/java/the/bytecode/club/bytecodeviewer/BytecodeViewer.java index ad526070..df6d5039 100644 --- a/src/main/java/the/bytecode/club/bytecodeviewer/BytecodeViewer.java +++ b/src/main/java/the/bytecode/club/bytecodeviewer/BytecodeViewer.java @@ -1,3 +1,21 @@ +/*************************************************************************** + * Bytecode Viewer (BCV) - Java & Android Reverse Engineering Suite * + * Copyright (C) 2014 Konloch - Konloch.com / BytecodeViewer.com * + * * + * This program is free software: you can redistribute it and/or modify * + * it under the terms of the GNU General Public License as published by * + * the Free Software Foundation, either version 3 of the License, or * + * (at your option) any later version. * + * * + * This program is distributed in the hope that it will be useful, * + * but WITHOUT ANY WARRANTY; without even the implied warranty of * + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * + * GNU General Public License for more details. * + * * + * You should have received a copy of the GNU General Public License * + * along with this program. If not, see . * + ***************************************************************************/ + package the.bytecode.club.bytecodeviewer; import com.google.gson.Gson; @@ -46,24 +64,6 @@ import static the.bytecode.club.bytecodeviewer.Constants.FAT_JAR; import static the.bytecode.club.bytecodeviewer.Constants.VERSION; import static the.bytecode.club.bytecodeviewer.Constants.tempDirectory; -/*************************************************************************** - * Bytecode Viewer (BCV) - Java & Android Reverse Engineering Suite * - * Copyright (C) 2014 Konloch - Konloch.com / BytecodeViewer.com * - * * - * This program is free software: you can redistribute it and/or modify * - * it under the terms of the GNU General Public License as published by * - * the Free Software Foundation, either version 3 of the License, or * - * (at your option) any later version. * - * * - * This program is distributed in the hope that it will be useful, * - * but WITHOUT ANY WARRANTY; without even the implied warranty of * - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * - * GNU General Public License for more details. * - * * - * You should have received a copy of the GNU General Public License * - * along with this program. If not, see . * - ***************************************************************************/ - /** * A lightweight Java Reverse Engineering suite, developed by Konloch - http://konloch.me * diff --git a/src/main/java/the/bytecode/club/bytecodeviewer/CommandLineInput.java b/src/main/java/the/bytecode/club/bytecodeviewer/CommandLineInput.java index 55ebed65..c9437e88 100644 --- a/src/main/java/the/bytecode/club/bytecodeviewer/CommandLineInput.java +++ b/src/main/java/the/bytecode/club/bytecodeviewer/CommandLineInput.java @@ -1,3 +1,21 @@ +/*************************************************************************** + * Bytecode Viewer (BCV) - Java & Android Reverse Engineering Suite * + * Copyright (C) 2014 Konloch - Konloch.com / BytecodeViewer.com * + * * + * This program is free software: you can redistribute it and/or modify * + * it under the terms of the GNU General Public License as published by * + * the Free Software Foundation, either version 3 of the License, or * + * (at your option) any later version. * + * * + * This program is distributed in the hope that it will be useful, * + * but WITHOUT ANY WARRANTY; without even the implied warranty of * + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * + * GNU General Public License for more details. * + * * + * You should have received a copy of the GNU General Public License * + * along with this program. If not, see . * + ***************************************************************************/ + package the.bytecode.club.bytecodeviewer; import java.io.File; @@ -17,24 +35,6 @@ import static the.bytecode.club.bytecodeviewer.Constants.VERSION; import static the.bytecode.club.bytecodeviewer.Constants.fs; import static the.bytecode.club.bytecodeviewer.Constants.tempDirectory; -/*************************************************************************** - * Bytecode Viewer (BCV) - Java & Android Reverse Engineering Suite * - * Copyright (C) 2014 Konloch - Konloch.com / BytecodeViewer.com * - * * - * This program is free software: you can redistribute it and/or modify * - * it under the terms of the GNU General Public License as published by * - * the Free Software Foundation, either version 3 of the License, or * - * (at your option) any later version. * - * * - * This program is distributed in the hope that it will be useful, * - * but WITHOUT ANY WARRANTY; without even the implied warranty of * - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * - * GNU General Public License for more details. * - * * - * You should have received a copy of the GNU General Public License * - * along with this program. If not, see . * - ***************************************************************************/ - /** * Used to allow BCV to be integrated as CLI instead of GUI. * diff --git a/src/main/java/the/bytecode/club/bytecodeviewer/Configuration.java b/src/main/java/the/bytecode/club/bytecodeviewer/Configuration.java index 26f5e131..970f627b 100644 --- a/src/main/java/the/bytecode/club/bytecodeviewer/Configuration.java +++ b/src/main/java/the/bytecode/club/bytecodeviewer/Configuration.java @@ -1,14 +1,3 @@ -package the.bytecode.club.bytecodeviewer; - -import java.io.File; -import java.io.IOException; -import java.util.Locale; - -import the.bytecode.club.bytecodeviewer.bootloader.BootState; -import the.bytecode.club.bytecodeviewer.gui.theme.LAFTheme; -import the.bytecode.club.bytecodeviewer.gui.theme.RSTATheme; -import the.bytecode.club.bytecodeviewer.translation.Language; - /*************************************************************************** * Bytecode Viewer (BCV) - Java & Android Reverse Engineering Suite * * Copyright (C) 2014 Konloch - Konloch.com / BytecodeViewer.com * @@ -27,6 +16,17 @@ import the.bytecode.club.bytecodeviewer.translation.Language; * along with this program. If not, see . * ***************************************************************************/ +package the.bytecode.club.bytecodeviewer; + +import java.io.File; +import java.io.IOException; +import java.util.Locale; + +import the.bytecode.club.bytecodeviewer.bootloader.BootState; +import the.bytecode.club.bytecodeviewer.gui.theme.LAFTheme; +import the.bytecode.club.bytecodeviewer.gui.theme.RSTATheme; +import the.bytecode.club.bytecodeviewer.translation.Language; + /** * A collection of variables that can be configured through the settings menu or some form of UI/plugin * diff --git a/src/main/java/the/bytecode/club/bytecodeviewer/Constants.java b/src/main/java/the/bytecode/club/bytecodeviewer/Constants.java index 5ea67011..cec9e519 100644 --- a/src/main/java/the/bytecode/club/bytecodeviewer/Constants.java +++ b/src/main/java/the/bytecode/club/bytecodeviewer/Constants.java @@ -1,11 +1,3 @@ -package the.bytecode.club.bytecodeviewer; - -import java.io.File; -import java.io.PrintStream; - -import org.objectweb.asm.Opcodes; -import the.bytecode.club.bytecodeviewer.resources.ResourceType; - /*************************************************************************** * Bytecode Viewer (BCV) - Java & Android Reverse Engineering Suite * * Copyright (C) 2014 Konloch - Konloch.com / BytecodeViewer.com * @@ -24,6 +16,14 @@ import the.bytecode.club.bytecodeviewer.resources.ResourceType; * along with this program. If not, see . * ***************************************************************************/ +package the.bytecode.club.bytecodeviewer; + +import java.io.File; +import java.io.PrintStream; + +import org.objectweb.asm.Opcodes; +import the.bytecode.club.bytecodeviewer.resources.ResourceType; + /** * General program constants, to use this class include everything as a wildcard static import: * import static the.bytecode.club.bytecodeviewer.Constants.*; diff --git a/src/main/java/the/bytecode/club/bytecodeviewer/GlobalHotKeys.java b/src/main/java/the/bytecode/club/bytecodeviewer/GlobalHotKeys.java index ec70ae3a..6f15004a 100644 --- a/src/main/java/the/bytecode/club/bytecodeviewer/GlobalHotKeys.java +++ b/src/main/java/the/bytecode/club/bytecodeviewer/GlobalHotKeys.java @@ -1,14 +1,3 @@ -package the.bytecode.club.bytecodeviewer; - -import java.awt.event.KeyEvent; -import java.io.File; -import javax.swing.JFileChooser; -import the.bytecode.club.bytecodeviewer.gui.components.FileChooser; -import the.bytecode.club.bytecodeviewer.gui.components.RunOptions; -import the.bytecode.club.bytecodeviewer.util.DialogUtils; -import the.bytecode.club.bytecodeviewer.util.JarUtils; -import the.bytecode.club.bytecodeviewer.util.MiscUtils; - /*************************************************************************** * Bytecode Viewer (BCV) - Java & Android Reverse Engineering Suite * * Copyright (C) 2014 Konloch - Konloch.com / BytecodeViewer.com * @@ -27,6 +16,17 @@ import the.bytecode.club.bytecodeviewer.util.MiscUtils; * along with this program. If not, see . * ***************************************************************************/ +package the.bytecode.club.bytecodeviewer; + +import java.awt.event.KeyEvent; +import java.io.File; +import javax.swing.JFileChooser; +import the.bytecode.club.bytecodeviewer.gui.components.FileChooser; +import the.bytecode.club.bytecodeviewer.gui.components.RunOptions; +import the.bytecode.club.bytecodeviewer.util.DialogUtils; +import the.bytecode.club.bytecodeviewer.util.JarUtils; +import the.bytecode.club.bytecodeviewer.util.MiscUtils; + /** * Whenever a key is pressed on the swing UI it should get logged here * diff --git a/src/main/java/the/bytecode/club/bytecodeviewer/Settings.java b/src/main/java/the/bytecode/club/bytecodeviewer/Settings.java index 29d31488..0dc56a96 100644 --- a/src/main/java/the/bytecode/club/bytecodeviewer/Settings.java +++ b/src/main/java/the/bytecode/club/bytecodeviewer/Settings.java @@ -1,21 +1,3 @@ -package the.bytecode.club.bytecodeviewer; - -import com.google.gson.reflect.TypeToken; -import java.io.File; -import java.util.ArrayList; -import java.util.List; -import javax.swing.JMenuItem; -import me.konloch.kontainer.io.DiskReader; -import me.konloch.kontainer.io.DiskWriter; -import the.bytecode.club.bytecodeviewer.util.MiscUtils; - -import static the.bytecode.club.bytecodeviewer.BytecodeViewer.gson; -import static the.bytecode.club.bytecodeviewer.Configuration.maxRecentFiles; -import static the.bytecode.club.bytecodeviewer.Constants.filesName; -import static the.bytecode.club.bytecodeviewer.Constants.fs; -import static the.bytecode.club.bytecodeviewer.Constants.getBCVDirectory; -import static the.bytecode.club.bytecodeviewer.Constants.pluginsName; - /*************************************************************************** * Bytecode Viewer (BCV) - Java & Android Reverse Engineering Suite * * Copyright (C) 2014 Konloch - Konloch.com / BytecodeViewer.com * @@ -34,6 +16,24 @@ import static the.bytecode.club.bytecodeviewer.Constants.pluginsName; * along with this program. If not, see . * ***************************************************************************/ +package the.bytecode.club.bytecodeviewer; + +import com.google.gson.reflect.TypeToken; +import java.io.File; +import java.util.ArrayList; +import java.util.List; +import javax.swing.JMenuItem; +import me.konloch.kontainer.io.DiskReader; +import me.konloch.kontainer.io.DiskWriter; +import the.bytecode.club.bytecodeviewer.util.MiscUtils; + +import static the.bytecode.club.bytecodeviewer.BytecodeViewer.gson; +import static the.bytecode.club.bytecodeviewer.Configuration.maxRecentFiles; +import static the.bytecode.club.bytecodeviewer.Constants.filesName; +import static the.bytecode.club.bytecodeviewer.Constants.fs; +import static the.bytecode.club.bytecodeviewer.Constants.getBCVDirectory; +import static the.bytecode.club.bytecodeviewer.Constants.pluginsName; + /** * @author Konloch * @since 6/29/2021 diff --git a/src/main/java/the/bytecode/club/bytecodeviewer/SettingsSerializer.java b/src/main/java/the/bytecode/club/bytecodeviewer/SettingsSerializer.java index 2caee043..5a0515ee 100644 --- a/src/main/java/the/bytecode/club/bytecodeviewer/SettingsSerializer.java +++ b/src/main/java/the/bytecode/club/bytecodeviewer/SettingsSerializer.java @@ -1,17 +1,3 @@ -package the.bytecode.club.bytecodeviewer; - -import java.io.File; -import javax.swing.JFrame; -import me.konloch.kontainer.io.DiskReader; -import me.konloch.kontainer.io.DiskWriter; -import the.bytecode.club.bytecodeviewer.decompilers.Decompiler; -import the.bytecode.club.bytecodeviewer.gui.theme.LAFTheme; -import the.bytecode.club.bytecodeviewer.gui.theme.RSTATheme; -import the.bytecode.club.bytecodeviewer.translation.Language; - -import static the.bytecode.club.bytecodeviewer.Constants.VERSION; -import static the.bytecode.club.bytecodeviewer.Constants.settingsName; - /*************************************************************************** * Bytecode Viewer (BCV) - Java & Android Reverse Engineering Suite * * Copyright (C) 2014 Konloch - Konloch.com / BytecodeViewer.com * @@ -30,6 +16,20 @@ import static the.bytecode.club.bytecodeviewer.Constants.settingsName; * along with this program. If not, see . * ***************************************************************************/ +package the.bytecode.club.bytecodeviewer; + +import java.io.File; +import javax.swing.JFrame; +import me.konloch.kontainer.io.DiskReader; +import me.konloch.kontainer.io.DiskWriter; +import the.bytecode.club.bytecodeviewer.decompilers.Decompiler; +import the.bytecode.club.bytecodeviewer.gui.theme.LAFTheme; +import the.bytecode.club.bytecodeviewer.gui.theme.RSTATheme; +import the.bytecode.club.bytecodeviewer.translation.Language; + +import static the.bytecode.club.bytecodeviewer.Constants.VERSION; +import static the.bytecode.club.bytecodeviewer.Constants.settingsName; + /** * Used to handle loading/saving the GUI (options). * diff --git a/src/main/java/the/bytecode/club/bytecodeviewer/api/ASMResourceUtil.java b/src/main/java/the/bytecode/club/bytecodeviewer/api/ASMResourceUtil.java index c5b11beb..ac4ff40f 100644 --- a/src/main/java/the/bytecode/club/bytecodeviewer/api/ASMResourceUtil.java +++ b/src/main/java/the/bytecode/club/bytecodeviewer/api/ASMResourceUtil.java @@ -1,16 +1,3 @@ -package the.bytecode.club.bytecodeviewer.api; - -import org.objectweb.asm.tree.AbstractInsnNode; -import org.objectweb.asm.tree.ClassNode; -import org.objectweb.asm.tree.FieldInsnNode; -import org.objectweb.asm.tree.FieldNode; -import org.objectweb.asm.tree.InnerClassNode; -import org.objectweb.asm.tree.LocalVariableNode; -import org.objectweb.asm.tree.MethodInsnNode; -import org.objectweb.asm.tree.MethodNode; -import org.objectweb.asm.tree.TypeInsnNode; -import the.bytecode.club.bytecodeviewer.BytecodeViewer; - /*************************************************************************** * Bytecode Viewer (BCV) - Java & Android Reverse Engineering Suite * * Copyright (C) 2014 Konloch - Konloch.com / BytecodeViewer.com * @@ -29,6 +16,19 @@ import the.bytecode.club.bytecodeviewer.BytecodeViewer; * along with this program. If not, see . * ***************************************************************************/ +package the.bytecode.club.bytecodeviewer.api; + +import org.objectweb.asm.tree.AbstractInsnNode; +import org.objectweb.asm.tree.ClassNode; +import org.objectweb.asm.tree.FieldInsnNode; +import org.objectweb.asm.tree.FieldNode; +import org.objectweb.asm.tree.InnerClassNode; +import org.objectweb.asm.tree.LocalVariableNode; +import org.objectweb.asm.tree.MethodInsnNode; +import org.objectweb.asm.tree.MethodNode; +import org.objectweb.asm.tree.TypeInsnNode; +import the.bytecode.club.bytecodeviewer.BytecodeViewer; + /** * Used to interact with classnodes loaded inside of BCV as resources * diff --git a/src/main/java/the/bytecode/club/bytecodeviewer/api/ASMUtil.java b/src/main/java/the/bytecode/club/bytecodeviewer/api/ASMUtil.java index e1373be1..1a874cfd 100644 --- a/src/main/java/the/bytecode/club/bytecodeviewer/api/ASMUtil.java +++ b/src/main/java/the/bytecode/club/bytecodeviewer/api/ASMUtil.java @@ -1,10 +1,3 @@ -package the.bytecode.club.bytecodeviewer.api; - -import org.objectweb.asm.ClassReader; -import org.objectweb.asm.ClassWriter; -import org.objectweb.asm.tree.ClassNode; -import org.objectweb.asm.tree.MethodNode; - /*************************************************************************** * Bytecode Viewer (BCV) - Java & Android Reverse Engineering Suite * * Copyright (C) 2014 Konloch - Konloch.com / BytecodeViewer.com * @@ -23,6 +16,13 @@ import org.objectweb.asm.tree.MethodNode; * along with this program. If not, see . * ***************************************************************************/ +package the.bytecode.club.bytecodeviewer.api; + +import org.objectweb.asm.ClassReader; +import org.objectweb.asm.ClassWriter; +import org.objectweb.asm.tree.ClassNode; +import org.objectweb.asm.tree.MethodNode; + /** * @author Konloch * @since 6/27/2021 diff --git a/src/main/java/the/bytecode/club/bytecodeviewer/api/BCV.java b/src/main/java/the/bytecode/club/bytecodeviewer/api/BCV.java index 39d0e106..986a2458 100644 --- a/src/main/java/the/bytecode/club/bytecodeviewer/api/BCV.java +++ b/src/main/java/the/bytecode/club/bytecodeviewer/api/BCV.java @@ -1,3 +1,21 @@ +/*************************************************************************** + * Bytecode Viewer (BCV) - Java & Android Reverse Engineering Suite * + * Copyright (C) 2014 Konloch - Konloch.com / BytecodeViewer.com * + * * + * This program is free software: you can redistribute it and/or modify * + * it under the terms of the GNU General Public License as published by * + * the Free Software Foundation, either version 3 of the License, or * + * (at your option) any later version. * + * * + * This program is distributed in the hope that it will be useful, * + * but WITHOUT ANY WARRANTY; without even the implied warranty of * + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * + * GNU General Public License for more details. * + * * + * You should have received a copy of the GNU General Public License * + * along with this program. If not, see . * + ***************************************************************************/ + package the.bytecode.club.bytecodeviewer.api; import java.io.File; @@ -28,24 +46,6 @@ import static the.bytecode.club.bytecodeviewer.Constants.DEV_MODE; import static the.bytecode.club.bytecodeviewer.Constants.fs; import static the.bytecode.club.bytecodeviewer.Constants.tempDirectory; -/*************************************************************************** - * Bytecode Viewer (BCV) - Java & Android Reverse Engineering Suite * - * Copyright (C) 2014 Konloch - Konloch.com / BytecodeViewer.com * - * * - * This program is free software: you can redistribute it and/or modify * - * it under the terms of the GNU General Public License as published by * - * the Free Software Foundation, either version 3 of the License, or * - * (at your option) any later version. * - * * - * This program is distributed in the hope that it will be useful, * - * but WITHOUT ANY WARRANTY; without even the implied warranty of * - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * - * GNU General Public License for more details. * - * * - * You should have received a copy of the GNU General Public License * - * along with this program. If not, see . * - ***************************************************************************/ - /** * An easier to use version of the BCV API, this is designed for anyone who wants to extend BCV, in any shape * or form. One way of doing that is through the plugin system. diff --git a/src/main/java/the/bytecode/club/bytecodeviewer/api/BytecodeHook.java b/src/main/java/the/bytecode/club/bytecodeviewer/api/BytecodeHook.java index bb8dbab1..1e4ec956 100644 --- a/src/main/java/the/bytecode/club/bytecodeviewer/api/BytecodeHook.java +++ b/src/main/java/the/bytecode/club/bytecodeviewer/api/BytecodeHook.java @@ -1,5 +1,3 @@ -package the.bytecode.club.bytecodeviewer.api; - /*************************************************************************** * Bytecode Viewer (BCV) - Java & Android Reverse Engineering Suite * * Copyright (C) 2014 Konloch - Konloch.com / BytecodeViewer.com * @@ -18,6 +16,8 @@ package the.bytecode.club.bytecodeviewer.api; * along with this program. If not, see . * ***************************************************************************/ +package the.bytecode.club.bytecodeviewer.api; + /** * Used for BCV-Injected bytecode hooks * diff --git a/src/main/java/the/bytecode/club/bytecodeviewer/api/ClassNodeLoader.java b/src/main/java/the/bytecode/club/bytecodeviewer/api/ClassNodeLoader.java index 897eec9b..2b7e9077 100644 --- a/src/main/java/the/bytecode/club/bytecodeviewer/api/ClassNodeLoader.java +++ b/src/main/java/the/bytecode/club/bytecodeviewer/api/ClassNodeLoader.java @@ -1,18 +1,3 @@ -package the.bytecode.club.bytecodeviewer.api; - -import java.security.AllPermission; -import java.security.CodeSource; -import java.security.Permissions; -import java.security.ProtectionDomain; -import java.security.cert.Certificate; -import java.util.ArrayList; -import java.util.Collection; -import java.util.HashMap; -import java.util.List; -import java.util.Map; -import org.objectweb.asm.ClassWriter; -import org.objectweb.asm.tree.ClassNode; - /*************************************************************************** * Bytecode Viewer (BCV) - Java & Android Reverse Engineering Suite * * Copyright (C) 2014 Konloch - Konloch.com / BytecodeViewer.com * @@ -31,6 +16,21 @@ import org.objectweb.asm.tree.ClassNode; * along with this program. If not, see . * ***************************************************************************/ +package the.bytecode.club.bytecodeviewer.api; + +import java.security.AllPermission; +import java.security.CodeSource; +import java.security.Permissions; +import java.security.ProtectionDomain; +import java.security.cert.Certificate; +import java.util.ArrayList; +import java.util.Collection; +import java.util.HashMap; +import java.util.List; +import java.util.Map; +import org.objectweb.asm.ClassWriter; +import org.objectweb.asm.tree.ClassNode; + /** * @author Demmonic */ diff --git a/src/main/java/the/bytecode/club/bytecodeviewer/api/ExceptionUI.java b/src/main/java/the/bytecode/club/bytecodeviewer/api/ExceptionUI.java index b0f8660b..41c1e520 100644 --- a/src/main/java/the/bytecode/club/bytecodeviewer/api/ExceptionUI.java +++ b/src/main/java/the/bytecode/club/bytecodeviewer/api/ExceptionUI.java @@ -1,21 +1,3 @@ -package the.bytecode.club.bytecodeviewer.api; - -import java.awt.CardLayout; -import java.awt.Dimension; -import java.io.IOException; -import java.io.PrintWriter; -import java.io.StringWriter; -import the.bytecode.club.bytecodeviewer.BytecodeViewer; -import the.bytecode.club.bytecodeviewer.Configuration; -import the.bytecode.club.bytecodeviewer.gui.components.JFrameConsole; -import the.bytecode.club.bytecodeviewer.plugin.PluginManager; -import the.bytecode.club.bytecodeviewer.resources.IconResources; -import the.bytecode.club.bytecodeviewer.translation.TranslatedStrings; - -import static the.bytecode.club.bytecodeviewer.Constants.FAT_JAR; -import static the.bytecode.club.bytecodeviewer.Constants.VERSION; -import static the.bytecode.club.bytecodeviewer.Constants.nl; - /*************************************************************************** * Bytecode Viewer (BCV) - Java & Android Reverse Engineering Suite * * Copyright (C) 2014 Konloch - Konloch.com / BytecodeViewer.com * @@ -34,6 +16,24 @@ import static the.bytecode.club.bytecodeviewer.Constants.nl; * along with this program. If not, see . * ***************************************************************************/ +package the.bytecode.club.bytecodeviewer.api; + +import java.awt.CardLayout; +import java.awt.Dimension; +import java.io.IOException; +import java.io.PrintWriter; +import java.io.StringWriter; +import the.bytecode.club.bytecodeviewer.BytecodeViewer; +import the.bytecode.club.bytecodeviewer.Configuration; +import the.bytecode.club.bytecodeviewer.gui.components.JFrameConsole; +import the.bytecode.club.bytecodeviewer.plugin.PluginManager; +import the.bytecode.club.bytecodeviewer.resources.IconResources; +import the.bytecode.club.bytecodeviewer.translation.TranslatedStrings; + +import static the.bytecode.club.bytecodeviewer.Constants.FAT_JAR; +import static the.bytecode.club.bytecodeviewer.Constants.VERSION; +import static the.bytecode.club.bytecodeviewer.Constants.nl; + /** * A simple class designed to show exceptions in the UI. * diff --git a/src/main/java/the/bytecode/club/bytecodeviewer/api/Plugin.java b/src/main/java/the/bytecode/club/bytecodeviewer/api/Plugin.java index 2e59b0bd..58533f87 100644 --- a/src/main/java/the/bytecode/club/bytecodeviewer/api/Plugin.java +++ b/src/main/java/the/bytecode/club/bytecodeviewer/api/Plugin.java @@ -1,11 +1,3 @@ -package the.bytecode.club.bytecodeviewer.api; - -import java.util.ArrayList; -import java.util.List; -import org.objectweb.asm.tree.ClassNode; -import the.bytecode.club.bytecodeviewer.BytecodeViewer; -import the.bytecode.club.bytecodeviewer.resources.ResourceContainer; - /*************************************************************************** * Bytecode Viewer (BCV) - Java & Android Reverse Engineering Suite * * Copyright (C) 2014 Konloch - Konloch.com / BytecodeViewer.com * @@ -24,6 +16,14 @@ import the.bytecode.club.bytecodeviewer.resources.ResourceContainer; * along with this program. If not, see . * ***************************************************************************/ +package the.bytecode.club.bytecodeviewer.api; + +import java.util.ArrayList; +import java.util.List; +import org.objectweb.asm.tree.ClassNode; +import the.bytecode.club.bytecodeviewer.BytecodeViewer; +import the.bytecode.club.bytecodeviewer.resources.ResourceContainer; + /** * A simple plugin class, it will run the plugin in a background thread. * diff --git a/src/main/java/the/bytecode/club/bytecodeviewer/api/PluginConsole.java b/src/main/java/the/bytecode/club/bytecodeviewer/api/PluginConsole.java index 176d10fe..53a5aba6 100644 --- a/src/main/java/the/bytecode/club/bytecodeviewer/api/PluginConsole.java +++ b/src/main/java/the/bytecode/club/bytecodeviewer/api/PluginConsole.java @@ -1,10 +1,3 @@ -package the.bytecode.club.bytecodeviewer.api; - -import the.bytecode.club.bytecodeviewer.Configuration; -import the.bytecode.club.bytecodeviewer.gui.components.SystemConsole; -import the.bytecode.club.bytecodeviewer.plugin.PluginManager; -import the.bytecode.club.bytecodeviewer.translation.TranslatedStrings; - /*************************************************************************** * Bytecode Viewer (BCV) - Java & Android Reverse Engineering Suite * * Copyright (C) 2014 Konloch - Konloch.com / BytecodeViewer.com * @@ -23,6 +16,13 @@ import the.bytecode.club.bytecodeviewer.translation.TranslatedStrings; * along with this program. If not, see . * ***************************************************************************/ +package the.bytecode.club.bytecodeviewer.api; + +import the.bytecode.club.bytecodeviewer.Configuration; +import the.bytecode.club.bytecodeviewer.gui.components.SystemConsole; +import the.bytecode.club.bytecodeviewer.plugin.PluginManager; +import the.bytecode.club.bytecodeviewer.translation.TranslatedStrings; + /** * A simple console GUI. * diff --git a/src/main/java/the/bytecode/club/bytecodeviewer/bootloader/Boot.java b/src/main/java/the/bytecode/club/bytecodeviewer/bootloader/Boot.java index 00a8e425..b57db929 100644 --- a/src/main/java/the/bytecode/club/bytecodeviewer/bootloader/Boot.java +++ b/src/main/java/the/bytecode/club/bytecodeviewer/bootloader/Boot.java @@ -1,3 +1,21 @@ +/*************************************************************************** + * Bytecode Viewer (BCV) - Java & Android Reverse Engineering Suite * + * Copyright (C) 2014 Konloch - Konloch.com / BytecodeViewer.com * + * * + * This program is free software: you can redistribute it and/or modify * + * it under the terms of the GNU General Public License as published by * + * the Free Software Foundation, either version 3 of the License, or * + * (at your option) any later version. * + * * + * This program is distributed in the hope that it will be useful, * + * but WITHOUT ANY WARRANTY; without even the implied warranty of * + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * + * GNU General Public License for more details. * + * * + * You should have received a copy of the GNU General Public License * + * along with this program. If not, see . * + ***************************************************************************/ + package the.bytecode.club.bytecodeviewer.bootloader; import java.io.File; @@ -28,24 +46,6 @@ import static the.bytecode.club.bytecodeviewer.Constants.krakatauVersion; import static the.bytecode.club.bytecodeviewer.Constants.krakatauWorkingDirectory; import static the.bytecode.club.bytecodeviewer.Constants.nl; -/*************************************************************************** - * Bytecode Viewer (BCV) - Java & Android Reverse Engineering Suite * - * Copyright (C) 2014 Konloch - Konloch.com / BytecodeViewer.com * - * * - * This program is free software: you can redistribute it and/or modify * - * it under the terms of the GNU General Public License as published by * - * the Free Software Foundation, either version 3 of the License, or * - * (at your option) any later version. * - * * - * This program is distributed in the hope that it will be useful, * - * but WITHOUT ANY WARRANTY; without even the implied warranty of * - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * - * GNU General Public License for more details. * - * * - * You should have received a copy of the GNU General Public License * - * along with this program. If not, see . * - ***************************************************************************/ - /** * @author Konloch * @author Bibl (don't ban me pls) diff --git a/src/main/java/the/bytecode/club/bytecodeviewer/bootloader/BootState.java b/src/main/java/the/bytecode/club/bytecodeviewer/bootloader/BootState.java index 38e953ea..068d9e59 100644 --- a/src/main/java/the/bytecode/club/bytecodeviewer/bootloader/BootState.java +++ b/src/main/java/the/bytecode/club/bytecodeviewer/bootloader/BootState.java @@ -1,5 +1,3 @@ -package the.bytecode.club.bytecodeviewer.bootloader; - /*************************************************************************** * Bytecode Viewer (BCV) - Java & Android Reverse Engineering Suite * * Copyright (C) 2014 Konloch - Konloch.com / BytecodeViewer.com * @@ -18,6 +16,8 @@ package the.bytecode.club.bytecodeviewer.bootloader; * along with this program. If not, see . * ***************************************************************************/ +package the.bytecode.club.bytecodeviewer.bootloader; + /** * @author Konloch * @since 7/23/2021 diff --git a/src/main/java/the/bytecode/club/bytecodeviewer/bootloader/InitialBootScreen.java b/src/main/java/the/bytecode/club/bytecodeviewer/bootloader/InitialBootScreen.java index 941576c4..1e033e00 100644 --- a/src/main/java/the/bytecode/club/bytecodeviewer/bootloader/InitialBootScreen.java +++ b/src/main/java/the/bytecode/club/bytecodeviewer/bootloader/InitialBootScreen.java @@ -1,3 +1,21 @@ +/*************************************************************************** + * Bytecode Viewer (BCV) - Java & Android Reverse Engineering Suite * + * Copyright (C) 2014 Konloch - Konloch.com / BytecodeViewer.com * + * * + * This program is free software: you can redistribute it and/or modify * + * it under the terms of the GNU General Public License as published by * + * the Free Software Foundation, either version 3 of the License, or * + * (at your option) any later version. * + * * + * This program is distributed in the hope that it will be useful, * + * but WITHOUT ANY WARRANTY; without even the implied warranty of * + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * + * GNU General Public License for more details. * + * * + * You should have received a copy of the GNU General Public License * + * along with this program. If not, see . * + ***************************************************************************/ + package the.bytecode.club.bytecodeviewer.bootloader; import java.awt.Dimension; @@ -17,24 +35,6 @@ import the.bytecode.club.bytecodeviewer.resources.IconResources; import static the.bytecode.club.bytecodeviewer.Configuration.language; -/*************************************************************************** - * Bytecode Viewer (BCV) - Java & Android Reverse Engineering Suite * - * Copyright (C) 2014 Konloch - Konloch.com / BytecodeViewer.com * - * * - * This program is free software: you can redistribute it and/or modify * - * it under the terms of the GNU General Public License as published by * - * the Free Software Foundation, either version 3 of the License, or * - * (at your option) any later version. * - * * - * This program is distributed in the hope that it will be useful, * - * but WITHOUT ANY WARRANTY; without even the implied warranty of * - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * - * GNU General Public License for more details. * - * * - * You should have received a copy of the GNU General Public License * - * along with this program. If not, see . * - ***************************************************************************/ - /** * @author Konloch * @author Bibl (don't ban me pls) diff --git a/src/main/java/the/bytecode/club/bytecodeviewer/bootloader/InstallFatJar.java b/src/main/java/the/bytecode/club/bytecodeviewer/bootloader/InstallFatJar.java index 68879dd7..0848ba94 100644 --- a/src/main/java/the/bytecode/club/bytecodeviewer/bootloader/InstallFatJar.java +++ b/src/main/java/the/bytecode/club/bytecodeviewer/bootloader/InstallFatJar.java @@ -1,7 +1,3 @@ -package the.bytecode.club.bytecodeviewer.bootloader; - -import static the.bytecode.club.bytecodeviewer.Constants.AUTOMATIC_LIBRARY_UPDATING; - /*************************************************************************** * Bytecode Viewer (BCV) - Java & Android Reverse Engineering Suite * * Copyright (C) 2014 Konloch - Konloch.com / BytecodeViewer.com * @@ -20,6 +16,10 @@ import static the.bytecode.club.bytecodeviewer.Constants.AUTOMATIC_LIBRARY_UPDAT * along with this program. If not, see . * ***************************************************************************/ +package the.bytecode.club.bytecodeviewer.bootloader; + +import static the.bytecode.club.bytecodeviewer.Constants.AUTOMATIC_LIBRARY_UPDATING; + /** * Downloads & installs the krakatau & enjarify zips * diff --git a/src/main/java/the/bytecode/club/bytecodeviewer/bootloader/UpdateCheck.java b/src/main/java/the/bytecode/club/bytecodeviewer/bootloader/UpdateCheck.java index 93684c75..f452d0f0 100644 --- a/src/main/java/the/bytecode/club/bytecodeviewer/bootloader/UpdateCheck.java +++ b/src/main/java/the/bytecode/club/bytecodeviewer/bootloader/UpdateCheck.java @@ -1,3 +1,21 @@ +/*************************************************************************** + * Bytecode Viewer (BCV) - Java & Android Reverse Engineering Suite * + * Copyright (C) 2014 Konloch - Konloch.com / BytecodeViewer.com * + * * + * This program is free software: you can redistribute it and/or modify * + * it under the terms of the GNU General Public License as published by * + * the Free Software Foundation, either version 3 of the License, or * + * (at your option) any later version. * + * * + * This program is distributed in the hope that it will be useful, * + * but WITHOUT ANY WARRANTY; without even the implied warranty of * + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * + * GNU General Public License for more details. * + * * + * You should have received a copy of the GNU General Public License * + * along with this program. If not, see . * + ***************************************************************************/ + package the.bytecode.club.bytecodeviewer.bootloader; import de.skuzzle.semantic.Version; @@ -21,24 +39,6 @@ import the.bytecode.club.bytecodeviewer.translation.TranslatedStrings; import static the.bytecode.club.bytecodeviewer.Constants.VERSION; import static the.bytecode.club.bytecodeviewer.Constants.nl; -/*************************************************************************** - * Bytecode Viewer (BCV) - Java & Android Reverse Engineering Suite * - * Copyright (C) 2014 Konloch - Konloch.com / BytecodeViewer.com * - * * - * This program is free software: you can redistribute it and/or modify * - * it under the terms of the GNU General Public License as published by * - * the Free Software Foundation, either version 3 of the License, or * - * (at your option) any later version. * - * * - * This program is distributed in the hope that it will be useful, * - * but WITHOUT ANY WARRANTY; without even the implied warranty of * - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * - * GNU General Public License for more details. * - * * - * You should have received a copy of the GNU General Public License * - * along with this program. If not, see . * - ***************************************************************************/ - /** * @author Konloch */ diff --git a/src/main/java/the/bytecode/club/bytecodeviewer/bootloader/classtree/ClassHelper.java b/src/main/java/the/bytecode/club/bytecodeviewer/bootloader/classtree/ClassHelper.java index 4a2a07ab..a2928ea2 100644 --- a/src/main/java/the/bytecode/club/bytecodeviewer/bootloader/classtree/ClassHelper.java +++ b/src/main/java/the/bytecode/club/bytecodeviewer/bootloader/classtree/ClassHelper.java @@ -1,10 +1,3 @@ -package the.bytecode.club.bytecodeviewer.bootloader.classtree; - -import java.util.Collection; -import java.util.HashMap; -import java.util.Map; -import org.objectweb.asm.tree.ClassNode; - /*************************************************************************** * Bytecode Viewer (BCV) - Java & Android Reverse Engineering Suite * * Copyright (C) 2014 Konloch - Konloch.com / BytecodeViewer.com * @@ -23,6 +16,13 @@ import org.objectweb.asm.tree.ClassNode; * along with this program. If not, see . * ***************************************************************************/ +package the.bytecode.club.bytecodeviewer.bootloader.classtree; + +import java.util.Collection; +import java.util.HashMap; +import java.util.Map; +import org.objectweb.asm.tree.ClassNode; + /** * @author Bibl (don't ban me pls) * @created 25 May 2015 (actually before this) diff --git a/src/main/java/the/bytecode/club/bytecodeviewer/bootloader/classtree/ClassTree.java b/src/main/java/the/bytecode/club/bytecodeviewer/bootloader/classtree/ClassTree.java index 58fa41be..359461cd 100644 --- a/src/main/java/the/bytecode/club/bytecodeviewer/bootloader/classtree/ClassTree.java +++ b/src/main/java/the/bytecode/club/bytecodeviewer/bootloader/classtree/ClassTree.java @@ -1,19 +1,3 @@ -package the.bytecode.club.bytecodeviewer.bootloader.classtree; - -import java.util.Collection; -import java.util.Collections; -import java.util.HashMap; -import java.util.HashSet; -import java.util.Map; -import java.util.Set; -import org.objectweb.asm.tree.ClassNode; -import org.objectweb.asm.tree.MethodNode; -import the.bytecode.club.bytecodeviewer.bootloader.classtree.nullpermablehashmap.NullPermeableHashMap; -import the.bytecode.club.bytecodeviewer.bootloader.classtree.nullpermablehashmap.SetCreator; - -import static the.bytecode.club.bytecodeviewer.bootloader.classtree.ClassHelper.convertToMap; -import static the.bytecode.club.bytecodeviewer.bootloader.classtree.ClassHelper.copyOf; - /*************************************************************************** * Bytecode Viewer (BCV) - Java & Android Reverse Engineering Suite * * Copyright (C) 2014 Konloch - Konloch.com / BytecodeViewer.com * @@ -32,6 +16,22 @@ import static the.bytecode.club.bytecodeviewer.bootloader.classtree.ClassHelper. * along with this program. If not, see . * ***************************************************************************/ +package the.bytecode.club.bytecodeviewer.bootloader.classtree; + +import java.util.Collection; +import java.util.Collections; +import java.util.HashMap; +import java.util.HashSet; +import java.util.Map; +import java.util.Set; +import org.objectweb.asm.tree.ClassNode; +import org.objectweb.asm.tree.MethodNode; +import the.bytecode.club.bytecodeviewer.bootloader.classtree.nullpermablehashmap.NullPermeableHashMap; +import the.bytecode.club.bytecodeviewer.bootloader.classtree.nullpermablehashmap.SetCreator; + +import static the.bytecode.club.bytecodeviewer.bootloader.classtree.ClassHelper.convertToMap; +import static the.bytecode.club.bytecodeviewer.bootloader.classtree.ClassHelper.copyOf; + /** * @author Bibl (don't ban me pls) * @created 25 May 2015 (actually before this) diff --git a/src/main/java/the/bytecode/club/bytecodeviewer/bootloader/classtree/nullpermablehashmap/NullCreator.java b/src/main/java/the/bytecode/club/bytecodeviewer/bootloader/classtree/nullpermablehashmap/NullCreator.java index c34cb94a..1747ac3c 100644 --- a/src/main/java/the/bytecode/club/bytecodeviewer/bootloader/classtree/nullpermablehashmap/NullCreator.java +++ b/src/main/java/the/bytecode/club/bytecodeviewer/bootloader/classtree/nullpermablehashmap/NullCreator.java @@ -1,5 +1,3 @@ -package the.bytecode.club.bytecodeviewer.bootloader.classtree.nullpermablehashmap; - /*************************************************************************** * Bytecode Viewer (BCV) - Java & Android Reverse Engineering Suite * * Copyright (C) 2014 Konloch - Konloch.com / BytecodeViewer.com * @@ -18,6 +16,8 @@ package the.bytecode.club.bytecodeviewer.bootloader.classtree.nullpermablehashma * along with this program. If not, see . * ***************************************************************************/ +package the.bytecode.club.bytecodeviewer.bootloader.classtree.nullpermablehashmap; + /** * @author Bibl (don't ban me pls) * @created ages ago diff --git a/src/main/java/the/bytecode/club/bytecodeviewer/bootloader/classtree/nullpermablehashmap/NullPermeableHashMap.java b/src/main/java/the/bytecode/club/bytecodeviewer/bootloader/classtree/nullpermablehashmap/NullPermeableHashMap.java index 3bb5af40..ea4f35cc 100644 --- a/src/main/java/the/bytecode/club/bytecodeviewer/bootloader/classtree/nullpermablehashmap/NullPermeableHashMap.java +++ b/src/main/java/the/bytecode/club/bytecodeviewer/bootloader/classtree/nullpermablehashmap/NullPermeableHashMap.java @@ -1,7 +1,3 @@ -package the.bytecode.club.bytecodeviewer.bootloader.classtree.nullpermablehashmap; - -import java.util.HashMap; - /*************************************************************************** * Bytecode Viewer (BCV) - Java & Android Reverse Engineering Suite * * Copyright (C) 2014 Konloch - Konloch.com / BytecodeViewer.com * @@ -20,6 +16,10 @@ import java.util.HashMap; * along with this program. If not, see . * ***************************************************************************/ +package the.bytecode.club.bytecodeviewer.bootloader.classtree.nullpermablehashmap; + +import java.util.HashMap; + /** * @author Bibl (don't ban me pls) * @created ages ago diff --git a/src/main/java/the/bytecode/club/bytecodeviewer/bootloader/classtree/nullpermablehashmap/SetCreator.java b/src/main/java/the/bytecode/club/bytecodeviewer/bootloader/classtree/nullpermablehashmap/SetCreator.java index 5869e188..19661c0b 100644 --- a/src/main/java/the/bytecode/club/bytecodeviewer/bootloader/classtree/nullpermablehashmap/SetCreator.java +++ b/src/main/java/the/bytecode/club/bytecodeviewer/bootloader/classtree/nullpermablehashmap/SetCreator.java @@ -1,8 +1,3 @@ -package the.bytecode.club.bytecodeviewer.bootloader.classtree.nullpermablehashmap; - -import java.util.HashSet; -import java.util.Set; - /*************************************************************************** * Bytecode Viewer (BCV) - Java & Android Reverse Engineering Suite * * Copyright (C) 2014 Konloch - Konloch.com / BytecodeViewer.com * @@ -21,6 +16,11 @@ import java.util.Set; * along with this program. If not, see . * ***************************************************************************/ +package the.bytecode.club.bytecodeviewer.bootloader.classtree.nullpermablehashmap; + +import java.util.HashSet; +import java.util.Set; + /** * @author Bibl (don't ban me pls) * @created 25 May 2015 (actually before this) diff --git a/src/main/java/the/bytecode/club/bytecodeviewer/bootloader/classtree/nullpermablehashmap/ValueCreator.java b/src/main/java/the/bytecode/club/bytecodeviewer/bootloader/classtree/nullpermablehashmap/ValueCreator.java index 1bbf5144..dec46f92 100644 --- a/src/main/java/the/bytecode/club/bytecodeviewer/bootloader/classtree/nullpermablehashmap/ValueCreator.java +++ b/src/main/java/the/bytecode/club/bytecodeviewer/bootloader/classtree/nullpermablehashmap/ValueCreator.java @@ -1,5 +1,3 @@ -package the.bytecode.club.bytecodeviewer.bootloader.classtree.nullpermablehashmap; - /*************************************************************************** * Bytecode Viewer (BCV) - Java & Android Reverse Engineering Suite * * Copyright (C) 2014 Konloch - Konloch.com / BytecodeViewer.com * @@ -18,6 +16,8 @@ package the.bytecode.club.bytecodeviewer.bootloader.classtree.nullpermablehashma * along with this program. If not, see . * ***************************************************************************/ +package the.bytecode.club.bytecodeviewer.bootloader.classtree.nullpermablehashmap; + /** * @author Bibl (don't ban me pls) * @created ages ago diff --git a/src/main/java/the/bytecode/club/bytecodeviewer/bootloader/loader/AbstractLoaderFactory.java b/src/main/java/the/bytecode/club/bytecodeviewer/bootloader/loader/AbstractLoaderFactory.java index 909249d0..71ca55b6 100644 --- a/src/main/java/the/bytecode/club/bytecodeviewer/bootloader/loader/AbstractLoaderFactory.java +++ b/src/main/java/the/bytecode/club/bytecodeviewer/bootloader/loader/AbstractLoaderFactory.java @@ -1,9 +1,3 @@ -package the.bytecode.club.bytecodeviewer.bootloader.loader; - -import java.util.HashMap; -import java.util.Map; -import the.bytecode.club.bytecodeviewer.bootloader.resource.external.ExternalResource; - /*************************************************************************** * Bytecode Viewer (BCV) - Java & Android Reverse Engineering Suite * * Copyright (C) 2014 Konloch - Konloch.com / BytecodeViewer.com * @@ -22,6 +16,12 @@ import the.bytecode.club.bytecodeviewer.bootloader.resource.external.ExternalRes * along with this program. If not, see . * ***************************************************************************/ +package the.bytecode.club.bytecodeviewer.bootloader.loader; + +import java.util.HashMap; +import java.util.Map; +import the.bytecode.club.bytecodeviewer.bootloader.resource.external.ExternalResource; + /** * @author Bibl (don't ban me pls) * @created 21 Jul 2015 00:18:07 diff --git a/src/main/java/the/bytecode/club/bytecodeviewer/bootloader/loader/ClassPathLoader.java b/src/main/java/the/bytecode/club/bytecodeviewer/bootloader/loader/ClassPathLoader.java index a2563528..600f1b88 100644 --- a/src/main/java/the/bytecode/club/bytecodeviewer/bootloader/loader/ClassPathLoader.java +++ b/src/main/java/the/bytecode/club/bytecodeviewer/bootloader/loader/ClassPathLoader.java @@ -1,11 +1,3 @@ -package the.bytecode.club.bytecodeviewer.bootloader.loader; - -import java.lang.reflect.InvocationTargetException; -import java.lang.reflect.Method; -import java.net.URL; -import java.net.URLClassLoader; -import the.bytecode.club.bytecodeviewer.bootloader.resource.external.ExternalResource; - /*************************************************************************** * Bytecode Viewer (BCV) - Java & Android Reverse Engineering Suite * * Copyright (C) 2014 Konloch - Konloch.com / BytecodeViewer.com * @@ -24,6 +16,14 @@ import the.bytecode.club.bytecodeviewer.bootloader.resource.external.ExternalRes * along with this program. If not, see . * ***************************************************************************/ +package the.bytecode.club.bytecodeviewer.bootloader.loader; + +import java.lang.reflect.InvocationTargetException; +import java.lang.reflect.Method; +import java.net.URL; +import java.net.URLClassLoader; +import the.bytecode.club.bytecodeviewer.bootloader.resource.external.ExternalResource; + /** * @author Bibl (don't ban me pls) * @created 21 Jul 2015 00:09:53 diff --git a/src/main/java/the/bytecode/club/bytecodeviewer/bootloader/loader/ILoader.java b/src/main/java/the/bytecode/club/bytecodeviewer/bootloader/loader/ILoader.java index 1405fb8c..e7520bc8 100644 --- a/src/main/java/the/bytecode/club/bytecodeviewer/bootloader/loader/ILoader.java +++ b/src/main/java/the/bytecode/club/bytecodeviewer/bootloader/loader/ILoader.java @@ -1,7 +1,3 @@ -package the.bytecode.club.bytecodeviewer.bootloader.loader; - -import the.bytecode.club.bytecodeviewer.bootloader.resource.external.ExternalResource; - /*************************************************************************** * Bytecode Viewer (BCV) - Java & Android Reverse Engineering Suite * * Copyright (C) 2014 Konloch - Konloch.com / BytecodeViewer.com * @@ -20,6 +16,10 @@ import the.bytecode.club.bytecodeviewer.bootloader.resource.external.ExternalRes * along with this program. If not, see . * ***************************************************************************/ +package the.bytecode.club.bytecodeviewer.bootloader.loader; + +import the.bytecode.club.bytecodeviewer.bootloader.resource.external.ExternalResource; + /** * @author Bibl (don't ban me pls) * @created 19 Jul 2015 02:29:43 diff --git a/src/main/java/the/bytecode/club/bytecodeviewer/bootloader/loader/LibraryClassLoader.java b/src/main/java/the/bytecode/club/bytecodeviewer/bootloader/loader/LibraryClassLoader.java index 5b7af53c..3b807cfb 100644 --- a/src/main/java/the/bytecode/club/bytecodeviewer/bootloader/loader/LibraryClassLoader.java +++ b/src/main/java/the/bytecode/club/bytecodeviewer/bootloader/loader/LibraryClassLoader.java @@ -1,18 +1,3 @@ -package the.bytecode.club.bytecodeviewer.bootloader.loader; - -import java.io.IOException; -import java.lang.reflect.Modifier; -import java.util.HashMap; -import java.util.HashSet; -import java.util.Map; -import java.util.Set; -import org.objectweb.asm.ClassReader; -import org.objectweb.asm.ClassWriter; -import org.objectweb.asm.tree.ClassNode; -import the.bytecode.club.bytecodeviewer.bootloader.classtree.ClassTree; -import the.bytecode.club.bytecodeviewer.bootloader.resource.external.ExternalResource; -import the.bytecode.club.bytecodeviewer.bootloader.resource.jar.contents.JarContents; - /*************************************************************************** * Bytecode Viewer (BCV) - Java & Android Reverse Engineering Suite * * Copyright (C) 2014 Konloch - Konloch.com / BytecodeViewer.com * @@ -31,6 +16,21 @@ import the.bytecode.club.bytecodeviewer.bootloader.resource.jar.contents.JarCont * along with this program. If not, see . * ***************************************************************************/ +package the.bytecode.club.bytecodeviewer.bootloader.loader; + +import java.io.IOException; +import java.lang.reflect.Modifier; +import java.util.HashMap; +import java.util.HashSet; +import java.util.Map; +import java.util.Set; +import org.objectweb.asm.ClassReader; +import org.objectweb.asm.ClassWriter; +import org.objectweb.asm.tree.ClassNode; +import the.bytecode.club.bytecodeviewer.bootloader.classtree.ClassTree; +import the.bytecode.club.bytecodeviewer.bootloader.resource.external.ExternalResource; +import the.bytecode.club.bytecodeviewer.bootloader.resource.jar.contents.JarContents; + /** * @author Bibl (don't ban me pls) * @created 19 Jul 2015 02:48:41 diff --git a/src/main/java/the/bytecode/club/bytecodeviewer/bootloader/loader/LoaderFactory.java b/src/main/java/the/bytecode/club/bytecodeviewer/bootloader/loader/LoaderFactory.java index 159e4810..12d57fb3 100644 --- a/src/main/java/the/bytecode/club/bytecodeviewer/bootloader/loader/LoaderFactory.java +++ b/src/main/java/the/bytecode/club/bytecodeviewer/bootloader/loader/LoaderFactory.java @@ -1,5 +1,3 @@ -package the.bytecode.club.bytecodeviewer.bootloader.loader; - /*************************************************************************** * Bytecode Viewer (BCV) - Java & Android Reverse Engineering Suite * * Copyright (C) 2014 Konloch - Konloch.com / BytecodeViewer.com * @@ -18,6 +16,8 @@ package the.bytecode.club.bytecodeviewer.bootloader.loader; * along with this program. If not, see . * ***************************************************************************/ +package the.bytecode.club.bytecodeviewer.bootloader.loader; + /** * @author Bibl (don't ban me pls) * @created 21 Jul 2015 00:14:53 diff --git a/src/main/java/the/bytecode/club/bytecodeviewer/bootloader/resource/DataContainer.java b/src/main/java/the/bytecode/club/bytecodeviewer/bootloader/resource/DataContainer.java index 9d9947b7..3be53d05 100644 --- a/src/main/java/the/bytecode/club/bytecodeviewer/bootloader/resource/DataContainer.java +++ b/src/main/java/the/bytecode/club/bytecodeviewer/bootloader/resource/DataContainer.java @@ -1,9 +1,3 @@ -package the.bytecode.club.bytecodeviewer.bootloader.resource; - -import java.util.ArrayList; -import java.util.Collection; -import java.util.Map; - /*************************************************************************** * Bytecode Viewer (BCV) - Java & Android Reverse Engineering Suite * * Copyright (C) 2014 Konloch - Konloch.com / BytecodeViewer.com * @@ -22,6 +16,12 @@ import java.util.Map; * along with this program. If not, see . * ***************************************************************************/ +package the.bytecode.club.bytecodeviewer.bootloader.resource; + +import java.util.ArrayList; +import java.util.Collection; +import java.util.Map; + /** * @author Bibl (don't ban me pls) * @created ages ago diff --git a/src/main/java/the/bytecode/club/bytecodeviewer/bootloader/resource/external/EmptyExternalResource.java b/src/main/java/the/bytecode/club/bytecodeviewer/bootloader/resource/external/EmptyExternalResource.java index 07b54ae4..b80da3f8 100644 --- a/src/main/java/the/bytecode/club/bytecodeviewer/bootloader/resource/external/EmptyExternalResource.java +++ b/src/main/java/the/bytecode/club/bytecodeviewer/bootloader/resource/external/EmptyExternalResource.java @@ -1,7 +1,3 @@ -package the.bytecode.club.bytecodeviewer.bootloader.resource.external; - -import java.net.URL; - /*************************************************************************** * Bytecode Viewer (BCV) - Java & Android Reverse Engineering Suite * * Copyright (C) 2014 Konloch - Konloch.com / BytecodeViewer.com * @@ -20,6 +16,10 @@ import java.net.URL; * along with this program. If not, see . * ***************************************************************************/ +package the.bytecode.club.bytecodeviewer.bootloader.resource.external; + +import java.net.URL; + /** * @author Bibl (don't ban me pls) * @created 21 Jul 2015 00:29:11 diff --git a/src/main/java/the/bytecode/club/bytecodeviewer/bootloader/resource/external/ExternalLibrary.java b/src/main/java/the/bytecode/club/bytecodeviewer/bootloader/resource/external/ExternalLibrary.java index 98db667e..b9e93abe 100644 --- a/src/main/java/the/bytecode/club/bytecodeviewer/bootloader/resource/external/ExternalLibrary.java +++ b/src/main/java/the/bytecode/club/bytecodeviewer/bootloader/resource/external/ExternalLibrary.java @@ -1,20 +1,3 @@ -package the.bytecode.club.bytecodeviewer.bootloader.resource.external; - -import java.io.ByteArrayOutputStream; -import java.io.IOException; -import java.io.InputStream; -import java.net.JarURLConnection; -import java.net.MalformedURLException; -import java.net.URL; -import java.util.Enumeration; -import java.util.jar.JarEntry; -import java.util.jar.JarFile; -import org.objectweb.asm.ClassReader; -import org.objectweb.asm.tree.ClassNode; -import the.bytecode.club.bytecodeviewer.bootloader.resource.jar.JarInfo; -import the.bytecode.club.bytecodeviewer.bootloader.resource.jar.JarResource; -import the.bytecode.club.bytecodeviewer.bootloader.resource.jar.contents.JarContents; - /*************************************************************************** * Bytecode Viewer (BCV) - Java & Android Reverse Engineering Suite * * Copyright (C) 2014 Konloch - Konloch.com / BytecodeViewer.com * @@ -33,6 +16,23 @@ import the.bytecode.club.bytecodeviewer.bootloader.resource.jar.contents.JarCont * along with this program. If not, see . * ***************************************************************************/ +package the.bytecode.club.bytecodeviewer.bootloader.resource.external; + +import java.io.ByteArrayOutputStream; +import java.io.IOException; +import java.io.InputStream; +import java.net.JarURLConnection; +import java.net.MalformedURLException; +import java.net.URL; +import java.util.Enumeration; +import java.util.jar.JarEntry; +import java.util.jar.JarFile; +import org.objectweb.asm.ClassReader; +import org.objectweb.asm.tree.ClassNode; +import the.bytecode.club.bytecodeviewer.bootloader.resource.jar.JarInfo; +import the.bytecode.club.bytecodeviewer.bootloader.resource.jar.JarResource; +import the.bytecode.club.bytecodeviewer.bootloader.resource.jar.contents.JarContents; + /** * @author Bibl (don't ban me pls) * @created 19 Jul 2015 02:33:23 diff --git a/src/main/java/the/bytecode/club/bytecodeviewer/bootloader/resource/external/ExternalResource.java b/src/main/java/the/bytecode/club/bytecodeviewer/bootloader/resource/external/ExternalResource.java index cb95bdcf..878f5e39 100644 --- a/src/main/java/the/bytecode/club/bytecodeviewer/bootloader/resource/external/ExternalResource.java +++ b/src/main/java/the/bytecode/club/bytecodeviewer/bootloader/resource/external/ExternalResource.java @@ -1,8 +1,3 @@ -package the.bytecode.club.bytecodeviewer.bootloader.resource.external; - -import java.io.IOException; -import java.net.URL; - /*************************************************************************** * Bytecode Viewer (BCV) - Java & Android Reverse Engineering Suite * * Copyright (C) 2014 Konloch - Konloch.com / BytecodeViewer.com * @@ -21,6 +16,11 @@ import java.net.URL; * along with this program. If not, see . * ***************************************************************************/ +package the.bytecode.club.bytecodeviewer.bootloader.resource.external; + +import java.io.IOException; +import java.net.URL; + /** * @author Bibl (don't ban me pls) * @created 19 Jul 2015 02:30:30 diff --git a/src/main/java/the/bytecode/club/bytecodeviewer/bootloader/resource/jar/JarInfo.java b/src/main/java/the/bytecode/club/bytecodeviewer/bootloader/resource/jar/JarInfo.java index 515255cf..2d1a3258 100644 --- a/src/main/java/the/bytecode/club/bytecodeviewer/bootloader/resource/jar/JarInfo.java +++ b/src/main/java/the/bytecode/club/bytecodeviewer/bootloader/resource/jar/JarInfo.java @@ -1,10 +1,3 @@ -package the.bytecode.club.bytecodeviewer.bootloader.resource.jar; - -import java.io.File; -import java.net.JarURLConnection; -import java.net.MalformedURLException; -import java.net.URL; - /*************************************************************************** * Bytecode Viewer (BCV) - Java & Android Reverse Engineering Suite * * Copyright (C) 2014 Konloch - Konloch.com / BytecodeViewer.com * @@ -23,6 +16,13 @@ import java.net.URL; * along with this program. If not, see . * ***************************************************************************/ +package the.bytecode.club.bytecodeviewer.bootloader.resource.jar; + +import java.io.File; +import java.net.JarURLConnection; +import java.net.MalformedURLException; +import java.net.URL; + /** * Holds information about a single local or external JarFile. * diff --git a/src/main/java/the/bytecode/club/bytecodeviewer/bootloader/resource/jar/JarResource.java b/src/main/java/the/bytecode/club/bytecodeviewer/bootloader/resource/jar/JarResource.java index 96858183..7658650f 100644 --- a/src/main/java/the/bytecode/club/bytecodeviewer/bootloader/resource/jar/JarResource.java +++ b/src/main/java/the/bytecode/club/bytecodeviewer/bootloader/resource/jar/JarResource.java @@ -1,7 +1,3 @@ -package the.bytecode.club.bytecodeviewer.bootloader.resource.jar; - -import java.util.Arrays; - /*************************************************************************** * Bytecode Viewer (BCV) - Java & Android Reverse Engineering Suite * * Copyright (C) 2014 Konloch - Konloch.com / BytecodeViewer.com * @@ -20,6 +16,10 @@ import java.util.Arrays; * along with this program. If not, see . * ***************************************************************************/ +package the.bytecode.club.bytecodeviewer.bootloader.resource.jar; + +import java.util.Arrays; + /** * @author Bibl (don't ban me pls) * @created ages ago diff --git a/src/main/java/the/bytecode/club/bytecodeviewer/bootloader/resource/jar/JarType.java b/src/main/java/the/bytecode/club/bytecodeviewer/bootloader/resource/jar/JarType.java index 1396019e..5e4551cf 100644 --- a/src/main/java/the/bytecode/club/bytecodeviewer/bootloader/resource/jar/JarType.java +++ b/src/main/java/the/bytecode/club/bytecodeviewer/bootloader/resource/jar/JarType.java @@ -1,5 +1,3 @@ -package the.bytecode.club.bytecodeviewer.bootloader.resource.jar; - /*************************************************************************** * Bytecode Viewer (BCV) - Java & Android Reverse Engineering Suite * * Copyright (C) 2014 Konloch - Konloch.com / BytecodeViewer.com * @@ -18,6 +16,8 @@ package the.bytecode.club.bytecodeviewer.bootloader.resource.jar; * along with this program. If not, see . * ***************************************************************************/ +package the.bytecode.club.bytecodeviewer.bootloader.resource.jar; + /** * Type of Jar Stored. * diff --git a/src/main/java/the/bytecode/club/bytecodeviewer/bootloader/resource/jar/contents/JarContents.java b/src/main/java/the/bytecode/club/bytecodeviewer/bootloader/resource/jar/contents/JarContents.java index 221cc1f2..de8676dd 100644 --- a/src/main/java/the/bytecode/club/bytecodeviewer/bootloader/resource/jar/contents/JarContents.java +++ b/src/main/java/the/bytecode/club/bytecodeviewer/bootloader/resource/jar/contents/JarContents.java @@ -1,15 +1,3 @@ -package the.bytecode.club.bytecodeviewer.bootloader.resource.jar.contents; - -import java.util.ArrayList; -import java.util.Collection; -import java.util.HashMap; -import java.util.Iterator; -import java.util.List; -import java.util.Map; -import org.objectweb.asm.tree.ClassNode; -import the.bytecode.club.bytecodeviewer.bootloader.resource.DataContainer; -import the.bytecode.club.bytecodeviewer.bootloader.resource.jar.JarResource; - /*************************************************************************** * Bytecode Viewer (BCV) - Java & Android Reverse Engineering Suite * * Copyright (C) 2014 Konloch - Konloch.com / BytecodeViewer.com * @@ -28,6 +16,18 @@ import the.bytecode.club.bytecodeviewer.bootloader.resource.jar.JarResource; * along with this program. If not, see . * ***************************************************************************/ +package the.bytecode.club.bytecodeviewer.bootloader.resource.jar.contents; + +import java.util.ArrayList; +import java.util.Collection; +import java.util.HashMap; +import java.util.Iterator; +import java.util.List; +import java.util.Map; +import org.objectweb.asm.tree.ClassNode; +import the.bytecode.club.bytecodeviewer.bootloader.resource.DataContainer; +import the.bytecode.club.bytecodeviewer.bootloader.resource.jar.JarResource; + /** * @author Bibl (don't ban me pls) * @created ages ago diff --git a/src/main/java/the/bytecode/club/bytecodeviewer/bootloader/resource/jar/contents/LocateableJarContents.java b/src/main/java/the/bytecode/club/bytecodeviewer/bootloader/resource/jar/contents/LocateableJarContents.java index f301166e..4ee57453 100644 --- a/src/main/java/the/bytecode/club/bytecodeviewer/bootloader/resource/jar/contents/LocateableJarContents.java +++ b/src/main/java/the/bytecode/club/bytecodeviewer/bootloader/resource/jar/contents/LocateableJarContents.java @@ -1,10 +1,3 @@ -package the.bytecode.club.bytecodeviewer.bootloader.resource.jar.contents; - -import java.net.URL; -import org.objectweb.asm.tree.ClassNode; -import the.bytecode.club.bytecodeviewer.bootloader.resource.DataContainer; -import the.bytecode.club.bytecodeviewer.bootloader.resource.jar.JarResource; - /*************************************************************************** * Bytecode Viewer (BCV) - Java & Android Reverse Engineering Suite * * Copyright (C) 2014 Konloch - Konloch.com / BytecodeViewer.com * @@ -23,6 +16,13 @@ import the.bytecode.club.bytecodeviewer.bootloader.resource.jar.JarResource; * along with this program. If not, see . * ***************************************************************************/ +package the.bytecode.club.bytecodeviewer.bootloader.resource.jar.contents; + +import java.net.URL; +import org.objectweb.asm.tree.ClassNode; +import the.bytecode.club.bytecodeviewer.bootloader.resource.DataContainer; +import the.bytecode.club.bytecodeviewer.bootloader.resource.jar.JarResource; + /** * @author Bibl (don't ban me pls) * @created ages ago diff --git a/src/main/java/the/bytecode/club/bytecodeviewer/compilers/Compiler.java b/src/main/java/the/bytecode/club/bytecodeviewer/compilers/Compiler.java index adbf4f04..16b2aa80 100644 --- a/src/main/java/the/bytecode/club/bytecodeviewer/compilers/Compiler.java +++ b/src/main/java/the/bytecode/club/bytecodeviewer/compilers/Compiler.java @@ -1,5 +1,3 @@ -package the.bytecode.club.bytecodeviewer.compilers; - /*************************************************************************** * Bytecode Viewer (BCV) - Java & Android Reverse Engineering Suite * * Copyright (C) 2014 Konloch - Konloch.com / BytecodeViewer.com * @@ -18,6 +16,8 @@ package the.bytecode.club.bytecodeviewer.compilers; * along with this program. If not, see . * ***************************************************************************/ +package the.bytecode.club.bytecodeviewer.compilers; + import the.bytecode.club.bytecodeviewer.compilers.impl.JavaCompiler; import the.bytecode.club.bytecodeviewer.compilers.impl.KrakatauAssembler; import the.bytecode.club.bytecodeviewer.compilers.impl.SmaliAssembler; diff --git a/src/main/java/the/bytecode/club/bytecodeviewer/compilers/InternalCompiler.java b/src/main/java/the/bytecode/club/bytecodeviewer/compilers/InternalCompiler.java index 6a4aaf23..a202808c 100644 --- a/src/main/java/the/bytecode/club/bytecodeviewer/compilers/InternalCompiler.java +++ b/src/main/java/the/bytecode/club/bytecodeviewer/compilers/InternalCompiler.java @@ -1,5 +1,3 @@ -package the.bytecode.club.bytecodeviewer.compilers; - /*************************************************************************** * Bytecode Viewer (BCV) - Java & Android Reverse Engineering Suite * * Copyright (C) 2014 Konloch - Konloch.com / BytecodeViewer.com * @@ -18,6 +16,8 @@ package the.bytecode.club.bytecodeviewer.compilers; * along with this program. If not, see . * ***************************************************************************/ +package the.bytecode.club.bytecodeviewer.compilers; + /** * Used to represent a single the compiler/assembler * diff --git a/src/main/java/the/bytecode/club/bytecodeviewer/compilers/impl/JavaCompiler.java b/src/main/java/the/bytecode/club/bytecodeviewer/compilers/impl/JavaCompiler.java index c2aa2598..8abb9d5c 100644 --- a/src/main/java/the/bytecode/club/bytecodeviewer/compilers/impl/JavaCompiler.java +++ b/src/main/java/the/bytecode/club/bytecodeviewer/compilers/impl/JavaCompiler.java @@ -1,3 +1,21 @@ +/*************************************************************************** + * Bytecode Viewer (BCV) - Java & Android Reverse Engineering Suite * + * Copyright (C) 2014 Konloch - Konloch.com / BytecodeViewer.com * + * * + * This program is free software: you can redistribute it and/or modify * + * it under the terms of the GNU General Public License as published by * + * the Free Software Foundation, either version 3 of the License, or * + * (at your option) any later version. * + * * + * This program is distributed in the hope that it will be useful, * + * but WITHOUT ANY WARRANTY; without even the implied warranty of * + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * + * GNU General Public License for more details. * + * * + * You should have received a copy of the GNU General Public License * + * along with this program. If not, see . * + ***************************************************************************/ + package the.bytecode.club.bytecodeviewer.compilers.impl; import java.io.BufferedReader; @@ -19,24 +37,6 @@ import static the.bytecode.club.bytecodeviewer.Constants.fs; import static the.bytecode.club.bytecodeviewer.Constants.nl; import static the.bytecode.club.bytecodeviewer.Constants.tempDirectory; -/*************************************************************************** - * Bytecode Viewer (BCV) - Java & Android Reverse Engineering Suite * - * Copyright (C) 2014 Konloch - Konloch.com / BytecodeViewer.com * - * * - * This program is free software: you can redistribute it and/or modify * - * it under the terms of the GNU General Public License as published by * - * the Free Software Foundation, either version 3 of the License, or * - * (at your option) any later version. * - * * - * This program is distributed in the hope that it will be useful, * - * but WITHOUT ANY WARRANTY; without even the implied warranty of * - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * - * GNU General Public License for more details. * - * * - * You should have received a copy of the GNU General Public License * - * along with this program. If not, see . * - ***************************************************************************/ - /** * Java Compiler * diff --git a/src/main/java/the/bytecode/club/bytecodeviewer/compilers/impl/KrakatauAssembler.java b/src/main/java/the/bytecode/club/bytecodeviewer/compilers/impl/KrakatauAssembler.java index bb9b2207..0e2bcd31 100644 --- a/src/main/java/the/bytecode/club/bytecodeviewer/compilers/impl/KrakatauAssembler.java +++ b/src/main/java/the/bytecode/club/bytecodeviewer/compilers/impl/KrakatauAssembler.java @@ -1,3 +1,21 @@ +/*************************************************************************** + * Bytecode Viewer (BCV) - Java & Android Reverse Engineering Suite * + * Copyright (C) 2014 Konloch - Konloch.com / BytecodeViewer.com * + * * + * This program is free software: you can redistribute it and/or modify * + * it under the terms of the GNU General Public License as published by * + * the Free Software Foundation, either version 3 of the License, or * + * (at your option) any later version. * + * * + * This program is distributed in the hope that it will be useful, * + * but WITHOUT ANY WARRANTY; without even the implied warranty of * + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * + * GNU General Public License for more details. * + * * + * You should have received a copy of the GNU General Public License * + * along with this program. If not, see . * + ***************************************************************************/ + package the.bytecode.club.bytecodeviewer.compilers.impl; import java.io.BufferedReader; @@ -21,24 +39,6 @@ import static the.bytecode.club.bytecodeviewer.Constants.fs; import static the.bytecode.club.bytecodeviewer.Constants.krakatauWorkingDirectory; import static the.bytecode.club.bytecodeviewer.Constants.nl; -/*************************************************************************** - * Bytecode Viewer (BCV) - Java & Android Reverse Engineering Suite * - * Copyright (C) 2014 Konloch - Konloch.com / BytecodeViewer.com * - * * - * This program is free software: you can redistribute it and/or modify * - * it under the terms of the GNU General Public License as published by * - * the Free Software Foundation, either version 3 of the License, or * - * (at your option) any later version. * - * * - * This program is distributed in the hope that it will be useful, * - * but WITHOUT ANY WARRANTY; without even the implied warranty of * - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * - * GNU General Public License for more details. * - * * - * You should have received a copy of the GNU General Public License * - * along with this program. If not, see . * - ***************************************************************************/ - /** * Krakatau Java assembler, requires Python 2.7 * diff --git a/src/main/java/the/bytecode/club/bytecodeviewer/compilers/impl/SmaliAssembler.java b/src/main/java/the/bytecode/club/bytecodeviewer/compilers/impl/SmaliAssembler.java index b6bd9e1e..4e92a8ed 100644 --- a/src/main/java/the/bytecode/club/bytecodeviewer/compilers/impl/SmaliAssembler.java +++ b/src/main/java/the/bytecode/club/bytecodeviewer/compilers/impl/SmaliAssembler.java @@ -1,19 +1,3 @@ -package the.bytecode.club.bytecodeviewer.compilers.impl; - -import java.io.File; -import java.util.Objects; -import me.konloch.kontainer.io.DiskWriter; -import org.apache.commons.io.FileUtils; -import the.bytecode.club.bytecodeviewer.BytecodeViewer; -import the.bytecode.club.bytecodeviewer.compilers.InternalCompiler; -import the.bytecode.club.bytecodeviewer.util.Dex2Jar; -import the.bytecode.club.bytecodeviewer.util.Enjarify; -import the.bytecode.club.bytecodeviewer.util.MiscUtils; -import the.bytecode.club.bytecodeviewer.util.ZipUtils; - -import static the.bytecode.club.bytecodeviewer.Constants.fs; -import static the.bytecode.club.bytecodeviewer.Constants.tempDirectory; - /*************************************************************************** * Bytecode Viewer (BCV) - Java & Android Reverse Engineering Suite * * Copyright (C) 2014 Konloch - Konloch.com / BytecodeViewer.com * @@ -32,6 +16,22 @@ import static the.bytecode.club.bytecodeviewer.Constants.tempDirectory; * along with this program. If not, see . * ***************************************************************************/ +package the.bytecode.club.bytecodeviewer.compilers.impl; + +import java.io.File; +import java.util.Objects; +import me.konloch.kontainer.io.DiskWriter; +import org.apache.commons.io.FileUtils; +import the.bytecode.club.bytecodeviewer.BytecodeViewer; +import the.bytecode.club.bytecodeviewer.compilers.InternalCompiler; +import the.bytecode.club.bytecodeviewer.util.Dex2Jar; +import the.bytecode.club.bytecodeviewer.util.Enjarify; +import the.bytecode.club.bytecodeviewer.util.MiscUtils; +import the.bytecode.club.bytecodeviewer.util.ZipUtils; + +import static the.bytecode.club.bytecodeviewer.Constants.fs; +import static the.bytecode.club.bytecodeviewer.Constants.tempDirectory; + /** * Smali Assembler Wrapper for Java * diff --git a/src/main/java/the/bytecode/club/bytecodeviewer/decompilers/Decompiler.java b/src/main/java/the/bytecode/club/bytecodeviewer/decompilers/Decompiler.java index 3207415d..1b155fb4 100644 --- a/src/main/java/the/bytecode/club/bytecodeviewer/decompilers/Decompiler.java +++ b/src/main/java/the/bytecode/club/bytecodeviewer/decompilers/Decompiler.java @@ -1,7 +1,3 @@ -package the.bytecode.club.bytecodeviewer.decompilers; - -import the.bytecode.club.bytecodeviewer.decompilers.impl.*; - /*************************************************************************** * Bytecode Viewer (BCV) - Java & Android Reverse Engineering Suite * * Copyright (C) 2014 Konloch - Konloch.com / BytecodeViewer.com * @@ -20,6 +16,10 @@ import the.bytecode.club.bytecodeviewer.decompilers.impl.*; * along with this program. If not, see . * ***************************************************************************/ +package the.bytecode.club.bytecodeviewer.decompilers; + +import the.bytecode.club.bytecodeviewer.decompilers.impl.*; + /** * All of the decompilers/disassemblers BCV uses * diff --git a/src/main/java/the/bytecode/club/bytecodeviewer/decompilers/InternalDecompiler.java b/src/main/java/the/bytecode/club/bytecodeviewer/decompilers/InternalDecompiler.java index f44de5b2..9aa14434 100644 --- a/src/main/java/the/bytecode/club/bytecodeviewer/decompilers/InternalDecompiler.java +++ b/src/main/java/the/bytecode/club/bytecodeviewer/decompilers/InternalDecompiler.java @@ -1,7 +1,3 @@ -package the.bytecode.club.bytecodeviewer.decompilers; - -import org.objectweb.asm.tree.ClassNode; - /*************************************************************************** * Bytecode Viewer (BCV) - Java & Android Reverse Engineering Suite * * Copyright (C) 2014 Konloch - Konloch.com / BytecodeViewer.com * @@ -20,6 +16,10 @@ import org.objectweb.asm.tree.ClassNode; * along with this program. If not, see . * ***************************************************************************/ +package the.bytecode.club.bytecodeviewer.decompilers; + +import org.objectweb.asm.tree.ClassNode; + /** * Used to represent a decompiler/disassembler * diff --git a/src/main/java/the/bytecode/club/bytecodeviewer/decompilers/bytecode/ClassNodeDecompiler.java b/src/main/java/the/bytecode/club/bytecodeviewer/decompilers/bytecode/ClassNodeDecompiler.java index fa3ff959..cdba4855 100644 --- a/src/main/java/the/bytecode/club/bytecodeviewer/decompilers/bytecode/ClassNodeDecompiler.java +++ b/src/main/java/the/bytecode/club/bytecodeviewer/decompilers/bytecode/ClassNodeDecompiler.java @@ -1,17 +1,3 @@ -package the.bytecode.club.bytecodeviewer.decompilers.bytecode; - -import java.util.ArrayList; -import java.util.List; -import org.objectweb.asm.Attribute; -import org.objectweb.asm.Opcodes; -import org.objectweb.asm.tree.ClassNode; -import org.objectweb.asm.tree.FieldNode; -import org.objectweb.asm.tree.InnerClassNode; -import org.objectweb.asm.tree.MethodNode; -import the.bytecode.club.bytecodeviewer.BytecodeViewer; - -import static the.bytecode.club.bytecodeviewer.Constants.nl; - /*************************************************************************** * Bytecode Viewer (BCV) - Java & Android Reverse Engineering Suite * * Copyright (C) 2014 Konloch - Konloch.com / BytecodeViewer.com * @@ -30,6 +16,20 @@ import static the.bytecode.club.bytecodeviewer.Constants.nl; * along with this program. If not, see . * ***************************************************************************/ +package the.bytecode.club.bytecodeviewer.decompilers.bytecode; + +import java.util.ArrayList; +import java.util.List; +import org.objectweb.asm.Attribute; +import org.objectweb.asm.Opcodes; +import org.objectweb.asm.tree.ClassNode; +import org.objectweb.asm.tree.FieldNode; +import org.objectweb.asm.tree.InnerClassNode; +import org.objectweb.asm.tree.MethodNode; +import the.bytecode.club.bytecodeviewer.BytecodeViewer; + +import static the.bytecode.club.bytecodeviewer.Constants.nl; + /** * @author Konloch * @author Bibl diff --git a/src/main/java/the/bytecode/club/bytecodeviewer/decompilers/bytecode/FieldNodeDecompiler.java b/src/main/java/the/bytecode/club/bytecodeviewer/decompilers/bytecode/FieldNodeDecompiler.java index 8c897877..0b833d4e 100644 --- a/src/main/java/the/bytecode/club/bytecodeviewer/decompilers/bytecode/FieldNodeDecompiler.java +++ b/src/main/java/the/bytecode/club/bytecodeviewer/decompilers/bytecode/FieldNodeDecompiler.java @@ -1,11 +1,3 @@ -package the.bytecode.club.bytecodeviewer.decompilers.bytecode; - -import java.util.ArrayList; -import java.util.List; -import org.objectweb.asm.Opcodes; -import org.objectweb.asm.Type; -import org.objectweb.asm.tree.FieldNode; - /*************************************************************************** * Bytecode Viewer (BCV) - Java & Android Reverse Engineering Suite * * Copyright (C) 2014 Konloch - Konloch.com / BytecodeViewer.com * @@ -24,6 +16,14 @@ import org.objectweb.asm.tree.FieldNode; * along with this program. If not, see . * ***************************************************************************/ +package the.bytecode.club.bytecodeviewer.decompilers.bytecode; + +import java.util.ArrayList; +import java.util.List; +import org.objectweb.asm.Opcodes; +import org.objectweb.asm.Type; +import org.objectweb.asm.tree.FieldNode; + /** * @author Konloch * @author Bibl diff --git a/src/main/java/the/bytecode/club/bytecodeviewer/decompilers/bytecode/InstructionPattern.java b/src/main/java/the/bytecode/club/bytecodeviewer/decompilers/bytecode/InstructionPattern.java index 9554f77c..3cd40f03 100644 --- a/src/main/java/the/bytecode/club/bytecodeviewer/decompilers/bytecode/InstructionPattern.java +++ b/src/main/java/the/bytecode/club/bytecodeviewer/decompilers/bytecode/InstructionPattern.java @@ -1,3 +1,21 @@ +/*************************************************************************** + * Bytecode Viewer (BCV) - Java & Android Reverse Engineering Suite * + * Copyright (C) 2014 Konloch - Konloch.com / BytecodeViewer.com * + * * + * This program is free software: you can redistribute it and/or modify * + * it under the terms of the GNU General Public License as published by * + * the Free Software Foundation, either version 3 of the License, or * + * (at your option) any later version. * + * * + * This program is distributed in the hope that it will be useful, * + * but WITHOUT ANY WARRANTY; without even the implied warranty of * + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * + * GNU General Public License for more details. * + * * + * You should have received a copy of the GNU General Public License * + * along with this program. If not, see . * + ***************************************************************************/ + package the.bytecode.club.bytecodeviewer.decompilers.bytecode; import eu.bibl.banalysis.filter.InstructionFilter; @@ -25,24 +43,6 @@ import org.objectweb.asm.tree.MultiANewArrayInsnNode; import org.objectweb.asm.tree.TypeInsnNode; import org.objectweb.asm.tree.VarInsnNode; -/*************************************************************************** - * Bytecode Viewer (BCV) - Java & Android Reverse Engineering Suite * - * Copyright (C) 2014 Konloch - Konloch.com / BytecodeViewer.com * - * * - * This program is free software: you can redistribute it and/or modify * - * it under the terms of the GNU General Public License as published by * - * the Free Software Foundation, either version 3 of the License, or * - * (at your option) any later version. * - * * - * This program is distributed in the hope that it will be useful, * - * but WITHOUT ANY WARRANTY; without even the implied warranty of * - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * - * GNU General Public License for more details. * - * * - * You should have received a copy of the GNU General Public License * - * along with this program. If not, see . * - ***************************************************************************/ - /** * Pattern filter holder and stepper. * diff --git a/src/main/java/the/bytecode/club/bytecodeviewer/decompilers/bytecode/InstructionPrinter.java b/src/main/java/the/bytecode/club/bytecodeviewer/decompilers/bytecode/InstructionPrinter.java index 0f66a388..35fa24db 100644 --- a/src/main/java/the/bytecode/club/bytecodeviewer/decompilers/bytecode/InstructionPrinter.java +++ b/src/main/java/the/bytecode/club/bytecodeviewer/decompilers/bytecode/InstructionPrinter.java @@ -1,20 +1,3 @@ -package the.bytecode.club.bytecodeviewer.decompilers.bytecode; - -import eu.bibl.banalysis.asm.desc.OpcodeInfo; -import org.apache.commons.text.StringEscapeUtils; -import org.objectweb.asm.Opcodes; -import org.objectweb.asm.Type; -import org.objectweb.asm.tree.*; -import the.bytecode.club.bytecodeviewer.BytecodeViewer; - -import java.io.BufferedWriter; -import java.io.File; -import java.io.FileWriter; -import java.io.IOException; -import java.lang.reflect.Modifier; -import java.util.*; -import java.util.stream.Collectors; - /*************************************************************************** * Bytecode Viewer (BCV) - Java & Android Reverse Engineering Suite * * Copyright (C) 2014 Konloch - Konloch.com / BytecodeViewer.com * @@ -33,6 +16,23 @@ import java.util.stream.Collectors; * along with this program. If not, see . * ***************************************************************************/ +package the.bytecode.club.bytecodeviewer.decompilers.bytecode; + +import eu.bibl.banalysis.asm.desc.OpcodeInfo; +import org.apache.commons.text.StringEscapeUtils; +import org.objectweb.asm.Opcodes; +import org.objectweb.asm.Type; +import org.objectweb.asm.tree.*; +import the.bytecode.club.bytecodeviewer.BytecodeViewer; + +import java.io.BufferedWriter; +import java.io.File; +import java.io.FileWriter; +import java.io.IOException; +import java.lang.reflect.Modifier; +import java.util.*; +import java.util.stream.Collectors; + /** * @author Konloch * @author Bibl diff --git a/src/main/java/the/bytecode/club/bytecodeviewer/decompilers/bytecode/InstructionSearcher.java b/src/main/java/the/bytecode/club/bytecodeviewer/decompilers/bytecode/InstructionSearcher.java index 522e256a..f697b4a0 100644 --- a/src/main/java/the/bytecode/club/bytecodeviewer/decompilers/bytecode/InstructionSearcher.java +++ b/src/main/java/the/bytecode/club/bytecodeviewer/decompilers/bytecode/InstructionSearcher.java @@ -1,13 +1,3 @@ -package the.bytecode.club.bytecodeviewer.decompilers.bytecode; - -import java.util.ArrayList; -import java.util.List; -import org.objectweb.asm.Opcodes; -import org.objectweb.asm.tree.AbstractInsnNode; -import org.objectweb.asm.tree.FrameNode; -import org.objectweb.asm.tree.InsnList; -import org.objectweb.asm.tree.LineNumberNode; - /*************************************************************************** * Bytecode Viewer (BCV) - Java & Android Reverse Engineering Suite * * Copyright (C) 2014 Konloch - Konloch.com / BytecodeViewer.com * @@ -26,6 +16,16 @@ import org.objectweb.asm.tree.LineNumberNode; * along with this program. If not, see . * ***************************************************************************/ +package the.bytecode.club.bytecodeviewer.decompilers.bytecode; + +import java.util.ArrayList; +import java.util.List; +import org.objectweb.asm.Opcodes; +import org.objectweb.asm.tree.AbstractInsnNode; +import org.objectweb.asm.tree.FrameNode; +import org.objectweb.asm.tree.InsnList; +import org.objectweb.asm.tree.LineNumberNode; + /** * @author Bibl */ diff --git a/src/main/java/the/bytecode/club/bytecodeviewer/decompilers/bytecode/MethodNodeDecompiler.java b/src/main/java/the/bytecode/club/bytecodeviewer/decompilers/bytecode/MethodNodeDecompiler.java index c4c5381e..a4595463 100644 --- a/src/main/java/the/bytecode/club/bytecodeviewer/decompilers/bytecode/MethodNodeDecompiler.java +++ b/src/main/java/the/bytecode/club/bytecodeviewer/decompilers/bytecode/MethodNodeDecompiler.java @@ -1,19 +1,3 @@ -package the.bytecode.club.bytecodeviewer.decompilers.bytecode; - -import java.util.ArrayList; -import java.util.Arrays; -import java.util.List; -import org.objectweb.asm.Opcodes; -import org.objectweb.asm.Type; -import org.objectweb.asm.tree.AnnotationNode; -import org.objectweb.asm.tree.ClassNode; -import org.objectweb.asm.tree.LocalVariableNode; -import org.objectweb.asm.tree.MethodNode; -import org.objectweb.asm.tree.TryCatchBlockNode; -import the.bytecode.club.bytecodeviewer.BytecodeViewer; - -import static the.bytecode.club.bytecodeviewer.Constants.nl; - /*************************************************************************** * Bytecode Viewer (BCV) - Java & Android Reverse Engineering Suite * * Copyright (C) 2014 Konloch - Konloch.com / BytecodeViewer.com * @@ -32,6 +16,22 @@ import static the.bytecode.club.bytecodeviewer.Constants.nl; * along with this program. If not, see . * ***************************************************************************/ +package the.bytecode.club.bytecodeviewer.decompilers.bytecode; + +import java.util.ArrayList; +import java.util.Arrays; +import java.util.List; +import org.objectweb.asm.Opcodes; +import org.objectweb.asm.Type; +import org.objectweb.asm.tree.AnnotationNode; +import org.objectweb.asm.tree.ClassNode; +import org.objectweb.asm.tree.LocalVariableNode; +import org.objectweb.asm.tree.MethodNode; +import org.objectweb.asm.tree.TryCatchBlockNode; +import the.bytecode.club.bytecodeviewer.BytecodeViewer; + +import static the.bytecode.club.bytecodeviewer.Constants.nl; + /** * @author Konloch * @author Bibl diff --git a/src/main/java/the/bytecode/club/bytecodeviewer/decompilers/bytecode/PrefixedStringBuilder.java b/src/main/java/the/bytecode/club/bytecodeviewer/decompilers/bytecode/PrefixedStringBuilder.java index b53b4e14..6711722e 100644 --- a/src/main/java/the/bytecode/club/bytecodeviewer/decompilers/bytecode/PrefixedStringBuilder.java +++ b/src/main/java/the/bytecode/club/bytecodeviewer/decompilers/bytecode/PrefixedStringBuilder.java @@ -1,5 +1,3 @@ -package the.bytecode.club.bytecodeviewer.decompilers.bytecode; - /*************************************************************************** * Bytecode Viewer (BCV) - Java & Android Reverse Engineering Suite * * Copyright (C) 2014 Konloch - Konloch.com / BytecodeViewer.com * @@ -18,6 +16,8 @@ package the.bytecode.club.bytecodeviewer.decompilers.bytecode; * along with this program. If not, see . * ***************************************************************************/ +package the.bytecode.club.bytecodeviewer.decompilers.bytecode; + /** * @author Bibl */ diff --git a/src/main/java/the/bytecode/club/bytecodeviewer/decompilers/bytecode/TypeAndName.java b/src/main/java/the/bytecode/club/bytecodeviewer/decompilers/bytecode/TypeAndName.java index e9d63c9d..5b2fe8bf 100644 --- a/src/main/java/the/bytecode/club/bytecodeviewer/decompilers/bytecode/TypeAndName.java +++ b/src/main/java/the/bytecode/club/bytecodeviewer/decompilers/bytecode/TypeAndName.java @@ -1,7 +1,3 @@ -package the.bytecode.club.bytecodeviewer.decompilers.bytecode; - -import org.objectweb.asm.Type; - /*************************************************************************** * Bytecode Viewer (BCV) - Java & Android Reverse Engineering Suite * * Copyright (C) 2014 Konloch - Konloch.com / BytecodeViewer.com * @@ -20,6 +16,10 @@ import org.objectweb.asm.Type; * along with this program. If not, see . * ***************************************************************************/ +package the.bytecode.club.bytecodeviewer.decompilers.bytecode; + +import org.objectweb.asm.Type; + /** * Container class for type and name. Used to pass arguments and local variables * around diff --git a/src/main/java/the/bytecode/club/bytecodeviewer/decompilers/impl/ASMTextifierDisassembler.java b/src/main/java/the/bytecode/club/bytecodeviewer/decompilers/impl/ASMTextifierDisassembler.java index e1ff7391..cfd40b1b 100644 --- a/src/main/java/the/bytecode/club/bytecodeviewer/decompilers/impl/ASMTextifierDisassembler.java +++ b/src/main/java/the/bytecode/club/bytecodeviewer/decompilers/impl/ASMTextifierDisassembler.java @@ -1,12 +1,3 @@ -package the.bytecode.club.bytecodeviewer.decompilers.impl; - -import java.io.PrintWriter; -import java.io.StringWriter; -import org.objectweb.asm.tree.ClassNode; -import org.objectweb.asm.util.Textifier; -import org.objectweb.asm.util.TraceClassVisitor; -import the.bytecode.club.bytecodeviewer.decompilers.InternalDecompiler; - /*************************************************************************** * Bytecode Viewer (BCV) - Java & Android Reverse Engineering Suite * * Copyright (C) 2014 Konloch - Konloch.com / BytecodeViewer.com * @@ -25,6 +16,15 @@ import the.bytecode.club.bytecodeviewer.decompilers.InternalDecompiler; * along with this program. If not, see . * ***************************************************************************/ +package the.bytecode.club.bytecodeviewer.decompilers.impl; + +import java.io.PrintWriter; +import java.io.StringWriter; +import org.objectweb.asm.tree.ClassNode; +import org.objectweb.asm.util.Textifier; +import org.objectweb.asm.util.TraceClassVisitor; +import the.bytecode.club.bytecodeviewer.decompilers.InternalDecompiler; + /** * Objectweb ASM Textifier output * diff --git a/src/main/java/the/bytecode/club/bytecodeviewer/decompilers/impl/ASMifierGenerator.java b/src/main/java/the/bytecode/club/bytecodeviewer/decompilers/impl/ASMifierGenerator.java index ab23ef8c..bfc3da46 100644 --- a/src/main/java/the/bytecode/club/bytecodeviewer/decompilers/impl/ASMifierGenerator.java +++ b/src/main/java/the/bytecode/club/bytecodeviewer/decompilers/impl/ASMifierGenerator.java @@ -1,14 +1,3 @@ -package the.bytecode.club.bytecodeviewer.decompilers.impl; - -import org.objectweb.asm.tree.ClassNode; -import org.objectweb.asm.util.ASMifier; -import org.objectweb.asm.util.Textifier; -import org.objectweb.asm.util.TraceClassVisitor; -import the.bytecode.club.bytecodeviewer.decompilers.InternalDecompiler; - -import java.io.PrintWriter; -import java.io.StringWriter; - /*************************************************************************** * Bytecode Viewer (BCV) - Java & Android Reverse Engineering Suite * * Copyright (C) 2014 Konloch - Konloch.com / BytecodeViewer.com * @@ -27,6 +16,17 @@ import java.io.StringWriter; * along with this program. If not, see . * ***************************************************************************/ +package the.bytecode.club.bytecodeviewer.decompilers.impl; + +import org.objectweb.asm.tree.ClassNode; +import org.objectweb.asm.util.ASMifier; +import org.objectweb.asm.util.Textifier; +import org.objectweb.asm.util.TraceClassVisitor; +import the.bytecode.club.bytecodeviewer.decompilers.InternalDecompiler; + +import java.io.PrintWriter; +import java.io.StringWriter; + /** * Objectweb ASMifier output * diff --git a/src/main/java/the/bytecode/club/bytecodeviewer/decompilers/impl/BytecodeDisassembler.java b/src/main/java/the/bytecode/club/bytecodeviewer/decompilers/impl/BytecodeDisassembler.java index 12b47409..634f77bc 100644 --- a/src/main/java/the/bytecode/club/bytecodeviewer/decompilers/impl/BytecodeDisassembler.java +++ b/src/main/java/the/bytecode/club/bytecodeviewer/decompilers/impl/BytecodeDisassembler.java @@ -1,11 +1,3 @@ -package the.bytecode.club.bytecodeviewer.decompilers.impl; - -import java.util.ArrayList; -import org.objectweb.asm.tree.ClassNode; -import the.bytecode.club.bytecodeviewer.decompilers.InternalDecompiler; -import the.bytecode.club.bytecodeviewer.decompilers.bytecode.ClassNodeDecompiler; -import the.bytecode.club.bytecodeviewer.decompilers.bytecode.PrefixedStringBuilder; - /*************************************************************************** * Bytecode Viewer (BCV) - Java & Android Reverse Engineering Suite * * Copyright (C) 2014 Konloch - Konloch.com / BytecodeViewer.com * @@ -24,6 +16,14 @@ import the.bytecode.club.bytecodeviewer.decompilers.bytecode.PrefixedStringBuild * along with this program. If not, see . * ***************************************************************************/ +package the.bytecode.club.bytecodeviewer.decompilers.impl; + +import java.util.ArrayList; +import org.objectweb.asm.tree.ClassNode; +import the.bytecode.club.bytecodeviewer.decompilers.InternalDecompiler; +import the.bytecode.club.bytecodeviewer.decompilers.bytecode.ClassNodeDecompiler; +import the.bytecode.club.bytecodeviewer.decompilers.bytecode.PrefixedStringBuilder; + /** * @author Konloch * @since 7/3/2021 diff --git a/src/main/java/the/bytecode/club/bytecodeviewer/decompilers/impl/CFRDecompiler.java b/src/main/java/the/bytecode/club/bytecodeviewer/decompilers/impl/CFRDecompiler.java index 5ae3910f..023e9b2b 100644 --- a/src/main/java/the/bytecode/club/bytecodeviewer/decompilers/impl/CFRDecompiler.java +++ b/src/main/java/the/bytecode/club/bytecodeviewer/decompilers/impl/CFRDecompiler.java @@ -1,3 +1,21 @@ +/*************************************************************************** + * Bytecode Viewer (BCV) - Java & Android Reverse Engineering Suite * + * Copyright (C) 2014 Konloch - Konloch.com / BytecodeViewer.com * + * * + * This program is free software: you can redistribute it and/or modify * + * it under the terms of the GNU General Public License as published by * + * the Free Software Foundation, either version 3 of the License, or * + * (at your option) any later version. * + * * + * This program is distributed in the hope that it will be useful, * + * but WITHOUT ANY WARRANTY; without even the implied warranty of * + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * + * GNU General Public License for more details. * + * * + * You should have received a copy of the GNU General Public License * + * along with this program. If not, see . * + ***************************************************************************/ + package the.bytecode.club.bytecodeviewer.decompilers.impl; import java.io.BufferedOutputStream; @@ -41,24 +59,6 @@ import static the.bytecode.club.bytecodeviewer.Constants.nl; import static the.bytecode.club.bytecodeviewer.translation.TranslatedStrings.CFR; import static the.bytecode.club.bytecodeviewer.translation.TranslatedStrings.ERROR; -/*************************************************************************** - * Bytecode Viewer (BCV) - Java & Android Reverse Engineering Suite * - * Copyright (C) 2014 Konloch - Konloch.com / BytecodeViewer.com * - * * - * This program is free software: you can redistribute it and/or modify * - * it under the terms of the GNU General Public License as published by * - * the Free Software Foundation, either version 3 of the License, or * - * (at your option) any later version. * - * * - * This program is distributed in the hope that it will be useful, * - * but WITHOUT ANY WARRANTY; without even the implied warranty of * - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * - * GNU General Public License for more details. * - * * - * You should have received a copy of the GNU General Public License * - * along with this program. If not, see . * - ***************************************************************************/ - /** * CFR Java Wrapper * diff --git a/src/main/java/the/bytecode/club/bytecodeviewer/decompilers/impl/FernFlowerDecompiler.java b/src/main/java/the/bytecode/club/bytecodeviewer/decompilers/impl/FernFlowerDecompiler.java index 8e2c0899..521be1d2 100644 --- a/src/main/java/the/bytecode/club/bytecodeviewer/decompilers/impl/FernFlowerDecompiler.java +++ b/src/main/java/the/bytecode/club/bytecodeviewer/decompilers/impl/FernFlowerDecompiler.java @@ -1,3 +1,21 @@ +/*************************************************************************** + * Bytecode Viewer (BCV) - Java & Android Reverse Engineering Suite * + * Copyright (C) 2014 Konloch - Konloch.com / BytecodeViewer.com * + * * + * This program is free software: you can redistribute it and/or modify * + * it under the terms of the GNU General Public License as published by * + * the Free Software Foundation, either version 3 of the License, or * + * (at your option) any later version. * + * * + * This program is distributed in the hope that it will be useful, * + * but WITHOUT ANY WARRANTY; without even the implied warranty of * + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * + * GNU General Public License for more details. * + * * + * You should have received a copy of the GNU General Public License * + * along with this program. If not, see . * + ***************************************************************************/ + package the.bytecode.club.bytecodeviewer.decompilers.impl; import java.io.File; @@ -20,24 +38,6 @@ import static the.bytecode.club.bytecodeviewer.Constants.tempDirectory; import static the.bytecode.club.bytecodeviewer.translation.TranslatedStrings.ERROR; import static the.bytecode.club.bytecodeviewer.translation.TranslatedStrings.FERNFLOWER; -/*************************************************************************** - * Bytecode Viewer (BCV) - Java & Android Reverse Engineering Suite * - * Copyright (C) 2014 Konloch - Konloch.com / BytecodeViewer.com * - * * - * This program is free software: you can redistribute it and/or modify * - * it under the terms of the GNU General Public License as published by * - * the Free Software Foundation, either version 3 of the License, or * - * (at your option) any later version. * - * * - * This program is distributed in the hope that it will be useful, * - * but WITHOUT ANY WARRANTY; without even the implied warranty of * - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * - * GNU General Public License for more details. * - * * - * You should have received a copy of the GNU General Public License * - * along with this program. If not, see . * - ***************************************************************************/ - /** * A FernFlower wrapper with all the options (except 2) * diff --git a/src/main/java/the/bytecode/club/bytecodeviewer/decompilers/impl/JADXDecompiler.java b/src/main/java/the/bytecode/club/bytecodeviewer/decompilers/impl/JADXDecompiler.java index 756d5af3..4f832686 100644 --- a/src/main/java/the/bytecode/club/bytecodeviewer/decompilers/impl/JADXDecompiler.java +++ b/src/main/java/the/bytecode/club/bytecodeviewer/decompilers/impl/JADXDecompiler.java @@ -1,3 +1,21 @@ +/*************************************************************************** + * Bytecode Viewer (BCV) - Java & Android Reverse Engineering Suite * + * Copyright (C) 2014 Konloch - Konloch.com / BytecodeViewer.com * + * * + * This program is free software: you can redistribute it and/or modify * + * it under the terms of the GNU General Public License as published by * + * the Free Software Foundation, either version 3 of the License, or * + * (at your option) any later version. * + * * + * This program is distributed in the hope that it will be useful, * + * but WITHOUT ANY WARRANTY; without even the implied warranty of * + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * + * GNU General Public License for more details. * + * * + * You should have received a copy of the GNU General Public License * + * along with this program. If not, see . * + ***************************************************************************/ + package the.bytecode.club.bytecodeviewer.decompilers.impl; import jadx.api.JadxArgs; @@ -22,24 +40,6 @@ import static the.bytecode.club.bytecodeviewer.Constants.tempDirectory; import static the.bytecode.club.bytecodeviewer.translation.TranslatedStrings.ERROR; import static the.bytecode.club.bytecodeviewer.translation.TranslatedStrings.JADX; -/*************************************************************************** - * Bytecode Viewer (BCV) - Java & Android Reverse Engineering Suite * - * Copyright (C) 2014 Konloch - Konloch.com / BytecodeViewer.com * - * * - * This program is free software: you can redistribute it and/or modify * - * it under the terms of the GNU General Public License as published by * - * the Free Software Foundation, either version 3 of the License, or * - * (at your option) any later version. * - * * - * This program is distributed in the hope that it will be useful, * - * but WITHOUT ANY WARRANTY; without even the implied warranty of * - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * - * GNU General Public License for more details. * - * * - * You should have received a copy of the GNU General Public License * - * along with this program. If not, see . * - ***************************************************************************/ - /** * JADX Java Wrapper * diff --git a/src/main/java/the/bytecode/club/bytecodeviewer/decompilers/impl/JDGUIDecompiler.java b/src/main/java/the/bytecode/club/bytecodeviewer/decompilers/impl/JDGUIDecompiler.java index e75912f0..d52a15a6 100644 --- a/src/main/java/the/bytecode/club/bytecodeviewer/decompilers/impl/JDGUIDecompiler.java +++ b/src/main/java/the/bytecode/club/bytecodeviewer/decompilers/impl/JDGUIDecompiler.java @@ -1,3 +1,21 @@ +/*************************************************************************** + * Bytecode Viewer (BCV) - Java & Android Reverse Engineering Suite * + * Copyright (C) 2014 Konloch - Konloch.com / BytecodeViewer.com * + * * + * This program is free software: you can redistribute it and/or modify * + * it under the terms of the GNU General Public License as published by * + * the Free Software Foundation, either version 3 of the License, or * + * (at your option) any later version. * + * * + * This program is distributed in the hope that it will be useful, * + * but WITHOUT ANY WARRANTY; without even the implied warranty of * + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * + * GNU General Public License for more details. * + * * + * You should have received a copy of the GNU General Public License * + * along with this program. If not, see . * + ***************************************************************************/ + package the.bytecode.club.bytecodeviewer.decompilers.impl; import java.io.File; @@ -25,24 +43,6 @@ import static the.bytecode.club.bytecodeviewer.Constants.nl; import static the.bytecode.club.bytecodeviewer.translation.TranslatedStrings.ERROR; import static the.bytecode.club.bytecodeviewer.translation.TranslatedStrings.JDGUI; -/*************************************************************************** - * Bytecode Viewer (BCV) - Java & Android Reverse Engineering Suite * - * Copyright (C) 2014 Konloch - Konloch.com / BytecodeViewer.com * - * * - * This program is free software: you can redistribute it and/or modify * - * it under the terms of the GNU General Public License as published by * - * the Free Software Foundation, either version 3 of the License, or * - * (at your option) any later version. * - * * - * This program is distributed in the hope that it will be useful, * - * but WITHOUT ANY WARRANTY; without even the implied warranty of * - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * - * GNU General Public License for more details. * - * * - * You should have received a copy of the GNU General Public License * - * along with this program. If not, see . * - ***************************************************************************/ - /** * JD-Core Decompiler Wrapper * diff --git a/src/main/java/the/bytecode/club/bytecodeviewer/decompilers/impl/JavapDisassembler.java b/src/main/java/the/bytecode/club/bytecodeviewer/decompilers/impl/JavapDisassembler.java index bd4bc0de..bcf538d0 100644 --- a/src/main/java/the/bytecode/club/bytecodeviewer/decompilers/impl/JavapDisassembler.java +++ b/src/main/java/the/bytecode/club/bytecodeviewer/decompilers/impl/JavapDisassembler.java @@ -1,3 +1,21 @@ +/*************************************************************************** + * Bytecode Viewer (BCV) - Java & Android Reverse Engineering Suite * + * Copyright (C) 2014 Konloch - Konloch.com / BytecodeViewer.com * + * * + * This program is free software: you can redistribute it and/or modify * + * it under the terms of the GNU General Public License as published by * + * the Free Software Foundation, either version 3 of the License, or * + * (at your option) any later version. * + * * + * This program is distributed in the hope that it will be useful, * + * but WITHOUT ANY WARRANTY; without even the implied warranty of * + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * + * GNU General Public License for more details. * + * * + * You should have received a copy of the GNU General Public License * + * along with this program. If not, see . * + ***************************************************************************/ + package the.bytecode.club.bytecodeviewer.decompilers.impl; import java.io.File; @@ -18,24 +36,6 @@ import the.bytecode.club.bytecodeviewer.util.MiscUtils; import static the.bytecode.club.bytecodeviewer.Constants.fs; import static the.bytecode.club.bytecodeviewer.api.ExceptionUI.SEND_STACKTRACE_TO; -/*************************************************************************** - * Bytecode Viewer (BCV) - Java & Android Reverse Engineering Suite * - * Copyright (C) 2014 Konloch - Konloch.com / BytecodeViewer.com * - * * - * This program is free software: you can redistribute it and/or modify * - * it under the terms of the GNU General Public License as published by * - * the Free Software Foundation, either version 3 of the License, or * - * (at your option) any later version. * - * * - * This program is distributed in the hope that it will be useful, * - * but WITHOUT ANY WARRANTY; without even the implied warranty of * - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * - * GNU General Public License for more details. * - * * - * You should have received a copy of the GNU General Public License * - * along with this program. If not, see . * - ***************************************************************************/ - /** * Javap disassembler * diff --git a/src/main/java/the/bytecode/club/bytecodeviewer/decompilers/impl/KrakatauDecompiler.java b/src/main/java/the/bytecode/club/bytecodeviewer/decompilers/impl/KrakatauDecompiler.java index 46eb02f4..8a5e64c7 100644 --- a/src/main/java/the/bytecode/club/bytecodeviewer/decompilers/impl/KrakatauDecompiler.java +++ b/src/main/java/the/bytecode/club/bytecodeviewer/decompilers/impl/KrakatauDecompiler.java @@ -1,3 +1,21 @@ +/*************************************************************************** + * Bytecode Viewer (BCV) - Java & Android Reverse Engineering Suite * + * Copyright (C) 2014 Konloch - Konloch.com / BytecodeViewer.com * + * * + * This program is free software: you can redistribute it and/or modify * + * it under the terms of the GNU General Public License as published by * + * the Free Software Foundation, either version 3 of the License, or * + * (at your option) any later version. * + * * + * This program is distributed in the hope that it will be useful, * + * but WITHOUT ANY WARRANTY; without even the implied warranty of * + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * + * GNU General Public License for more details. * + * * + * You should have received a copy of the GNU General Public License * + * along with this program. If not, see . * + ***************************************************************************/ + package the.bytecode.club.bytecodeviewer.decompilers.impl; import java.io.BufferedReader; @@ -26,24 +44,6 @@ import static the.bytecode.club.bytecodeviewer.Constants.fs; import static the.bytecode.club.bytecodeviewer.Constants.krakatauWorkingDirectory; import static the.bytecode.club.bytecodeviewer.Constants.nl; -/*************************************************************************** - * Bytecode Viewer (BCV) - Java & Android Reverse Engineering Suite * - * Copyright (C) 2014 Konloch - Konloch.com / BytecodeViewer.com * - * * - * This program is free software: you can redistribute it and/or modify * - * it under the terms of the GNU General Public License as published by * - * the Free Software Foundation, either version 3 of the License, or * - * (at your option) any later version. * - * * - * This program is distributed in the hope that it will be useful, * - * but WITHOUT ANY WARRANTY; without even the implied warranty of * - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * - * GNU General Public License for more details. * - * * - * You should have received a copy of the GNU General Public License * - * along with this program. If not, see . * - ***************************************************************************/ - /** * Krakatau Java Decompiler Wrapper, requires Python 2.7 * diff --git a/src/main/java/the/bytecode/club/bytecodeviewer/decompilers/impl/KrakatauDisassembler.java b/src/main/java/the/bytecode/club/bytecodeviewer/decompilers/impl/KrakatauDisassembler.java index d2a95fd9..9cae8979 100644 --- a/src/main/java/the/bytecode/club/bytecodeviewer/decompilers/impl/KrakatauDisassembler.java +++ b/src/main/java/the/bytecode/club/bytecodeviewer/decompilers/impl/KrakatauDisassembler.java @@ -1,3 +1,21 @@ +/*************************************************************************** + * Bytecode Viewer (BCV) - Java & Android Reverse Engineering Suite * + * Copyright (C) 2014 Konloch - Konloch.com / BytecodeViewer.com * + * * + * This program is free software: you can redistribute it and/or modify * + * it under the terms of the GNU General Public License as published by * + * the Free Software Foundation, either version 3 of the License, or * + * (at your option) any later version. * + * * + * This program is distributed in the hope that it will be useful, * + * but WITHOUT ANY WARRANTY; without even the implied warranty of * + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * + * GNU General Public License for more details. * + * * + * You should have received a copy of the GNU General Public License * + * along with this program. If not, see . * + ***************************************************************************/ + package the.bytecode.club.bytecodeviewer.decompilers.impl; import java.io.BufferedReader; @@ -24,24 +42,6 @@ import static the.bytecode.club.bytecodeviewer.Constants.fs; import static the.bytecode.club.bytecodeviewer.Constants.krakatauWorkingDirectory; import static the.bytecode.club.bytecodeviewer.Constants.nl; -/*************************************************************************** - * Bytecode Viewer (BCV) - Java & Android Reverse Engineering Suite * - * Copyright (C) 2014 Konloch - Konloch.com / BytecodeViewer.com * - * * - * This program is free software: you can redistribute it and/or modify * - * it under the terms of the GNU General Public License as published by * - * the Free Software Foundation, either version 3 of the License, or * - * (at your option) any later version. * - * * - * This program is distributed in the hope that it will be useful, * - * but WITHOUT ANY WARRANTY; without even the implied warranty of * - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * - * GNU General Public License for more details. * - * * - * You should have received a copy of the GNU General Public License * - * along with this program. If not, see . * - ***************************************************************************/ - /** * Krakatau Java Disassembler Wrapper, requires Python 2.7 * diff --git a/src/main/java/the/bytecode/club/bytecodeviewer/decompilers/impl/ProcyonDecompiler.java b/src/main/java/the/bytecode/club/bytecodeviewer/decompilers/impl/ProcyonDecompiler.java index 839d729f..218ba8ab 100644 --- a/src/main/java/the/bytecode/club/bytecodeviewer/decompilers/impl/ProcyonDecompiler.java +++ b/src/main/java/the/bytecode/club/bytecodeviewer/decompilers/impl/ProcyonDecompiler.java @@ -1,3 +1,21 @@ +/*************************************************************************** + * Bytecode Viewer (BCV) - Java & Android Reverse Engineering Suite * + * Copyright (C) 2014 Konloch - Konloch.com / BytecodeViewer.com * + * * + * This program is free software: you can redistribute it and/or modify * + * it under the terms of the GNU General Public License as published by * + * the Free Software Foundation, either version 3 of the License, or * + * (at your option) any later version. * + * * + * This program is distributed in the hope that it will be useful, * + * but WITHOUT ANY WARRANTY; without even the implied warranty of * + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * + * GNU General Public License for more details. * + * * + * You should have received a copy of the GNU General Public License * + * along with this program. If not, see . * + ***************************************************************************/ + package the.bytecode.club.bytecodeviewer.decompilers.impl; import com.strobel.assembler.InputTypeLoader; @@ -44,24 +62,6 @@ import static the.bytecode.club.bytecodeviewer.Constants.tempDirectory; import static the.bytecode.club.bytecodeviewer.translation.TranslatedStrings.ERROR; import static the.bytecode.club.bytecodeviewer.translation.TranslatedStrings.PROCYON; -/*************************************************************************** - * Bytecode Viewer (BCV) - Java & Android Reverse Engineering Suite * - * Copyright (C) 2014 Konloch - Konloch.com / BytecodeViewer.com * - * * - * This program is free software: you can redistribute it and/or modify * - * it under the terms of the GNU General Public License as published by * - * the Free Software Foundation, either version 3 of the License, or * - * (at your option) any later version. * - * * - * This program is distributed in the hope that it will be useful, * - * but WITHOUT ANY WARRANTY; without even the implied warranty of * - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * - * GNU General Public License for more details. * - * * - * You should have received a copy of the GNU General Public License * - * along with this program. If not, see . * - ***************************************************************************/ - /** * Procyon Java Decompiler Wrapper * diff --git a/src/main/java/the/bytecode/club/bytecodeviewer/decompilers/impl/SmaliDisassembler.java b/src/main/java/the/bytecode/club/bytecodeviewer/decompilers/impl/SmaliDisassembler.java index ec96701a..98b7e930 100644 --- a/src/main/java/the/bytecode/club/bytecodeviewer/decompilers/impl/SmaliDisassembler.java +++ b/src/main/java/the/bytecode/club/bytecodeviewer/decompilers/impl/SmaliDisassembler.java @@ -1,3 +1,21 @@ +/*************************************************************************** + * Bytecode Viewer (BCV) - Java & Android Reverse Engineering Suite * + * Copyright (C) 2014 Konloch - Konloch.com / BytecodeViewer.com * + * * + * This program is free software: you can redistribute it and/or modify * + * it under the terms of the GNU General Public License as published by * + * the Free Software Foundation, either version 3 of the License, or * + * (at your option) any later version. * + * * + * This program is distributed in the hope that it will be useful, * + * but WITHOUT ANY WARRANTY; without even the implied warranty of * + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * + * GNU General Public License for more details. * + * * + * You should have received a copy of the GNU General Public License * + * along with this program. If not, see . * + ***************************************************************************/ + package the.bytecode.club.bytecodeviewer.decompilers.impl; import com.googlecode.d2j.smali.BaksmaliCmd; @@ -24,24 +42,6 @@ import static the.bytecode.club.bytecodeviewer.translation.TranslatedStrings.DIS import static the.bytecode.club.bytecodeviewer.translation.TranslatedStrings.ERROR; import static the.bytecode.club.bytecodeviewer.translation.TranslatedStrings.SMALI; -/*************************************************************************** - * Bytecode Viewer (BCV) - Java & Android Reverse Engineering Suite * - * Copyright (C) 2014 Konloch - Konloch.com / BytecodeViewer.com * - * * - * This program is free software: you can redistribute it and/or modify * - * it under the terms of the GNU General Public License as published by * - * the Free Software Foundation, either version 3 of the License, or * - * (at your option) any later version. * - * * - * This program is distributed in the hope that it will be useful, * - * but WITHOUT ANY WARRANTY; without even the implied warranty of * - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * - * GNU General Public License for more details. * - * * - * You should have received a copy of the GNU General Public License * - * along with this program. If not, see . * - ***************************************************************************/ - /** * Smali Disassembler Wrapper * diff --git a/src/main/java/the/bytecode/club/bytecodeviewer/decompilers/jdgui/CommonPreferences.java b/src/main/java/the/bytecode/club/bytecodeviewer/decompilers/jdgui/CommonPreferences.java index bd7d587e..828774f0 100644 --- a/src/main/java/the/bytecode/club/bytecodeviewer/decompilers/jdgui/CommonPreferences.java +++ b/src/main/java/the/bytecode/club/bytecodeviewer/decompilers/jdgui/CommonPreferences.java @@ -1,3 +1,21 @@ +/*************************************************************************** + * Bytecode Viewer (BCV) - Java & Android Reverse Engineering Suite * + * Copyright (C) 2014 Konloch - Konloch.com / BytecodeViewer.com * + * * + * This program is free software: you can redistribute it and/or modify * + * it under the terms of the GNU General Public License as published by * + * the Free Software Foundation, either version 3 of the License, or * + * (at your option) any later version. * + * * + * This program is distributed in the hope that it will be useful, * + * but WITHOUT ANY WARRANTY; without even the implied warranty of * + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * + * GNU General Public License for more details. * + * * + * You should have received a copy of the GNU General Public License * + * along with this program. If not, see . * + ***************************************************************************/ + package the.bytecode.club.bytecodeviewer.decompilers.jdgui; import java.util.HashMap; diff --git a/src/main/java/the/bytecode/club/bytecodeviewer/decompilers/jdgui/DirectoryLoader.java b/src/main/java/the/bytecode/club/bytecodeviewer/decompilers/jdgui/DirectoryLoader.java index d67bc886..12873b80 100644 --- a/src/main/java/the/bytecode/club/bytecodeviewer/decompilers/jdgui/DirectoryLoader.java +++ b/src/main/java/the/bytecode/club/bytecodeviewer/decompilers/jdgui/DirectoryLoader.java @@ -1,3 +1,21 @@ +/*************************************************************************** + * Bytecode Viewer (BCV) - Java & Android Reverse Engineering Suite * + * Copyright (C) 2014 Konloch - Konloch.com / BytecodeViewer.com * + * * + * This program is free software: you can redistribute it and/or modify * + * it under the terms of the GNU General Public License as published by * + * the Free Software Foundation, either version 3 of the License, or * + * (at your option) any later version. * + * * + * This program is distributed in the hope that it will be useful, * + * but WITHOUT ANY WARRANTY; without even the implied warranty of * + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * + * GNU General Public License for more details. * + * * + * You should have received a copy of the GNU General Public License * + * along with this program. If not, see . * + ***************************************************************************/ + package the.bytecode.club.bytecodeviewer.decompilers.jdgui; import java.io.BufferedInputStream; diff --git a/src/main/java/the/bytecode/club/bytecodeviewer/decompilers/jdgui/JDGUIClassFileUtil.java b/src/main/java/the/bytecode/club/bytecodeviewer/decompilers/jdgui/JDGUIClassFileUtil.java index c2474d7b..1818db49 100644 --- a/src/main/java/the/bytecode/club/bytecodeviewer/decompilers/jdgui/JDGUIClassFileUtil.java +++ b/src/main/java/the/bytecode/club/bytecodeviewer/decompilers/jdgui/JDGUIClassFileUtil.java @@ -1,3 +1,21 @@ +/*************************************************************************** + * Bytecode Viewer (BCV) - Java & Android Reverse Engineering Suite * + * Copyright (C) 2014 Konloch - Konloch.com / BytecodeViewer.com * + * * + * This program is free software: you can redistribute it and/or modify * + * it under the terms of the GNU General Public License as published by * + * the Free Software Foundation, either version 3 of the License, or * + * (at your option) any later version. * + * * + * This program is distributed in the hope that it will be useful, * + * but WITHOUT ANY WARRANTY; without even the implied warranty of * + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * + * GNU General Public License for more details. * + * * + * You should have received a copy of the GNU General Public License * + * along with this program. If not, see . * + ***************************************************************************/ + package the.bytecode.club.bytecodeviewer.decompilers.jdgui; import java.io.BufferedInputStream; diff --git a/src/main/java/the/bytecode/club/bytecodeviewer/decompilers/jdgui/PlainTextPrinter.java b/src/main/java/the/bytecode/club/bytecodeviewer/decompilers/jdgui/PlainTextPrinter.java index 73596eab..7954aca9 100644 --- a/src/main/java/the/bytecode/club/bytecodeviewer/decompilers/jdgui/PlainTextPrinter.java +++ b/src/main/java/the/bytecode/club/bytecodeviewer/decompilers/jdgui/PlainTextPrinter.java @@ -1,3 +1,21 @@ +/*************************************************************************** + * Bytecode Viewer (BCV) - Java & Android Reverse Engineering Suite * + * Copyright (C) 2014 Konloch - Konloch.com / BytecodeViewer.com * + * * + * This program is free software: you can redistribute it and/or modify * + * it under the terms of the GNU General Public License as published by * + * the Free Software Foundation, either version 3 of the License, or * + * (at your option) any later version. * + * * + * This program is distributed in the hope that it will be useful, * + * but WITHOUT ANY WARRANTY; without even the implied warranty of * + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * + * GNU General Public License for more details. * + * * + * You should have received a copy of the GNU General Public License * + * along with this program. If not, see . * + ***************************************************************************/ + package the.bytecode.club.bytecodeviewer.decompilers.jdgui; import java.io.Closeable; diff --git a/src/main/java/the/bytecode/club/bytecodeviewer/gui/MainViewerGUI.java b/src/main/java/the/bytecode/club/bytecodeviewer/gui/MainViewerGUI.java index 81ea8e85..11d54709 100644 --- a/src/main/java/the/bytecode/club/bytecodeviewer/gui/MainViewerGUI.java +++ b/src/main/java/the/bytecode/club/bytecodeviewer/gui/MainViewerGUI.java @@ -1,3 +1,21 @@ +/*************************************************************************** + * Bytecode Viewer (BCV) - Java & Android Reverse Engineering Suite * + * Copyright (C) 2014 Konloch - Konloch.com / BytecodeViewer.com * + * * + * This program is free software: you can redistribute it and/or modify * + * it under the terms of the GNU General Public License as published by * + * the Free Software Foundation, either version 3 of the License, or * + * (at your option) any later version. * + * * + * This program is distributed in the hope that it will be useful, * + * but WITHOUT ANY WARRANTY; without even the implied warranty of * + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * + * GNU General Public License for more details. * + * * + * You should have received a copy of the GNU General Public License * + * along with this program. If not, see . * + ***************************************************************************/ + package the.bytecode.club.bytecodeviewer.gui; import java.awt.*; @@ -67,24 +85,6 @@ import static the.bytecode.club.bytecodeviewer.Configuration.useNewSettingsDialo import static the.bytecode.club.bytecodeviewer.Constants.VERSION; import static the.bytecode.club.bytecodeviewer.Constants.fs; -/*************************************************************************** - * Bytecode Viewer (BCV) - Java & Android Reverse Engineering Suite * - * Copyright (C) 2014 Konloch - Konloch.com / BytecodeViewer.com * - * * - * This program is free software: you can redistribute it and/or modify * - * it under the terms of the GNU General Public License as published by * - * the Free Software Foundation, either version 3 of the License, or * - * (at your option) any later version. * - * * - * This program is distributed in the hope that it will be useful, * - * but WITHOUT ANY WARRANTY; without even the implied warranty of * - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * - * GNU General Public License for more details. * - * * - * You should have received a copy of the GNU General Public License * - * along with this program. If not, see . * - ***************************************************************************/ - /** * The main file for the GUI * diff --git a/src/main/java/the/bytecode/club/bytecodeviewer/gui/components/AboutWindow.java b/src/main/java/the/bytecode/club/bytecodeviewer/gui/components/AboutWindow.java index 03979816..4a721d75 100644 --- a/src/main/java/the/bytecode/club/bytecodeviewer/gui/components/AboutWindow.java +++ b/src/main/java/the/bytecode/club/bytecodeviewer/gui/components/AboutWindow.java @@ -1,15 +1,3 @@ -package the.bytecode.club.bytecodeviewer.gui.components; - -import java.awt.CardLayout; -import java.io.IOException; -import javax.swing.JFrame; -import javax.swing.JScrollPane; -import the.bytecode.club.bytecodeviewer.bootloader.InitialBootScreen; -import the.bytecode.club.bytecodeviewer.resources.IconResources; -import the.bytecode.club.bytecodeviewer.translation.TranslatedStrings; - -import static the.bytecode.club.bytecodeviewer.Configuration.language; - /*************************************************************************** * Bytecode Viewer (BCV) - Java & Android Reverse Engineering Suite * * Copyright (C) 2014 Konloch - Konloch.com / BytecodeViewer.com * @@ -28,6 +16,18 @@ import static the.bytecode.club.bytecodeviewer.Configuration.language; * along with this program. If not, see . * ***************************************************************************/ +package the.bytecode.club.bytecodeviewer.gui.components; + +import java.awt.CardLayout; +import java.io.IOException; +import javax.swing.JFrame; +import javax.swing.JScrollPane; +import the.bytecode.club.bytecodeviewer.bootloader.InitialBootScreen; +import the.bytecode.club.bytecodeviewer.resources.IconResources; +import the.bytecode.club.bytecodeviewer.translation.TranslatedStrings; + +import static the.bytecode.club.bytecodeviewer.Configuration.language; + /** * The about window - used to explain what BCV is, how to use it, etc. * diff --git a/src/main/java/the/bytecode/club/bytecodeviewer/gui/components/ButtonHoverAnimation.java b/src/main/java/the/bytecode/club/bytecodeviewer/gui/components/ButtonHoverAnimation.java index cc43533d..88365db3 100644 --- a/src/main/java/the/bytecode/club/bytecodeviewer/gui/components/ButtonHoverAnimation.java +++ b/src/main/java/the/bytecode/club/bytecodeviewer/gui/components/ButtonHoverAnimation.java @@ -1,10 +1,3 @@ -package the.bytecode.club.bytecodeviewer.gui.components; - -import java.awt.Component; -import java.awt.event.MouseAdapter; -import java.awt.event.MouseEvent; -import javax.swing.AbstractButton; - /*************************************************************************** * Bytecode Viewer (BCV) - Java & Android Reverse Engineering Suite * * Copyright (C) 2014 Konloch - Konloch.com / BytecodeViewer.com * @@ -23,6 +16,13 @@ import javax.swing.AbstractButton; * along with this program. If not, see . * ***************************************************************************/ +package the.bytecode.club.bytecodeviewer.gui.components; + +import java.awt.Component; +import java.awt.event.MouseAdapter; +import java.awt.event.MouseEvent; +import javax.swing.AbstractButton; + /** * @author Konloch * @since 6/25/2021 diff --git a/src/main/java/the/bytecode/club/bytecodeviewer/gui/components/DecompilerViewComponent.java b/src/main/java/the/bytecode/club/bytecodeviewer/gui/components/DecompilerViewComponent.java index ba84da2a..faf3181a 100644 --- a/src/main/java/the/bytecode/club/bytecodeviewer/gui/components/DecompilerViewComponent.java +++ b/src/main/java/the/bytecode/club/bytecodeviewer/gui/components/DecompilerViewComponent.java @@ -1,18 +1,3 @@ -package the.bytecode.club.bytecodeviewer.gui.components; - -import javax.swing.ButtonGroup; -import javax.swing.JCheckBoxMenuItem; -import javax.swing.JMenu; -import javax.swing.JRadioButtonMenuItem; -import javax.swing.JSeparator; -import the.bytecode.club.bytecodeviewer.decompilers.Decompiler; -import the.bytecode.club.bytecodeviewer.gui.resourceviewer.WorkspaceRefreshEvent; -import the.bytecode.club.bytecodeviewer.translation.TranslatedComponents; -import the.bytecode.club.bytecodeviewer.translation.components.TranslatedJCheckBoxMenuItem; -import the.bytecode.club.bytecodeviewer.translation.components.TranslatedJRadioButtonMenuItem; - -import static the.bytecode.club.bytecodeviewer.gui.components.DecompilerViewComponent.DecompilerComponentType.*; - /*************************************************************************** * Bytecode Viewer (BCV) - Java & Android Reverse Engineering Suite * * Copyright (C) 2014 Konloch - Konloch.com / BytecodeViewer.com * @@ -31,6 +16,21 @@ import static the.bytecode.club.bytecodeviewer.gui.components.DecompilerViewComp * along with this program. If not, see . * ***************************************************************************/ +package the.bytecode.club.bytecodeviewer.gui.components; + +import javax.swing.ButtonGroup; +import javax.swing.JCheckBoxMenuItem; +import javax.swing.JMenu; +import javax.swing.JRadioButtonMenuItem; +import javax.swing.JSeparator; +import the.bytecode.club.bytecodeviewer.decompilers.Decompiler; +import the.bytecode.club.bytecodeviewer.gui.resourceviewer.WorkspaceRefreshEvent; +import the.bytecode.club.bytecodeviewer.translation.TranslatedComponents; +import the.bytecode.club.bytecodeviewer.translation.components.TranslatedJCheckBoxMenuItem; +import the.bytecode.club.bytecodeviewer.translation.components.TranslatedJRadioButtonMenuItem; + +import static the.bytecode.club.bytecodeviewer.gui.components.DecompilerViewComponent.DecompilerComponentType.*; + /** * @author Konloch * @since 6/21/2021 diff --git a/src/main/java/the/bytecode/club/bytecodeviewer/gui/components/ExportJar.java b/src/main/java/the/bytecode/club/bytecodeviewer/gui/components/ExportJar.java index 1d35582e..b1af3426 100644 --- a/src/main/java/the/bytecode/club/bytecodeviewer/gui/components/ExportJar.java +++ b/src/main/java/the/bytecode/club/bytecodeviewer/gui/components/ExportJar.java @@ -1,15 +1,3 @@ -package the.bytecode.club.bytecodeviewer.gui.components; - -import java.awt.Dimension; -import javax.swing.BoxLayout; -import javax.swing.JButton; -import javax.swing.JFrame; -import javax.swing.JLabel; -import javax.swing.JScrollPane; -import javax.swing.JTextArea; -import the.bytecode.club.bytecodeviewer.BytecodeViewer; -import the.bytecode.club.bytecodeviewer.util.JarUtils; - /*************************************************************************** * Bytecode Viewer (BCV) - Java & Android Reverse Engineering Suite * * Copyright (C) 2014 Konloch - Konloch.com / BytecodeViewer.com * @@ -28,6 +16,18 @@ import the.bytecode.club.bytecodeviewer.util.JarUtils; * along with this program. If not, see . * ***************************************************************************/ +package the.bytecode.club.bytecodeviewer.gui.components; + +import java.awt.Dimension; +import javax.swing.BoxLayout; +import javax.swing.JButton; +import javax.swing.JFrame; +import javax.swing.JLabel; +import javax.swing.JScrollPane; +import javax.swing.JTextArea; +import the.bytecode.club.bytecodeviewer.BytecodeViewer; +import the.bytecode.club.bytecodeviewer.util.JarUtils; + /** * The export as Jar UI. * diff --git a/src/main/java/the/bytecode/club/bytecodeviewer/gui/components/ExtendedJOptionPane.java b/src/main/java/the/bytecode/club/bytecodeviewer/gui/components/ExtendedJOptionPane.java index be1c1fa6..dda9058b 100644 --- a/src/main/java/the/bytecode/club/bytecodeviewer/gui/components/ExtendedJOptionPane.java +++ b/src/main/java/the/bytecode/club/bytecodeviewer/gui/components/ExtendedJOptionPane.java @@ -1,3 +1,21 @@ +/*************************************************************************** + * Bytecode Viewer (BCV) - Java & Android Reverse Engineering Suite * + * Copyright (C) 2014 Konloch - Konloch.com / BytecodeViewer.com * + * * + * This program is free software: you can redistribute it and/or modify * + * it under the terms of the GNU General Public License as published by * + * the Free Software Foundation, either version 3 of the License, or * + * (at your option) any later version. * + * * + * This program is distributed in the hope that it will be useful, * + * but WITHOUT ANY WARRANTY; without even the implied warranty of * + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * + * GNU General Public License for more details. * + * * + * You should have received a copy of the GNU General Public License * + * along with this program. If not, see . * + ***************************************************************************/ + package the.bytecode.club.bytecodeviewer.gui.components; import java.awt.Component; @@ -22,24 +40,6 @@ import static javax.swing.JOptionPane.UNINITIALIZED_VALUE; import static javax.swing.JOptionPane.WARNING_MESSAGE; import static javax.swing.JOptionPane.getRootFrame; -/*************************************************************************** - * Bytecode Viewer (BCV) - Java & Android Reverse Engineering Suite * - * Copyright (C) 2014 Konloch - Konloch.com / BytecodeViewer.com * - * * - * This program is free software: you can redistribute it and/or modify * - * it under the terms of the GNU General Public License as published by * - * the Free Software Foundation, either version 3 of the License, or * - * (at your option) any later version. * - * * - * This program is distributed in the hope that it will be useful, * - * but WITHOUT ANY WARRANTY; without even the implied warranty of * - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * - * GNU General Public License for more details. * - * * - * You should have received a copy of the GNU General Public License * - * along with this program. If not, see . * - ***************************************************************************/ - /** * Extends the JOptionPane * diff --git a/src/main/java/the/bytecode/club/bytecodeviewer/gui/components/FileChooser.java b/src/main/java/the/bytecode/club/bytecodeviewer/gui/components/FileChooser.java index 3e419542..dff8c28c 100644 --- a/src/main/java/the/bytecode/club/bytecodeviewer/gui/components/FileChooser.java +++ b/src/main/java/the/bytecode/club/bytecodeviewer/gui/components/FileChooser.java @@ -1,13 +1,3 @@ -package the.bytecode.club.bytecodeviewer.gui.components; - -import java.io.File; -import java.util.Arrays; -import java.util.HashSet; -import java.util.Set; -import javax.swing.JFileChooser; -import javax.swing.filechooser.FileFilter; -import the.bytecode.club.bytecodeviewer.util.MiscUtils; - /*************************************************************************** * Bytecode Viewer (BCV) - Java & Android Reverse Engineering Suite * * Copyright (C) 2014 Konloch - Konloch.com / BytecodeViewer.com * @@ -26,6 +16,16 @@ import the.bytecode.club.bytecodeviewer.util.MiscUtils; * along with this program. If not, see . * ***************************************************************************/ +package the.bytecode.club.bytecodeviewer.gui.components; + +import java.io.File; +import java.util.Arrays; +import java.util.HashSet; +import java.util.Set; +import javax.swing.JFileChooser; +import javax.swing.filechooser.FileFilter; +import the.bytecode.club.bytecodeviewer.util.MiscUtils; + /** * @author Konloch * @since 6/25/2021 diff --git a/src/main/java/the/bytecode/club/bytecodeviewer/gui/components/HTMLPane.java b/src/main/java/the/bytecode/club/bytecodeviewer/gui/components/HTMLPane.java index 9099c063..7175b38b 100644 --- a/src/main/java/the/bytecode/club/bytecodeviewer/gui/components/HTMLPane.java +++ b/src/main/java/the/bytecode/club/bytecodeviewer/gui/components/HTMLPane.java @@ -1,20 +1,3 @@ -package the.bytecode.club.bytecodeviewer.gui.components; - -import java.io.IOException; -import java.io.InputStream; -import java.util.Scanner; -import javax.swing.JEditorPane; -import javax.swing.text.html.HTMLEditorKit; -import the.bytecode.club.bytecodeviewer.Configuration; -import the.bytecode.club.bytecodeviewer.bootloader.InitialBootScreen; - -import static the.bytecode.club.bytecodeviewer.Constants.BCVDir; -import static the.bytecode.club.bytecodeviewer.Constants.FAT_JAR; -import static the.bytecode.club.bytecodeviewer.Constants.enjarifyVersion; -import static the.bytecode.club.bytecodeviewer.Constants.enjarifyWorkingDirectory; -import static the.bytecode.club.bytecodeviewer.Constants.krakatauVersion; -import static the.bytecode.club.bytecodeviewer.Constants.krakatauWorkingDirectory; - /*************************************************************************** * Bytecode Viewer (BCV) - Java & Android Reverse Engineering Suite * * Copyright (C) 2014 Konloch - Konloch.com / BytecodeViewer.com * @@ -33,6 +16,23 @@ import static the.bytecode.club.bytecodeviewer.Constants.krakatauWorkingDirector * along with this program. If not, see . * ***************************************************************************/ +package the.bytecode.club.bytecodeviewer.gui.components; + +import java.io.IOException; +import java.io.InputStream; +import java.util.Scanner; +import javax.swing.JEditorPane; +import javax.swing.text.html.HTMLEditorKit; +import the.bytecode.club.bytecodeviewer.Configuration; +import the.bytecode.club.bytecodeviewer.bootloader.InitialBootScreen; + +import static the.bytecode.club.bytecodeviewer.Constants.BCVDir; +import static the.bytecode.club.bytecodeviewer.Constants.FAT_JAR; +import static the.bytecode.club.bytecodeviewer.Constants.enjarifyVersion; +import static the.bytecode.club.bytecodeviewer.Constants.enjarifyWorkingDirectory; +import static the.bytecode.club.bytecodeviewer.Constants.krakatauVersion; +import static the.bytecode.club.bytecodeviewer.Constants.krakatauWorkingDirectory; + /** * @author Konloch * @since 7/7/2021 diff --git a/src/main/java/the/bytecode/club/bytecodeviewer/gui/components/ImageJLabel.java b/src/main/java/the/bytecode/club/bytecodeviewer/gui/components/ImageJLabel.java index e0e1dc15..69f62c21 100644 --- a/src/main/java/the/bytecode/club/bytecodeviewer/gui/components/ImageJLabel.java +++ b/src/main/java/the/bytecode/club/bytecodeviewer/gui/components/ImageJLabel.java @@ -1,9 +1,3 @@ -package the.bytecode.club.bytecodeviewer.gui.components; - -import java.awt.Image; -import javax.swing.ImageIcon; -import javax.swing.JLabel; - /*************************************************************************** * Bytecode Viewer (BCV) - Java & Android Reverse Engineering Suite * * Copyright (C) 2014 Konloch - Konloch.com / BytecodeViewer.com * @@ -22,6 +16,12 @@ import javax.swing.JLabel; * along with this program. If not, see . * ***************************************************************************/ +package the.bytecode.club.bytecodeviewer.gui.components; + +import java.awt.Image; +import javax.swing.ImageIcon; +import javax.swing.JLabel; + /** * Display an image on a JLabel element * diff --git a/src/main/java/the/bytecode/club/bytecodeviewer/gui/components/JFrameConsole.java b/src/main/java/the/bytecode/club/bytecodeviewer/gui/components/JFrameConsole.java index 12cf1fd1..ea54d21f 100644 --- a/src/main/java/the/bytecode/club/bytecodeviewer/gui/components/JFrameConsole.java +++ b/src/main/java/the/bytecode/club/bytecodeviewer/gui/components/JFrameConsole.java @@ -1,14 +1,3 @@ -package the.bytecode.club.bytecodeviewer.gui.components; - -import java.awt.BorderLayout; -import java.awt.Dimension; -import java.io.File; -import javax.swing.JFrame; -import me.konloch.kontainer.io.DiskWriter; -import the.bytecode.club.bytecodeviewer.resources.IconResources; - -import static the.bytecode.club.bytecodeviewer.Constants.tempDirectory; - /*************************************************************************** * Bytecode Viewer (BCV) - Java & Android Reverse Engineering Suite * * Copyright (C) 2014 Konloch - Konloch.com / BytecodeViewer.com * @@ -27,6 +16,17 @@ import static the.bytecode.club.bytecodeviewer.Constants.tempDirectory; * along with this program. If not, see . * ***************************************************************************/ +package the.bytecode.club.bytecodeviewer.gui.components; + +import java.awt.BorderLayout; +import java.awt.Dimension; +import java.io.File; +import javax.swing.JFrame; +import me.konloch.kontainer.io.DiskWriter; +import the.bytecode.club.bytecodeviewer.resources.IconResources; + +import static the.bytecode.club.bytecodeviewer.Constants.tempDirectory; + /** * A simple swing JFrame console * diff --git a/src/main/java/the/bytecode/club/bytecodeviewer/gui/components/JFrameConsolePrintStream.java b/src/main/java/the/bytecode/club/bytecodeviewer/gui/components/JFrameConsolePrintStream.java index a0f54b1d..ac0e2b21 100644 --- a/src/main/java/the/bytecode/club/bytecodeviewer/gui/components/JFrameConsolePrintStream.java +++ b/src/main/java/the/bytecode/club/bytecodeviewer/gui/components/JFrameConsolePrintStream.java @@ -1,11 +1,3 @@ -package the.bytecode.club.bytecodeviewer.gui.components; - -import java.io.PrintStream; -import javax.swing.SwingUtilities; -import the.bytecode.club.bytecodeviewer.Constants; - -import static the.bytecode.club.bytecodeviewer.Constants.nl; - /*************************************************************************** * Bytecode Viewer (BCV) - Java & Android Reverse Engineering Suite * * Copyright (C) 2014 Konloch - Konloch.com / BytecodeViewer.com * @@ -24,6 +16,14 @@ import static the.bytecode.club.bytecodeviewer.Constants.nl; * along with this program. If not, see . * ***************************************************************************/ +package the.bytecode.club.bytecodeviewer.gui.components; + +import java.io.PrintStream; +import javax.swing.SwingUtilities; +import the.bytecode.club.bytecodeviewer.Constants; + +import static the.bytecode.club.bytecodeviewer.Constants.nl; + /** * A swing console that can print out from PrintStreams * diff --git a/src/main/java/the/bytecode/club/bytecodeviewer/gui/components/JFrameConsoleTabbed.java b/src/main/java/the/bytecode/club/bytecodeviewer/gui/components/JFrameConsoleTabbed.java index 62929dd0..5120509f 100644 --- a/src/main/java/the/bytecode/club/bytecodeviewer/gui/components/JFrameConsoleTabbed.java +++ b/src/main/java/the/bytecode/club/bytecodeviewer/gui/components/JFrameConsoleTabbed.java @@ -1,12 +1,3 @@ -package the.bytecode.club.bytecodeviewer.gui.components; - -import java.awt.BorderLayout; -import java.awt.Component; -import java.awt.Dimension; -import javax.swing.JFrame; -import javax.swing.JTabbedPane; -import the.bytecode.club.bytecodeviewer.resources.IconResources; - /*************************************************************************** * Bytecode Viewer (BCV) - Java & Android Reverse Engineering Suite * * Copyright (C) 2014 Konloch - Konloch.com / BytecodeViewer.com * @@ -25,6 +16,15 @@ import the.bytecode.club.bytecodeviewer.resources.IconResources; * along with this program. If not, see . * ***************************************************************************/ +package the.bytecode.club.bytecodeviewer.gui.components; + +import java.awt.BorderLayout; +import java.awt.Component; +import java.awt.Dimension; +import javax.swing.JFrame; +import javax.swing.JTabbedPane; +import the.bytecode.club.bytecodeviewer.resources.IconResources; + /** * @author Konloch * @since 7/14/2021 diff --git a/src/main/java/the/bytecode/club/bytecodeviewer/gui/components/JMenuItemIcon.java b/src/main/java/the/bytecode/club/bytecodeviewer/gui/components/JMenuItemIcon.java index f2561901..af7a67e6 100644 --- a/src/main/java/the/bytecode/club/bytecodeviewer/gui/components/JMenuItemIcon.java +++ b/src/main/java/the/bytecode/club/bytecodeviewer/gui/components/JMenuItemIcon.java @@ -1,11 +1,3 @@ -package the.bytecode.club.bytecodeviewer.gui.components; - -import java.awt.Dimension; -import java.awt.Graphics; -import javax.swing.Icon; -import javax.swing.JMenuItem; -import javax.swing.UIManager; - /*************************************************************************** * Bytecode Viewer (BCV) - Java & Android Reverse Engineering Suite * * Copyright (C) 2014 Konloch - Konloch.com / BytecodeViewer.com * @@ -24,6 +16,14 @@ import javax.swing.UIManager; * along with this program. If not, see . * ***************************************************************************/ +package the.bytecode.club.bytecodeviewer.gui.components; + +import java.awt.Dimension; +import java.awt.Graphics; +import javax.swing.Icon; +import javax.swing.JMenuItem; +import javax.swing.UIManager; + /** * @author Konloch * @since 7/4/2021 diff --git a/src/main/java/the/bytecode/club/bytecodeviewer/gui/components/JTextAreaOutputStream.java b/src/main/java/the/bytecode/club/bytecodeviewer/gui/components/JTextAreaOutputStream.java index 8924c041..f34b32c9 100644 --- a/src/main/java/the/bytecode/club/bytecodeviewer/gui/components/JTextAreaOutputStream.java +++ b/src/main/java/the/bytecode/club/bytecodeviewer/gui/components/JTextAreaOutputStream.java @@ -1,10 +1,3 @@ -package the.bytecode.club.bytecodeviewer.gui.components; - -import java.io.Closeable; -import java.io.OutputStream; -import java.io.PrintStream; -import javax.swing.JTextArea; - /*************************************************************************** * Bytecode Viewer (BCV) - Java & Android Reverse Engineering Suite * * Copyright (C) 2014 Konloch - Konloch.com / BytecodeViewer.com * @@ -23,6 +16,13 @@ import javax.swing.JTextArea; * along with this program. If not, see . * ***************************************************************************/ +package the.bytecode.club.bytecodeviewer.gui.components; + +import java.io.Closeable; +import java.io.OutputStream; +import java.io.PrintStream; +import javax.swing.JTextArea; + /** * @author Konloch * @since 6/21/2021 diff --git a/src/main/java/the/bytecode/club/bytecodeviewer/gui/components/MaxWidthJLabel.java b/src/main/java/the/bytecode/club/bytecodeviewer/gui/components/MaxWidthJLabel.java index 2450cdc2..37cc4ef9 100644 --- a/src/main/java/the/bytecode/club/bytecodeviewer/gui/components/MaxWidthJLabel.java +++ b/src/main/java/the/bytecode/club/bytecodeviewer/gui/components/MaxWidthJLabel.java @@ -1,8 +1,3 @@ -package the.bytecode.club.bytecodeviewer.gui.components; - -import java.awt.Dimension; -import javax.swing.JLabel; - /*************************************************************************** * Bytecode Viewer (BCV) - Java & Android Reverse Engineering Suite * * Copyright (C) 2014 Konloch - Konloch.com / BytecodeViewer.com * @@ -21,6 +16,11 @@ import javax.swing.JLabel; * along with this program. If not, see . * ***************************************************************************/ +package the.bytecode.club.bytecodeviewer.gui.components; + +import java.awt.Dimension; +import javax.swing.JLabel; + /** * @author Konloch * @since 6/25/2021 diff --git a/src/main/java/the/bytecode/club/bytecodeviewer/gui/components/MethodsRenderer.java b/src/main/java/the/bytecode/club/bytecodeviewer/gui/components/MethodsRenderer.java index f789bb82..6b4f42dd 100644 --- a/src/main/java/the/bytecode/club/bytecodeviewer/gui/components/MethodsRenderer.java +++ b/src/main/java/the/bytecode/club/bytecodeviewer/gui/components/MethodsRenderer.java @@ -1,15 +1,3 @@ -package the.bytecode.club.bytecodeviewer.gui.components; - -import java.awt.Component; -import java.util.List; -import javax.swing.JLabel; -import javax.swing.JList; -import javax.swing.ListCellRenderer; - -import the.bytecode.club.bytecodeviewer.gui.resourceviewer.BytecodeViewPanel; -import the.bytecode.club.bytecodeviewer.gui.util.BytecodeViewPanelUpdater; -import the.bytecode.club.bytecodeviewer.util.MethodParser; - /*************************************************************************** * Bytecode Viewer (BCV) - Java & Android Reverse Engineering Suite * * Copyright (C) 2014 Konloch - Konloch.com / BytecodeViewer.com * @@ -28,6 +16,18 @@ import the.bytecode.club.bytecodeviewer.util.MethodParser; * along with this program. If not, see . * ***************************************************************************/ +package the.bytecode.club.bytecodeviewer.gui.components; + +import java.awt.Component; +import java.util.List; +import javax.swing.JLabel; +import javax.swing.JList; +import javax.swing.ListCellRenderer; + +import the.bytecode.club.bytecodeviewer.gui.resourceviewer.BytecodeViewPanel; +import the.bytecode.club.bytecodeviewer.gui.util.BytecodeViewPanelUpdater; +import the.bytecode.club.bytecodeviewer.util.MethodParser; + /** * @author Konloch * @author Waterwolf diff --git a/src/main/java/the/bytecode/club/bytecodeviewer/gui/components/MultipleChoiceDialog.java b/src/main/java/the/bytecode/club/bytecodeviewer/gui/components/MultipleChoiceDialog.java index 40e56004..a5728dd9 100644 --- a/src/main/java/the/bytecode/club/bytecodeviewer/gui/components/MultipleChoiceDialog.java +++ b/src/main/java/the/bytecode/club/bytecodeviewer/gui/components/MultipleChoiceDialog.java @@ -1,9 +1,3 @@ -package the.bytecode.club.bytecodeviewer.gui.components; - -import javax.swing.JDialog; -import javax.swing.JOptionPane; -import the.bytecode.club.bytecodeviewer.BytecodeViewer; - /*************************************************************************** * Bytecode Viewer (BCV) - Java & Android Reverse Engineering Suite * * Copyright (C) 2014 Konloch - Konloch.com / BytecodeViewer.com * @@ -22,6 +16,12 @@ import the.bytecode.club.bytecodeviewer.BytecodeViewer; * along with this program. If not, see . * ***************************************************************************/ +package the.bytecode.club.bytecodeviewer.gui.components; + +import javax.swing.JDialog; +import javax.swing.JOptionPane; +import the.bytecode.club.bytecodeviewer.BytecodeViewer; + /** * @author Konloch * @since 6/26/2021 diff --git a/src/main/java/the/bytecode/club/bytecodeviewer/gui/components/RunOptions.java b/src/main/java/the/bytecode/club/bytecodeviewer/gui/components/RunOptions.java index c16a9ab0..c67fe8ba 100644 --- a/src/main/java/the/bytecode/club/bytecodeviewer/gui/components/RunOptions.java +++ b/src/main/java/the/bytecode/club/bytecodeviewer/gui/components/RunOptions.java @@ -1,16 +1,3 @@ -package the.bytecode.club.bytecodeviewer.gui.components; - -import java.awt.Dimension; -import javax.swing.JButton; -import javax.swing.JCheckBox; -import javax.swing.JFrame; -import javax.swing.JLabel; -import javax.swing.JTextField; -import the.bytecode.club.bytecodeviewer.api.ASMResourceUtil; -import the.bytecode.club.bytecodeviewer.plugin.PluginManager; -import the.bytecode.club.bytecodeviewer.plugin.preinstalled.EZInjection; -import the.bytecode.club.bytecodeviewer.resources.IconResources; - /*************************************************************************** * Bytecode Viewer (BCV) - Java & Android Reverse Engineering Suite * * Copyright (C) 2014 Konloch - Konloch.com / BytecodeViewer.com * @@ -29,6 +16,19 @@ import the.bytecode.club.bytecodeviewer.resources.IconResources; * along with this program. If not, see . * ***************************************************************************/ +package the.bytecode.club.bytecodeviewer.gui.components; + +import java.awt.Dimension; +import javax.swing.JButton; +import javax.swing.JCheckBox; +import javax.swing.JFrame; +import javax.swing.JLabel; +import javax.swing.JTextField; +import the.bytecode.club.bytecodeviewer.api.ASMResourceUtil; +import the.bytecode.club.bytecodeviewer.plugin.PluginManager; +import the.bytecode.club.bytecodeviewer.plugin.preinstalled.EZInjection; +import the.bytecode.club.bytecodeviewer.resources.IconResources; + /** * The UI for File>Run aka EZ-Injection plugin. * diff --git a/src/main/java/the/bytecode/club/bytecodeviewer/gui/components/SearchableJTextArea.java b/src/main/java/the/bytecode/club/bytecodeviewer/gui/components/SearchableJTextArea.java index 146ed18c..e3f1230b 100644 --- a/src/main/java/the/bytecode/club/bytecodeviewer/gui/components/SearchableJTextArea.java +++ b/src/main/java/the/bytecode/club/bytecodeviewer/gui/components/SearchableJTextArea.java @@ -1,3 +1,21 @@ +/*************************************************************************** + * Bytecode Viewer (BCV) - Java & Android Reverse Engineering Suite * + * Copyright (C) 2014 Konloch - Konloch.com / BytecodeViewer.com * + * * + * This program is free software: you can redistribute it and/or modify * + * it under the terms of the GNU General Public License as published by * + * the Free Software Foundation, either version 3 of the License, or * + * (at your option) any later version. * + * * + * This program is distributed in the hope that it will be useful, * + * but WITHOUT ANY WARRANTY; without even the implied warranty of * + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * + * GNU General Public License for more details. * + * * + * You should have received a copy of the GNU General Public License * + * along with this program. If not, see . * + ***************************************************************************/ + package the.bytecode.club.bytecodeviewer.gui.components; import java.awt.BorderLayout; @@ -21,24 +39,6 @@ import the.bytecode.club.bytecodeviewer.translation.TranslatedComponents; import the.bytecode.club.bytecodeviewer.translation.components.TranslatedJCheckBox; import the.bytecode.club.bytecodeviewer.util.JTextAreaUtils; -/*************************************************************************** - * Bytecode Viewer (BCV) - Java & Android Reverse Engineering Suite * - * Copyright (C) 2014 Konloch - Konloch.com / BytecodeViewer.com * - * * - * This program is free software: you can redistribute it and/or modify * - * it under the terms of the GNU General Public License as published by * - * the Free Software Foundation, either version 3 of the License, or * - * (at your option) any later version. * - * * - * This program is distributed in the hope that it will be useful, * - * but WITHOUT ANY WARRANTY; without even the implied warranty of * - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * - * GNU General Public License for more details. * - * * - * You should have received a copy of the GNU General Public License * - * along with this program. If not, see . * - ***************************************************************************/ - /** * Searching on a JTextArea using swing highlighting * diff --git a/src/main/java/the/bytecode/club/bytecodeviewer/gui/components/SearchableRSyntaxTextArea.java b/src/main/java/the/bytecode/club/bytecodeviewer/gui/components/SearchableRSyntaxTextArea.java index 9c06e55b..fa6f5cc6 100644 --- a/src/main/java/the/bytecode/club/bytecodeviewer/gui/components/SearchableRSyntaxTextArea.java +++ b/src/main/java/the/bytecode/club/bytecodeviewer/gui/components/SearchableRSyntaxTextArea.java @@ -1,3 +1,21 @@ +/*************************************************************************** + * Bytecode Viewer (BCV) - Java & Android Reverse Engineering Suite * + * Copyright (C) 2014 Konloch - Konloch.com / BytecodeViewer.com * + * * + * This program is free software: you can redistribute it and/or modify * + * it under the terms of the GNU General Public License as published by * + * the Free Software Foundation, either version 3 of the License, or * + * (at your option) any later version. * + * * + * This program is distributed in the hope that it will be useful, * + * but WITHOUT ANY WARRANTY; without even the implied warranty of * + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * + * GNU General Public License for more details. * + * * + * You should have received a copy of the GNU General Public License * + * along with this program. If not, see . * + ***************************************************************************/ + package the.bytecode.club.bytecodeviewer.gui.components; import java.awt.BorderLayout; @@ -28,24 +46,6 @@ import the.bytecode.club.bytecodeviewer.translation.TranslatedComponents; import the.bytecode.club.bytecodeviewer.translation.components.TranslatedJCheckBox; import the.bytecode.club.bytecodeviewer.util.JTextAreaUtils; -/*************************************************************************** - * Bytecode Viewer (BCV) - Java & Android Reverse Engineering Suite * - * Copyright (C) 2014 Konloch - Konloch.com / BytecodeViewer.com * - * * - * This program is free software: you can redistribute it and/or modify * - * it under the terms of the GNU General Public License as published by * - * the Free Software Foundation, either version 3 of the License, or * - * (at your option) any later version. * - * * - * This program is distributed in the hope that it will be useful, * - * but WITHOUT ANY WARRANTY; without even the implied warranty of * - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * - * GNU General Public License for more details. * - * * - * You should have received a copy of the GNU General Public License * - * along with this program. If not, see . * - ***************************************************************************/ - /** * Searching on an RSyntaxTextArea using swing highlighting * diff --git a/src/main/java/the/bytecode/club/bytecodeviewer/gui/components/SettingsDialog.java b/src/main/java/the/bytecode/club/bytecodeviewer/gui/components/SettingsDialog.java index 849fb518..2633a44e 100644 --- a/src/main/java/the/bytecode/club/bytecodeviewer/gui/components/SettingsDialog.java +++ b/src/main/java/the/bytecode/club/bytecodeviewer/gui/components/SettingsDialog.java @@ -1,18 +1,3 @@ -package the.bytecode.club.bytecodeviewer.gui.components; - -import java.awt.Component; -import java.util.ArrayList; -import java.util.List; -import javax.swing.BoxLayout; -import javax.swing.JComponent; -import javax.swing.JDialog; -import javax.swing.JMenu; -import javax.swing.JMenuItem; -import javax.swing.JPanel; -import javax.swing.JScrollPane; - -import static the.bytecode.club.bytecodeviewer.Configuration.useNewSettingsDialog; - /*************************************************************************** * Bytecode Viewer (BCV) - Java & Android Reverse Engineering Suite * * Copyright (C) 2014 Konloch - Konloch.com / BytecodeViewer.com * @@ -31,6 +16,21 @@ import static the.bytecode.club.bytecodeviewer.Configuration.useNewSettingsDialo * along with this program. If not, see . * ***************************************************************************/ +package the.bytecode.club.bytecodeviewer.gui.components; + +import java.awt.Component; +import java.util.ArrayList; +import java.util.List; +import javax.swing.BoxLayout; +import javax.swing.JComponent; +import javax.swing.JDialog; +import javax.swing.JMenu; +import javax.swing.JMenuItem; +import javax.swing.JPanel; +import javax.swing.JScrollPane; + +import static the.bytecode.club.bytecodeviewer.Configuration.useNewSettingsDialog; + /** * @author Konloch * @since 7/19/2021 diff --git a/src/main/java/the/bytecode/club/bytecodeviewer/gui/components/SystemConsole.java b/src/main/java/the/bytecode/club/bytecodeviewer/gui/components/SystemConsole.java index c4515768..b135f509 100644 --- a/src/main/java/the/bytecode/club/bytecodeviewer/gui/components/SystemConsole.java +++ b/src/main/java/the/bytecode/club/bytecodeviewer/gui/components/SystemConsole.java @@ -1,5 +1,3 @@ -package the.bytecode.club.bytecodeviewer.gui.components; - /*************************************************************************** * Bytecode Viewer (BCV) - Java & Android Reverse Engineering Suite * * Copyright (C) 2014 Konloch - Konloch.com / BytecodeViewer.com * @@ -18,6 +16,8 @@ package the.bytecode.club.bytecodeviewer.gui.components; * along with this program. If not, see . * ***************************************************************************/ +package the.bytecode.club.bytecodeviewer.gui.components; + /** * A simple console GUI. * diff --git a/src/main/java/the/bytecode/club/bytecodeviewer/gui/components/VisibleComponent.java b/src/main/java/the/bytecode/club/bytecodeviewer/gui/components/VisibleComponent.java index ae34e810..5de22293 100644 --- a/src/main/java/the/bytecode/club/bytecodeviewer/gui/components/VisibleComponent.java +++ b/src/main/java/the/bytecode/club/bytecodeviewer/gui/components/VisibleComponent.java @@ -1,12 +1,3 @@ -package the.bytecode.club.bytecodeviewer.gui.components; - -import com.github.weisj.darklaf.iconset.AllIcons; -import javax.swing.BorderFactory; -import javax.swing.JInternalFrame; -import the.bytecode.club.bytecodeviewer.Configuration; -import the.bytecode.club.bytecodeviewer.gui.theme.LAFTheme; -import the.bytecode.club.bytecodeviewer.resources.IconResources; - /*************************************************************************** * Bytecode Viewer (BCV) - Java & Android Reverse Engineering Suite * * Copyright (C) 2014 Konloch - Konloch.com / BytecodeViewer.com * @@ -25,6 +16,15 @@ import the.bytecode.club.bytecodeviewer.resources.IconResources; * along with this program. If not, see . * ***************************************************************************/ +package the.bytecode.club.bytecodeviewer.gui.components; + +import com.github.weisj.darklaf.iconset.AllIcons; +import javax.swing.BorderFactory; +import javax.swing.JInternalFrame; +import the.bytecode.club.bytecodeviewer.Configuration; +import the.bytecode.club.bytecodeviewer.gui.theme.LAFTheme; +import the.bytecode.club.bytecodeviewer.resources.IconResources; + /** * Used to represent all the panes inside of Bytecode Viewer. * diff --git a/src/main/java/the/bytecode/club/bytecodeviewer/gui/components/WaitBusyIcon.java b/src/main/java/the/bytecode/club/bytecodeviewer/gui/components/WaitBusyIcon.java index 96a02790..c96194fb 100644 --- a/src/main/java/the/bytecode/club/bytecodeviewer/gui/components/WaitBusyIcon.java +++ b/src/main/java/the/bytecode/club/bytecodeviewer/gui/components/WaitBusyIcon.java @@ -1,15 +1,3 @@ -package the.bytecode.club.bytecodeviewer.gui.components; - -import javax.swing.Icon; - -import com.github.weisj.darklaf.components.RotatableIconAnimator; -import com.github.weisj.darklaf.components.loading.LoadingIndicator; -import com.github.weisj.darklaf.iconset.AllIcons; -import com.github.weisj.darklaf.properties.icons.RotatableIcon; -import the.bytecode.club.bytecodeviewer.resources.IconResources; - -import java.awt.event.*; - /*************************************************************************** * Bytecode Viewer (BCV) - Java & Android Reverse Engineering Suite * * Copyright (C) 2014 Konloch - Konloch.com / BytecodeViewer.com * @@ -28,6 +16,18 @@ import java.awt.event.*; * along with this program. If not, see . * ***************************************************************************/ +package the.bytecode.club.bytecodeviewer.gui.components; + +import javax.swing.Icon; + +import com.github.weisj.darklaf.components.RotatableIconAnimator; +import com.github.weisj.darklaf.components.loading.LoadingIndicator; +import com.github.weisj.darklaf.iconset.AllIcons; +import com.github.weisj.darklaf.properties.icons.RotatableIcon; +import the.bytecode.club.bytecodeviewer.resources.IconResources; + +import java.awt.event.*; + /** * @author Konloch * @since 7/4/2021 diff --git a/src/main/java/the/bytecode/club/bytecodeviewer/gui/components/listeners/MouseClickedListener.java b/src/main/java/the/bytecode/club/bytecodeviewer/gui/components/listeners/MouseClickedListener.java index bb8b24b6..0e8d0b6c 100644 --- a/src/main/java/the/bytecode/club/bytecodeviewer/gui/components/listeners/MouseClickedListener.java +++ b/src/main/java/the/bytecode/club/bytecodeviewer/gui/components/listeners/MouseClickedListener.java @@ -1,8 +1,3 @@ -package the.bytecode.club.bytecodeviewer.gui.components.listeners; - -import java.awt.event.MouseEvent; -import java.awt.event.MouseListener; - /*************************************************************************** * Bytecode Viewer (BCV) - Java & Android Reverse Engineering Suite * * Copyright (C) 2014 Konloch - Konloch.com / BytecodeViewer.com * @@ -21,6 +16,11 @@ import java.awt.event.MouseListener; * along with this program. If not, see . * ***************************************************************************/ +package the.bytecode.club.bytecodeviewer.gui.components.listeners; + +import java.awt.event.MouseEvent; +import java.awt.event.MouseListener; + /** * @author Konloch * @since 6/25/2021 diff --git a/src/main/java/the/bytecode/club/bytecodeviewer/gui/components/listeners/PressKeyListener.java b/src/main/java/the/bytecode/club/bytecodeviewer/gui/components/listeners/PressKeyListener.java index a9c56db6..f34c0923 100644 --- a/src/main/java/the/bytecode/club/bytecodeviewer/gui/components/listeners/PressKeyListener.java +++ b/src/main/java/the/bytecode/club/bytecodeviewer/gui/components/listeners/PressKeyListener.java @@ -1,8 +1,3 @@ -package the.bytecode.club.bytecodeviewer.gui.components.listeners; - -import java.awt.event.KeyEvent; -import java.awt.event.KeyListener; - /*************************************************************************** * Bytecode Viewer (BCV) - Java & Android Reverse Engineering Suite * * Copyright (C) 2014 Konloch - Konloch.com / BytecodeViewer.com * @@ -21,6 +16,11 @@ import java.awt.event.KeyListener; * along with this program. If not, see . * ***************************************************************************/ +package the.bytecode.club.bytecodeviewer.gui.components.listeners; + +import java.awt.event.KeyEvent; +import java.awt.event.KeyListener; + /** * @author Konloch * @since 6/25/2021 diff --git a/src/main/java/the/bytecode/club/bytecodeviewer/gui/components/listeners/ReleaseKeyListener.java b/src/main/java/the/bytecode/club/bytecodeviewer/gui/components/listeners/ReleaseKeyListener.java index a8a34aeb..5adf78de 100644 --- a/src/main/java/the/bytecode/club/bytecodeviewer/gui/components/listeners/ReleaseKeyListener.java +++ b/src/main/java/the/bytecode/club/bytecodeviewer/gui/components/listeners/ReleaseKeyListener.java @@ -1,8 +1,3 @@ -package the.bytecode.club.bytecodeviewer.gui.components.listeners; - -import java.awt.event.KeyEvent; -import java.awt.event.KeyListener; - /*************************************************************************** * Bytecode Viewer (BCV) - Java & Android Reverse Engineering Suite * * Copyright (C) 2014 Konloch - Konloch.com / BytecodeViewer.com * @@ -21,6 +16,11 @@ import java.awt.event.KeyListener; * along with this program. If not, see . * ***************************************************************************/ +package the.bytecode.club.bytecodeviewer.gui.components.listeners; + +import java.awt.event.KeyEvent; +import java.awt.event.KeyListener; + /** * @author Konloch * @since 6/25/2021 diff --git a/src/main/java/the/bytecode/club/bytecodeviewer/gui/contextmenu/BuildContextMenuItem.java b/src/main/java/the/bytecode/club/bytecodeviewer/gui/contextmenu/BuildContextMenuItem.java index 106d64f1..03fde18c 100644 --- a/src/main/java/the/bytecode/club/bytecodeviewer/gui/contextmenu/BuildContextMenuItem.java +++ b/src/main/java/the/bytecode/club/bytecodeviewer/gui/contextmenu/BuildContextMenuItem.java @@ -1,10 +1,3 @@ -package the.bytecode.club.bytecodeviewer.gui.contextmenu; - -import javax.swing.JPopupMenu; -import javax.swing.tree.TreePath; -import the.bytecode.club.bytecodeviewer.gui.resourcelist.ResourceTree; -import the.bytecode.club.bytecodeviewer.searching.LDCSearchTreeNodeResult; - /*************************************************************************** * Bytecode Viewer (BCV) - Java & Android Reverse Engineering Suite * * Copyright (C) 2014 Konloch - Konloch.com / BytecodeViewer.com * @@ -23,6 +16,13 @@ import the.bytecode.club.bytecodeviewer.searching.LDCSearchTreeNodeResult; * along with this program. If not, see . * ***************************************************************************/ +package the.bytecode.club.bytecodeviewer.gui.contextmenu; + +import javax.swing.JPopupMenu; +import javax.swing.tree.TreePath; +import the.bytecode.club.bytecodeviewer.gui.resourcelist.ResourceTree; +import the.bytecode.club.bytecodeviewer.searching.LDCSearchTreeNodeResult; + /** * @author Konloch * @since 7/26/2021 diff --git a/src/main/java/the/bytecode/club/bytecodeviewer/gui/contextmenu/ContextMenu.java b/src/main/java/the/bytecode/club/bytecodeviewer/gui/contextmenu/ContextMenu.java index ab47effb..24d468b7 100644 --- a/src/main/java/the/bytecode/club/bytecodeviewer/gui/contextmenu/ContextMenu.java +++ b/src/main/java/the/bytecode/club/bytecodeviewer/gui/contextmenu/ContextMenu.java @@ -1,20 +1,3 @@ -package the.bytecode.club.bytecodeviewer.gui.contextmenu; - -import java.util.ArrayList; -import java.util.List; -import javax.swing.JPopupMenu; -import javax.swing.tree.DefaultMutableTreeNode; -import javax.swing.tree.TreePath; -import the.bytecode.club.bytecodeviewer.gui.contextmenu.resourcelist.Collapse; -import the.bytecode.club.bytecodeviewer.gui.contextmenu.resourcelist.Expand; -import the.bytecode.club.bytecodeviewer.gui.contextmenu.resourcelist.New; -import the.bytecode.club.bytecodeviewer.gui.contextmenu.resourcelist.Open; -import the.bytecode.club.bytecodeviewer.gui.contextmenu.resourcelist.QuickEdit; -import the.bytecode.club.bytecodeviewer.gui.contextmenu.resourcelist.QuickOpen; -import the.bytecode.club.bytecodeviewer.gui.contextmenu.resourcelist.Delete; -import the.bytecode.club.bytecodeviewer.gui.resourcelist.ResourceTree; -import the.bytecode.club.bytecodeviewer.searching.LDCSearchTreeNodeResult; - /*************************************************************************** * Bytecode Viewer (BCV) - Java & Android Reverse Engineering Suite * * Copyright (C) 2014 Konloch - Konloch.com / BytecodeViewer.com * @@ -33,6 +16,23 @@ import the.bytecode.club.bytecodeviewer.searching.LDCSearchTreeNodeResult; * along with this program. If not, see . * ***************************************************************************/ +package the.bytecode.club.bytecodeviewer.gui.contextmenu; + +import java.util.ArrayList; +import java.util.List; +import javax.swing.JPopupMenu; +import javax.swing.tree.DefaultMutableTreeNode; +import javax.swing.tree.TreePath; +import the.bytecode.club.bytecodeviewer.gui.contextmenu.resourcelist.Collapse; +import the.bytecode.club.bytecodeviewer.gui.contextmenu.resourcelist.Expand; +import the.bytecode.club.bytecodeviewer.gui.contextmenu.resourcelist.New; +import the.bytecode.club.bytecodeviewer.gui.contextmenu.resourcelist.Open; +import the.bytecode.club.bytecodeviewer.gui.contextmenu.resourcelist.QuickEdit; +import the.bytecode.club.bytecodeviewer.gui.contextmenu.resourcelist.QuickOpen; +import the.bytecode.club.bytecodeviewer.gui.contextmenu.resourcelist.Delete; +import the.bytecode.club.bytecodeviewer.gui.resourcelist.ResourceTree; +import the.bytecode.club.bytecodeviewer.searching.LDCSearchTreeNodeResult; + /** * @author Konloch * @since 7/26/2021 diff --git a/src/main/java/the/bytecode/club/bytecodeviewer/gui/contextmenu/ContextMenuItem.java b/src/main/java/the/bytecode/club/bytecodeviewer/gui/contextmenu/ContextMenuItem.java index 2ef83612..b79f1dfd 100644 --- a/src/main/java/the/bytecode/club/bytecodeviewer/gui/contextmenu/ContextMenuItem.java +++ b/src/main/java/the/bytecode/club/bytecodeviewer/gui/contextmenu/ContextMenuItem.java @@ -1,5 +1,3 @@ -package the.bytecode.club.bytecodeviewer.gui.contextmenu; - /*************************************************************************** * Bytecode Viewer (BCV) - Java & Android Reverse Engineering Suite * * Copyright (C) 2014 Konloch - Konloch.com / BytecodeViewer.com * @@ -18,6 +16,8 @@ package the.bytecode.club.bytecodeviewer.gui.contextmenu; * along with this program. If not, see . * ***************************************************************************/ +package the.bytecode.club.bytecodeviewer.gui.contextmenu; + /** * @author Konloch * @since 7/26/2021 diff --git a/src/main/java/the/bytecode/club/bytecodeviewer/gui/contextmenu/ContextMenuType.java b/src/main/java/the/bytecode/club/bytecodeviewer/gui/contextmenu/ContextMenuType.java index 92791320..8174b534 100644 --- a/src/main/java/the/bytecode/club/bytecodeviewer/gui/contextmenu/ContextMenuType.java +++ b/src/main/java/the/bytecode/club/bytecodeviewer/gui/contextmenu/ContextMenuType.java @@ -1,5 +1,3 @@ -package the.bytecode.club.bytecodeviewer.gui.contextmenu; - /*************************************************************************** * Bytecode Viewer (BCV) - Java & Android Reverse Engineering Suite * * Copyright (C) 2014 Konloch - Konloch.com / BytecodeViewer.com * @@ -18,6 +16,8 @@ package the.bytecode.club.bytecodeviewer.gui.contextmenu; * along with this program. If not, see . * ***************************************************************************/ +package the.bytecode.club.bytecodeviewer.gui.contextmenu; + /** * @author Konloch * @since 7/26/2021 diff --git a/src/main/java/the/bytecode/club/bytecodeviewer/gui/contextmenu/resourcelist/Collapse.java b/src/main/java/the/bytecode/club/bytecodeviewer/gui/contextmenu/resourcelist/Collapse.java index 49c25c36..ff0a715a 100644 --- a/src/main/java/the/bytecode/club/bytecodeviewer/gui/contextmenu/resourcelist/Collapse.java +++ b/src/main/java/the/bytecode/club/bytecodeviewer/gui/contextmenu/resourcelist/Collapse.java @@ -1,12 +1,3 @@ -package the.bytecode.club.bytecodeviewer.gui.contextmenu.resourcelist; - -import java.awt.event.ActionEvent; -import javax.swing.AbstractAction; -import the.bytecode.club.bytecodeviewer.BytecodeViewer; -import the.bytecode.club.bytecodeviewer.gui.contextmenu.ContextMenuItem; -import the.bytecode.club.bytecodeviewer.gui.contextmenu.ContextMenuType; -import the.bytecode.club.bytecodeviewer.translation.TranslatedStrings; - /*************************************************************************** * Bytecode Viewer (BCV) - Java & Android Reverse Engineering Suite * * Copyright (C) 2014 Konloch - Konloch.com / BytecodeViewer.com * @@ -25,6 +16,15 @@ import the.bytecode.club.bytecodeviewer.translation.TranslatedStrings; * along with this program. If not, see . * ***************************************************************************/ +package the.bytecode.club.bytecodeviewer.gui.contextmenu.resourcelist; + +import java.awt.event.ActionEvent; +import javax.swing.AbstractAction; +import the.bytecode.club.bytecodeviewer.BytecodeViewer; +import the.bytecode.club.bytecodeviewer.gui.contextmenu.ContextMenuItem; +import the.bytecode.club.bytecodeviewer.gui.contextmenu.ContextMenuType; +import the.bytecode.club.bytecodeviewer.translation.TranslatedStrings; + /** * @author Konloch * @since 7/26/2021 diff --git a/src/main/java/the/bytecode/club/bytecodeviewer/gui/contextmenu/resourcelist/Delete.java b/src/main/java/the/bytecode/club/bytecodeviewer/gui/contextmenu/resourcelist/Delete.java index b0ecf75a..f7ab8dcb 100644 --- a/src/main/java/the/bytecode/club/bytecodeviewer/gui/contextmenu/resourcelist/Delete.java +++ b/src/main/java/the/bytecode/club/bytecodeviewer/gui/contextmenu/resourcelist/Delete.java @@ -1,12 +1,3 @@ -package the.bytecode.club.bytecodeviewer.gui.contextmenu.resourcelist; - -import java.awt.event.ActionEvent; -import javax.swing.AbstractAction; -import the.bytecode.club.bytecodeviewer.BytecodeViewer; -import the.bytecode.club.bytecodeviewer.gui.contextmenu.ContextMenuItem; -import the.bytecode.club.bytecodeviewer.gui.contextmenu.ContextMenuType; -import the.bytecode.club.bytecodeviewer.translation.TranslatedStrings; - /*************************************************************************** * Bytecode Viewer (BCV) - Java & Android Reverse Engineering Suite * * Copyright (C) 2014 Konloch - Konloch.com / BytecodeViewer.com * @@ -25,6 +16,15 @@ import the.bytecode.club.bytecodeviewer.translation.TranslatedStrings; * along with this program. If not, see . * ***************************************************************************/ +package the.bytecode.club.bytecodeviewer.gui.contextmenu.resourcelist; + +import java.awt.event.ActionEvent; +import javax.swing.AbstractAction; +import the.bytecode.club.bytecodeviewer.BytecodeViewer; +import the.bytecode.club.bytecodeviewer.gui.contextmenu.ContextMenuItem; +import the.bytecode.club.bytecodeviewer.gui.contextmenu.ContextMenuType; +import the.bytecode.club.bytecodeviewer.translation.TranslatedStrings; + /** * @author Konloch * @since 7/26/2021 diff --git a/src/main/java/the/bytecode/club/bytecodeviewer/gui/contextmenu/resourcelist/Expand.java b/src/main/java/the/bytecode/club/bytecodeviewer/gui/contextmenu/resourcelist/Expand.java index b9b15005..49e6b49b 100644 --- a/src/main/java/the/bytecode/club/bytecodeviewer/gui/contextmenu/resourcelist/Expand.java +++ b/src/main/java/the/bytecode/club/bytecodeviewer/gui/contextmenu/resourcelist/Expand.java @@ -1,12 +1,3 @@ -package the.bytecode.club.bytecodeviewer.gui.contextmenu.resourcelist; - -import java.awt.event.ActionEvent; -import javax.swing.AbstractAction; -import the.bytecode.club.bytecodeviewer.BytecodeViewer; -import the.bytecode.club.bytecodeviewer.gui.contextmenu.ContextMenuItem; -import the.bytecode.club.bytecodeviewer.gui.contextmenu.ContextMenuType; -import the.bytecode.club.bytecodeviewer.translation.TranslatedStrings; - /*************************************************************************** * Bytecode Viewer (BCV) - Java & Android Reverse Engineering Suite * * Copyright (C) 2014 Konloch - Konloch.com / BytecodeViewer.com * @@ -25,6 +16,15 @@ import the.bytecode.club.bytecodeviewer.translation.TranslatedStrings; * along with this program. If not, see . * ***************************************************************************/ +package the.bytecode.club.bytecodeviewer.gui.contextmenu.resourcelist; + +import java.awt.event.ActionEvent; +import javax.swing.AbstractAction; +import the.bytecode.club.bytecodeviewer.BytecodeViewer; +import the.bytecode.club.bytecodeviewer.gui.contextmenu.ContextMenuItem; +import the.bytecode.club.bytecodeviewer.gui.contextmenu.ContextMenuType; +import the.bytecode.club.bytecodeviewer.translation.TranslatedStrings; + /** * @author Konloch * @since 7/26/2021 diff --git a/src/main/java/the/bytecode/club/bytecodeviewer/gui/contextmenu/resourcelist/New.java b/src/main/java/the/bytecode/club/bytecodeviewer/gui/contextmenu/resourcelist/New.java index 19a71b3c..6b482378 100644 --- a/src/main/java/the/bytecode/club/bytecodeviewer/gui/contextmenu/resourcelist/New.java +++ b/src/main/java/the/bytecode/club/bytecodeviewer/gui/contextmenu/resourcelist/New.java @@ -1,20 +1,3 @@ -package the.bytecode.club.bytecodeviewer.gui.contextmenu.resourcelist; - -import java.util.Enumeration; -import javax.swing.JMenu; -import javax.swing.JMenuItem; -import javax.swing.tree.DefaultMutableTreeNode; -import javax.swing.tree.TreeNode; -import javax.swing.tree.TreePath; -import org.apache.commons.io.FilenameUtils; -import org.objectweb.asm.tree.ClassNode; -import the.bytecode.club.bytecodeviewer.BytecodeViewer; -import the.bytecode.club.bytecodeviewer.Constants; -import the.bytecode.club.bytecodeviewer.api.ASMUtil; -import the.bytecode.club.bytecodeviewer.gui.contextmenu.ContextMenuItem; -import the.bytecode.club.bytecodeviewer.gui.contextmenu.ContextMenuType; -import the.bytecode.club.bytecodeviewer.translation.TranslatedStrings; - /*************************************************************************** * Bytecode Viewer (BCV) - Java & Android Reverse Engineering Suite * * Copyright (C) 2014 Konloch - Konloch.com / BytecodeViewer.com * @@ -33,6 +16,23 @@ import the.bytecode.club.bytecodeviewer.translation.TranslatedStrings; * along with this program. If not, see . * ***************************************************************************/ +package the.bytecode.club.bytecodeviewer.gui.contextmenu.resourcelist; + +import java.util.Enumeration; +import javax.swing.JMenu; +import javax.swing.JMenuItem; +import javax.swing.tree.DefaultMutableTreeNode; +import javax.swing.tree.TreeNode; +import javax.swing.tree.TreePath; +import org.apache.commons.io.FilenameUtils; +import org.objectweb.asm.tree.ClassNode; +import the.bytecode.club.bytecodeviewer.BytecodeViewer; +import the.bytecode.club.bytecodeviewer.Constants; +import the.bytecode.club.bytecodeviewer.api.ASMUtil; +import the.bytecode.club.bytecodeviewer.gui.contextmenu.ContextMenuItem; +import the.bytecode.club.bytecodeviewer.gui.contextmenu.ContextMenuType; +import the.bytecode.club.bytecodeviewer.translation.TranslatedStrings; + /** * @author Konloch * @since 7/27/2021 diff --git a/src/main/java/the/bytecode/club/bytecodeviewer/gui/contextmenu/resourcelist/Open.java b/src/main/java/the/bytecode/club/bytecodeviewer/gui/contextmenu/resourcelist/Open.java index 0245c3b5..71fd03a9 100644 --- a/src/main/java/the/bytecode/club/bytecodeviewer/gui/contextmenu/resourcelist/Open.java +++ b/src/main/java/the/bytecode/club/bytecodeviewer/gui/contextmenu/resourcelist/Open.java @@ -1,12 +1,3 @@ -package the.bytecode.club.bytecodeviewer.gui.contextmenu.resourcelist; - -import java.awt.event.ActionEvent; -import javax.swing.AbstractAction; -import the.bytecode.club.bytecodeviewer.BytecodeViewer; -import the.bytecode.club.bytecodeviewer.gui.contextmenu.ContextMenuItem; -import the.bytecode.club.bytecodeviewer.gui.contextmenu.ContextMenuType; -import the.bytecode.club.bytecodeviewer.translation.TranslatedStrings; - /*************************************************************************** * Bytecode Viewer (BCV) - Java & Android Reverse Engineering Suite * * Copyright (C) 2014 Konloch - Konloch.com / BytecodeViewer.com * @@ -25,6 +16,15 @@ import the.bytecode.club.bytecodeviewer.translation.TranslatedStrings; * along with this program. If not, see . * ***************************************************************************/ +package the.bytecode.club.bytecodeviewer.gui.contextmenu.resourcelist; + +import java.awt.event.ActionEvent; +import javax.swing.AbstractAction; +import the.bytecode.club.bytecodeviewer.BytecodeViewer; +import the.bytecode.club.bytecodeviewer.gui.contextmenu.ContextMenuItem; +import the.bytecode.club.bytecodeviewer.gui.contextmenu.ContextMenuType; +import the.bytecode.club.bytecodeviewer.translation.TranslatedStrings; + /** * @author Konloch * @since 7/26/2021 diff --git a/src/main/java/the/bytecode/club/bytecodeviewer/gui/contextmenu/resourcelist/QuickEdit.java b/src/main/java/the/bytecode/club/bytecodeviewer/gui/contextmenu/resourcelist/QuickEdit.java index a2215d59..3e299d5e 100644 --- a/src/main/java/the/bytecode/club/bytecodeviewer/gui/contextmenu/resourcelist/QuickEdit.java +++ b/src/main/java/the/bytecode/club/bytecodeviewer/gui/contextmenu/resourcelist/QuickEdit.java @@ -1,13 +1,3 @@ -package the.bytecode.club.bytecodeviewer.gui.contextmenu.resourcelist; - -import javax.swing.JMenu; -import javax.swing.JMenuItem; -import the.bytecode.club.bytecodeviewer.BytecodeViewer; -import the.bytecode.club.bytecodeviewer.decompilers.Decompiler; -import the.bytecode.club.bytecodeviewer.gui.contextmenu.ContextMenuItem; -import the.bytecode.club.bytecodeviewer.gui.contextmenu.ContextMenuType; -import the.bytecode.club.bytecodeviewer.translation.TranslatedStrings; - /*************************************************************************** * Bytecode Viewer (BCV) - Java & Android Reverse Engineering Suite * * Copyright (C) 2014 Konloch - Konloch.com / BytecodeViewer.com * @@ -26,6 +16,16 @@ import the.bytecode.club.bytecodeviewer.translation.TranslatedStrings; * along with this program. If not, see . * ***************************************************************************/ +package the.bytecode.club.bytecodeviewer.gui.contextmenu.resourcelist; + +import javax.swing.JMenu; +import javax.swing.JMenuItem; +import the.bytecode.club.bytecodeviewer.BytecodeViewer; +import the.bytecode.club.bytecodeviewer.decompilers.Decompiler; +import the.bytecode.club.bytecodeviewer.gui.contextmenu.ContextMenuItem; +import the.bytecode.club.bytecodeviewer.gui.contextmenu.ContextMenuType; +import the.bytecode.club.bytecodeviewer.translation.TranslatedStrings; + /** * @author Konloch * @since 7/27/2021 diff --git a/src/main/java/the/bytecode/club/bytecodeviewer/gui/contextmenu/resourcelist/QuickOpen.java b/src/main/java/the/bytecode/club/bytecodeviewer/gui/contextmenu/resourcelist/QuickOpen.java index 2bdd3674..2eacbee0 100644 --- a/src/main/java/the/bytecode/club/bytecodeviewer/gui/contextmenu/resourcelist/QuickOpen.java +++ b/src/main/java/the/bytecode/club/bytecodeviewer/gui/contextmenu/resourcelist/QuickOpen.java @@ -1,13 +1,3 @@ -package the.bytecode.club.bytecodeviewer.gui.contextmenu.resourcelist; - -import javax.swing.JMenu; -import javax.swing.JMenuItem; -import the.bytecode.club.bytecodeviewer.BytecodeViewer; -import the.bytecode.club.bytecodeviewer.decompilers.Decompiler; -import the.bytecode.club.bytecodeviewer.gui.contextmenu.ContextMenuItem; -import the.bytecode.club.bytecodeviewer.gui.contextmenu.ContextMenuType; -import the.bytecode.club.bytecodeviewer.translation.TranslatedStrings; - /*************************************************************************** * Bytecode Viewer (BCV) - Java & Android Reverse Engineering Suite * * Copyright (C) 2014 Konloch - Konloch.com / BytecodeViewer.com * @@ -26,6 +16,16 @@ import the.bytecode.club.bytecodeviewer.translation.TranslatedStrings; * along with this program. If not, see . * ***************************************************************************/ +package the.bytecode.club.bytecodeviewer.gui.contextmenu.resourcelist; + +import javax.swing.JMenu; +import javax.swing.JMenuItem; +import the.bytecode.club.bytecodeviewer.BytecodeViewer; +import the.bytecode.club.bytecodeviewer.decompilers.Decompiler; +import the.bytecode.club.bytecodeviewer.gui.contextmenu.ContextMenuItem; +import the.bytecode.club.bytecodeviewer.gui.contextmenu.ContextMenuType; +import the.bytecode.club.bytecodeviewer.translation.TranslatedStrings; + /** * @author Konloch * @since 7/26/2021 diff --git a/src/main/java/the/bytecode/club/bytecodeviewer/gui/contextmenu/searchbox/Open.java b/src/main/java/the/bytecode/club/bytecodeviewer/gui/contextmenu/searchbox/Open.java index 7214ed1f..b6b1f0cc 100644 --- a/src/main/java/the/bytecode/club/bytecodeviewer/gui/contextmenu/searchbox/Open.java +++ b/src/main/java/the/bytecode/club/bytecodeviewer/gui/contextmenu/searchbox/Open.java @@ -1,12 +1,3 @@ -package the.bytecode.club.bytecodeviewer.gui.contextmenu.searchbox; - -import java.awt.event.ActionEvent; -import javax.swing.AbstractAction; -import the.bytecode.club.bytecodeviewer.BytecodeViewer; -import the.bytecode.club.bytecodeviewer.gui.contextmenu.ContextMenuItem; -import the.bytecode.club.bytecodeviewer.gui.contextmenu.ContextMenuType; -import the.bytecode.club.bytecodeviewer.translation.TranslatedStrings; - /*************************************************************************** * Bytecode Viewer (BCV) - Java & Android Reverse Engineering Suite * * Copyright (C) 2014 Konloch - Konloch.com / BytecodeViewer.com * @@ -25,6 +16,15 @@ import the.bytecode.club.bytecodeviewer.translation.TranslatedStrings; * along with this program. If not, see . * ***************************************************************************/ +package the.bytecode.club.bytecodeviewer.gui.contextmenu.searchbox; + +import java.awt.event.ActionEvent; +import javax.swing.AbstractAction; +import the.bytecode.club.bytecodeviewer.BytecodeViewer; +import the.bytecode.club.bytecodeviewer.gui.contextmenu.ContextMenuItem; +import the.bytecode.club.bytecodeviewer.gui.contextmenu.ContextMenuType; +import the.bytecode.club.bytecodeviewer.translation.TranslatedStrings; + /** * @author Konloch * @since 7/29/2021 diff --git a/src/main/java/the/bytecode/club/bytecodeviewer/gui/contextmenu/searchbox/QuickEdit.java b/src/main/java/the/bytecode/club/bytecodeviewer/gui/contextmenu/searchbox/QuickEdit.java index 60d06889..779edc49 100644 --- a/src/main/java/the/bytecode/club/bytecodeviewer/gui/contextmenu/searchbox/QuickEdit.java +++ b/src/main/java/the/bytecode/club/bytecodeviewer/gui/contextmenu/searchbox/QuickEdit.java @@ -1,13 +1,3 @@ -package the.bytecode.club.bytecodeviewer.gui.contextmenu.searchbox; - -import javax.swing.JMenu; -import javax.swing.JMenuItem; -import the.bytecode.club.bytecodeviewer.BytecodeViewer; -import the.bytecode.club.bytecodeviewer.decompilers.Decompiler; -import the.bytecode.club.bytecodeviewer.gui.contextmenu.ContextMenuItem; -import the.bytecode.club.bytecodeviewer.gui.contextmenu.ContextMenuType; -import the.bytecode.club.bytecodeviewer.translation.TranslatedStrings; - /*************************************************************************** * Bytecode Viewer (BCV) - Java & Android Reverse Engineering Suite * * Copyright (C) 2014 Konloch - Konloch.com / BytecodeViewer.com * @@ -26,6 +16,16 @@ import the.bytecode.club.bytecodeviewer.translation.TranslatedStrings; * along with this program. If not, see . * ***************************************************************************/ +package the.bytecode.club.bytecodeviewer.gui.contextmenu.searchbox; + +import javax.swing.JMenu; +import javax.swing.JMenuItem; +import the.bytecode.club.bytecodeviewer.BytecodeViewer; +import the.bytecode.club.bytecodeviewer.decompilers.Decompiler; +import the.bytecode.club.bytecodeviewer.gui.contextmenu.ContextMenuItem; +import the.bytecode.club.bytecodeviewer.gui.contextmenu.ContextMenuType; +import the.bytecode.club.bytecodeviewer.translation.TranslatedStrings; + /** * @author Konloch * @since 7/27/2021 diff --git a/src/main/java/the/bytecode/club/bytecodeviewer/gui/contextmenu/searchbox/QuickOpen.java b/src/main/java/the/bytecode/club/bytecodeviewer/gui/contextmenu/searchbox/QuickOpen.java index d616871d..71fb0523 100644 --- a/src/main/java/the/bytecode/club/bytecodeviewer/gui/contextmenu/searchbox/QuickOpen.java +++ b/src/main/java/the/bytecode/club/bytecodeviewer/gui/contextmenu/searchbox/QuickOpen.java @@ -1,13 +1,3 @@ -package the.bytecode.club.bytecodeviewer.gui.contextmenu.searchbox; - -import javax.swing.JMenu; -import javax.swing.JMenuItem; -import the.bytecode.club.bytecodeviewer.BytecodeViewer; -import the.bytecode.club.bytecodeviewer.decompilers.Decompiler; -import the.bytecode.club.bytecodeviewer.gui.contextmenu.ContextMenuItem; -import the.bytecode.club.bytecodeviewer.gui.contextmenu.ContextMenuType; -import the.bytecode.club.bytecodeviewer.translation.TranslatedStrings; - /*************************************************************************** * Bytecode Viewer (BCV) - Java & Android Reverse Engineering Suite * * Copyright (C) 2014 Konloch - Konloch.com / BytecodeViewer.com * @@ -26,6 +16,16 @@ import the.bytecode.club.bytecodeviewer.translation.TranslatedStrings; * along with this program. If not, see . * ***************************************************************************/ +package the.bytecode.club.bytecodeviewer.gui.contextmenu.searchbox; + +import javax.swing.JMenu; +import javax.swing.JMenuItem; +import the.bytecode.club.bytecodeviewer.BytecodeViewer; +import the.bytecode.club.bytecodeviewer.decompilers.Decompiler; +import the.bytecode.club.bytecodeviewer.gui.contextmenu.ContextMenuItem; +import the.bytecode.club.bytecodeviewer.gui.contextmenu.ContextMenuType; +import the.bytecode.club.bytecodeviewer.translation.TranslatedStrings; + /** * @author Konloch * @since 7/26/2021 diff --git a/src/main/java/the/bytecode/club/bytecodeviewer/gui/hexviewer/BaseSwitchableSpinnerPanel.java b/src/main/java/the/bytecode/club/bytecodeviewer/gui/hexviewer/BaseSwitchableSpinnerPanel.java index a242f558..927c1ec8 100644 --- a/src/main/java/the/bytecode/club/bytecodeviewer/gui/hexviewer/BaseSwitchableSpinnerPanel.java +++ b/src/main/java/the/bytecode/club/bytecodeviewer/gui/hexviewer/BaseSwitchableSpinnerPanel.java @@ -1,3 +1,21 @@ +/*************************************************************************** + * Bytecode Viewer (BCV) - Java & Android Reverse Engineering Suite * + * Copyright (C) 2014 Konloch - Konloch.com / BytecodeViewer.com * + * * + * This program is free software: you can redistribute it and/or modify * + * it under the terms of the GNU General Public License as published by * + * the Free Software Foundation, either version 3 of the License, or * + * (at your option) any later version. * + * * + * This program is distributed in the hope that it will be useful, * + * but WITHOUT ANY WARRANTY; without even the implied warranty of * + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * + * GNU General Public License for more details. * + * * + * You should have received a copy of the GNU General Public License * + * along with this program. If not, see . * + ***************************************************************************/ + package the.bytecode.club.bytecodeviewer.gui.hexviewer; import java.awt.Component; diff --git a/src/main/java/the/bytecode/club/bytecodeviewer/gui/hexviewer/BinaryStatusApi.java b/src/main/java/the/bytecode/club/bytecodeviewer/gui/hexviewer/BinaryStatusApi.java index c8af44a1..e40095c0 100644 --- a/src/main/java/the/bytecode/club/bytecodeviewer/gui/hexviewer/BinaryStatusApi.java +++ b/src/main/java/the/bytecode/club/bytecodeviewer/gui/hexviewer/BinaryStatusApi.java @@ -1,3 +1,21 @@ +/*************************************************************************** + * Bytecode Viewer (BCV) - Java & Android Reverse Engineering Suite * + * Copyright (C) 2014 Konloch - Konloch.com / BytecodeViewer.com * + * * + * This program is free software: you can redistribute it and/or modify * + * it under the terms of the GNU General Public License as published by * + * the Free Software Foundation, either version 3 of the License, or * + * (at your option) any later version. * + * * + * This program is distributed in the hope that it will be useful, * + * but WITHOUT ANY WARRANTY; without even the implied warranty of * + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * + * GNU General Public License for more details. * + * * + * You should have received a copy of the GNU General Public License * + * along with this program. If not, see . * + ***************************************************************************/ + package the.bytecode.club.bytecodeviewer.gui.hexviewer; import javax.annotation.ParametersAreNonnullByDefault; diff --git a/src/main/java/the/bytecode/club/bytecodeviewer/gui/hexviewer/BinaryStatusPanel.java b/src/main/java/the/bytecode/club/bytecodeviewer/gui/hexviewer/BinaryStatusPanel.java index 71bd12dd..c287b154 100644 --- a/src/main/java/the/bytecode/club/bytecodeviewer/gui/hexviewer/BinaryStatusPanel.java +++ b/src/main/java/the/bytecode/club/bytecodeviewer/gui/hexviewer/BinaryStatusPanel.java @@ -1,3 +1,21 @@ +/*************************************************************************** + * Bytecode Viewer (BCV) - Java & Android Reverse Engineering Suite * + * Copyright (C) 2014 Konloch - Konloch.com / BytecodeViewer.com * + * * + * This program is free software: you can redistribute it and/or modify * + * it under the terms of the GNU General Public License as published by * + * the Free Software Foundation, either version 3 of the License, or * + * (at your option) any later version. * + * * + * This program is distributed in the hope that it will be useful, * + * but WITHOUT ANY WARRANTY; without even the implied warranty of * + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * + * GNU General Public License for more details. * + * * + * You should have received a copy of the GNU General Public License * + * along with this program. If not, see . * + ***************************************************************************/ + package the.bytecode.club.bytecodeviewer.gui.hexviewer; import java.awt.Toolkit; diff --git a/src/main/java/the/bytecode/club/bytecodeviewer/gui/hexviewer/GoToBinaryPanel.java b/src/main/java/the/bytecode/club/bytecodeviewer/gui/hexviewer/GoToBinaryPanel.java index db43ca86..13ba5250 100644 --- a/src/main/java/the/bytecode/club/bytecodeviewer/gui/hexviewer/GoToBinaryPanel.java +++ b/src/main/java/the/bytecode/club/bytecodeviewer/gui/hexviewer/GoToBinaryPanel.java @@ -1,3 +1,21 @@ +/*************************************************************************** + * Bytecode Viewer (BCV) - Java & Android Reverse Engineering Suite * + * Copyright (C) 2014 Konloch - Konloch.com / BytecodeViewer.com * + * * + * This program is free software: you can redistribute it and/or modify * + * it under the terms of the GNU General Public License as published by * + * the Free Software Foundation, either version 3 of the License, or * + * (at your option) any later version. * + * * + * This program is distributed in the hope that it will be useful, * + * but WITHOUT ANY WARRANTY; without even the implied warranty of * + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * + * GNU General Public License for more details. * + * * + * You should have received a copy of the GNU General Public License * + * along with this program. If not, see . * + ***************************************************************************/ + package the.bytecode.club.bytecodeviewer.gui.hexviewer; import javax.annotation.ParametersAreNonnullByDefault; diff --git a/src/main/java/the/bytecode/club/bytecodeviewer/gui/hexviewer/GoToBinaryPositionMode.java b/src/main/java/the/bytecode/club/bytecodeviewer/gui/hexviewer/GoToBinaryPositionMode.java index e780afce..75432355 100644 --- a/src/main/java/the/bytecode/club/bytecodeviewer/gui/hexviewer/GoToBinaryPositionMode.java +++ b/src/main/java/the/bytecode/club/bytecodeviewer/gui/hexviewer/GoToBinaryPositionMode.java @@ -1,3 +1,21 @@ +/*************************************************************************** + * Bytecode Viewer (BCV) - Java & Android Reverse Engineering Suite * + * Copyright (C) 2014 Konloch - Konloch.com / BytecodeViewer.com * + * * + * This program is free software: you can redistribute it and/or modify * + * it under the terms of the GNU General Public License as published by * + * the Free Software Foundation, either version 3 of the License, or * + * (at your option) any later version. * + * * + * This program is distributed in the hope that it will be useful, * + * but WITHOUT ANY WARRANTY; without even the implied warranty of * + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * + * GNU General Public License for more details. * + * * + * You should have received a copy of the GNU General Public License * + * along with this program. If not, see . * + ***************************************************************************/ + package the.bytecode.club.bytecodeviewer.gui.hexviewer; /** diff --git a/src/main/java/the/bytecode/club/bytecodeviewer/gui/hexviewer/HexViewer.java b/src/main/java/the/bytecode/club/bytecodeviewer/gui/hexviewer/HexViewer.java index cfb1e31c..fbe1373c 100644 --- a/src/main/java/the/bytecode/club/bytecodeviewer/gui/hexviewer/HexViewer.java +++ b/src/main/java/the/bytecode/club/bytecodeviewer/gui/hexviewer/HexViewer.java @@ -1,3 +1,21 @@ +/*************************************************************************** + * Bytecode Viewer (BCV) - Java & Android Reverse Engineering Suite * + * Copyright (C) 2014 Konloch - Konloch.com / BytecodeViewer.com * + * * + * This program is free software: you can redistribute it and/or modify * + * it under the terms of the GNU General Public License as published by * + * the Free Software Foundation, either version 3 of the License, or * + * (at your option) any later version. * + * * + * This program is distributed in the hope that it will be useful, * + * but WITHOUT ANY WARRANTY; without even the implied warranty of * + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * + * GNU General Public License for more details. * + * * + * You should have received a copy of the GNU General Public License * + * along with this program. If not, see . * + ***************************************************************************/ + package the.bytecode.club.bytecodeviewer.gui.hexviewer; import org.exbin.auxiliary.binary_data.ByteArrayData; diff --git a/src/main/java/the/bytecode/club/bytecodeviewer/gui/hexviewer/OkCancelPanel.java b/src/main/java/the/bytecode/club/bytecodeviewer/gui/hexviewer/OkCancelPanel.java index 9eac2ae3..41bd34ad 100644 --- a/src/main/java/the/bytecode/club/bytecodeviewer/gui/hexviewer/OkCancelPanel.java +++ b/src/main/java/the/bytecode/club/bytecodeviewer/gui/hexviewer/OkCancelPanel.java @@ -1,3 +1,21 @@ +/*************************************************************************** + * Bytecode Viewer (BCV) - Java & Android Reverse Engineering Suite * + * Copyright (C) 2014 Konloch - Konloch.com / BytecodeViewer.com * + * * + * This program is free software: you can redistribute it and/or modify * + * it under the terms of the GNU General Public License as published by * + * the Free Software Foundation, either version 3 of the License, or * + * (at your option) any later version. * + * * + * This program is distributed in the hope that it will be useful, * + * but WITHOUT ANY WARRANTY; without even the implied warranty of * + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * + * GNU General Public License for more details. * + * * + * You should have received a copy of the GNU General Public License * + * along with this program. If not, see . * + ***************************************************************************/ + package the.bytecode.club.bytecodeviewer.gui.hexviewer; /** diff --git a/src/main/java/the/bytecode/club/bytecodeviewer/gui/hexviewer/StatusCursorPositionFormat.java b/src/main/java/the/bytecode/club/bytecodeviewer/gui/hexviewer/StatusCursorPositionFormat.java index 8c633a4f..2df74db9 100644 --- a/src/main/java/the/bytecode/club/bytecodeviewer/gui/hexviewer/StatusCursorPositionFormat.java +++ b/src/main/java/the/bytecode/club/bytecodeviewer/gui/hexviewer/StatusCursorPositionFormat.java @@ -1,3 +1,21 @@ +/*************************************************************************** + * Bytecode Viewer (BCV) - Java & Android Reverse Engineering Suite * + * Copyright (C) 2014 Konloch - Konloch.com / BytecodeViewer.com * + * * + * This program is free software: you can redistribute it and/or modify * + * it under the terms of the GNU General Public License as published by * + * the Free Software Foundation, either version 3 of the License, or * + * (at your option) any later version. * + * * + * This program is distributed in the hope that it will be useful, * + * but WITHOUT ANY WARRANTY; without even the implied warranty of * + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * + * GNU General Public License for more details. * + * * + * You should have received a copy of the GNU General Public License * + * along with this program. If not, see . * + ***************************************************************************/ + package the.bytecode.club.bytecodeviewer.gui.hexviewer; import java.util.Objects; diff --git a/src/main/java/the/bytecode/club/bytecodeviewer/gui/hexviewer/StatusDocumentSizeFormat.java b/src/main/java/the/bytecode/club/bytecodeviewer/gui/hexviewer/StatusDocumentSizeFormat.java index 46780b57..29089daa 100644 --- a/src/main/java/the/bytecode/club/bytecodeviewer/gui/hexviewer/StatusDocumentSizeFormat.java +++ b/src/main/java/the/bytecode/club/bytecodeviewer/gui/hexviewer/StatusDocumentSizeFormat.java @@ -1,3 +1,21 @@ +/*************************************************************************** + * Bytecode Viewer (BCV) - Java & Android Reverse Engineering Suite * + * Copyright (C) 2014 Konloch - Konloch.com / BytecodeViewer.com * + * * + * This program is free software: you can redistribute it and/or modify * + * it under the terms of the GNU General Public License as published by * + * the Free Software Foundation, either version 3 of the License, or * + * (at your option) any later version. * + * * + * This program is distributed in the hope that it will be useful, * + * but WITHOUT ANY WARRANTY; without even the implied warranty of * + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * + * GNU General Public License for more details. * + * * + * You should have received a copy of the GNU General Public License * + * along with this program. If not, see . * + ***************************************************************************/ + package the.bytecode.club.bytecodeviewer.gui.hexviewer; import java.util.Objects; diff --git a/src/main/java/the/bytecode/club/bytecodeviewer/gui/hexviewer/ValuesPanel.java b/src/main/java/the/bytecode/club/bytecodeviewer/gui/hexviewer/ValuesPanel.java index bd419e1d..2c16caac 100644 --- a/src/main/java/the/bytecode/club/bytecodeviewer/gui/hexviewer/ValuesPanel.java +++ b/src/main/java/the/bytecode/club/bytecodeviewer/gui/hexviewer/ValuesPanel.java @@ -1,3 +1,21 @@ +/*************************************************************************** + * Bytecode Viewer (BCV) - Java & Android Reverse Engineering Suite * + * Copyright (C) 2014 Konloch - Konloch.com / BytecodeViewer.com * + * * + * This program is free software: you can redistribute it and/or modify * + * it under the terms of the GNU General Public License as published by * + * the Free Software Foundation, either version 3 of the License, or * + * (at your option) any later version. * + * * + * This program is distributed in the hope that it will be useful, * + * but WITHOUT ANY WARRANTY; without even the implied warranty of * + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * + * GNU General Public License for more details. * + * * + * You should have received a copy of the GNU General Public License * + * along with this program. If not, see . * + ***************************************************************************/ + package the.bytecode.club.bytecodeviewer.gui.hexviewer; import java.awt.event.KeyEvent; diff --git a/src/main/java/the/bytecode/club/bytecodeviewer/gui/plugins/GraphicalReflectionKit.java b/src/main/java/the/bytecode/club/bytecodeviewer/gui/plugins/GraphicalReflectionKit.java index b5050c46..0d56c3da 100644 --- a/src/main/java/the/bytecode/club/bytecodeviewer/gui/plugins/GraphicalReflectionKit.java +++ b/src/main/java/the/bytecode/club/bytecodeviewer/gui/plugins/GraphicalReflectionKit.java @@ -1,12 +1,3 @@ -package the.bytecode.club.bytecodeviewer.gui.plugins; - -import java.awt.BorderLayout; -import java.awt.Dimension; -import javax.swing.JFrame; -import javax.swing.JPanel; -import javax.swing.JTabbedPane; -import the.bytecode.club.bytecodeviewer.resources.IconResources; - /*************************************************************************** * Bytecode Viewer (BCV) - Java & Android Reverse Engineering Suite * * Copyright (C) 2014 Konloch - Konloch.com / BytecodeViewer.com * @@ -25,6 +16,15 @@ import the.bytecode.club.bytecodeviewer.resources.IconResources; * along with this program. If not, see . * ***************************************************************************/ +package the.bytecode.club.bytecodeviewer.gui.plugins; + +import java.awt.BorderLayout; +import java.awt.Dimension; +import javax.swing.JFrame; +import javax.swing.JPanel; +import javax.swing.JTabbedPane; +import the.bytecode.club.bytecodeviewer.resources.IconResources; + /** * A graphical way to execute reflection. * diff --git a/src/main/java/the/bytecode/club/bytecodeviewer/gui/plugins/MaliciousCodeScannerOptions.java b/src/main/java/the/bytecode/club/bytecodeviewer/gui/plugins/MaliciousCodeScannerOptions.java index cdfe7f87..ebefcf87 100644 --- a/src/main/java/the/bytecode/club/bytecodeviewer/gui/plugins/MaliciousCodeScannerOptions.java +++ b/src/main/java/the/bytecode/club/bytecodeviewer/gui/plugins/MaliciousCodeScannerOptions.java @@ -1,18 +1,3 @@ -package the.bytecode.club.bytecodeviewer.gui.plugins; - -import java.awt.Dimension; -import java.util.ArrayList; -import java.util.List; -import javax.swing.JButton; -import javax.swing.JCheckBox; -import javax.swing.JFrame; -import the.bytecode.club.bytecodeviewer.BytecodeViewer; -import the.bytecode.club.bytecodeviewer.malwarescanner.MalwareScanModule; -import the.bytecode.club.bytecodeviewer.malwarescanner.util.MaliciousCodeOptions; -import the.bytecode.club.bytecodeviewer.plugin.PluginManager; -import the.bytecode.club.bytecodeviewer.plugin.preinstalled.MaliciousCodeScanner; -import the.bytecode.club.bytecodeviewer.resources.IconResources; - /*************************************************************************** * Bytecode Viewer (BCV) - Java & Android Reverse Engineering Suite * * Copyright (C) 2014 Konloch - Konloch.com / BytecodeViewer.com * @@ -31,6 +16,21 @@ import the.bytecode.club.bytecodeviewer.resources.IconResources; * along with this program. If not, see . * ***************************************************************************/ +package the.bytecode.club.bytecodeviewer.gui.plugins; + +import java.awt.Dimension; +import java.util.ArrayList; +import java.util.List; +import javax.swing.JButton; +import javax.swing.JCheckBox; +import javax.swing.JFrame; +import the.bytecode.club.bytecodeviewer.BytecodeViewer; +import the.bytecode.club.bytecodeviewer.malwarescanner.MalwareScanModule; +import the.bytecode.club.bytecodeviewer.malwarescanner.util.MaliciousCodeOptions; +import the.bytecode.club.bytecodeviewer.plugin.PluginManager; +import the.bytecode.club.bytecodeviewer.plugin.preinstalled.MaliciousCodeScanner; +import the.bytecode.club.bytecodeviewer.resources.IconResources; + /** * This GUI automatically populates the scan options from the MalwareScanModule enum. * diff --git a/src/main/java/the/bytecode/club/bytecodeviewer/gui/plugins/ReplaceStringsOptions.java b/src/main/java/the/bytecode/club/bytecodeviewer/gui/plugins/ReplaceStringsOptions.java index 0abf00ce..a8b28ef3 100644 --- a/src/main/java/the/bytecode/club/bytecodeviewer/gui/plugins/ReplaceStringsOptions.java +++ b/src/main/java/the/bytecode/club/bytecodeviewer/gui/plugins/ReplaceStringsOptions.java @@ -1,16 +1,3 @@ -package the.bytecode.club.bytecodeviewer.gui.plugins; - -import java.awt.Dimension; -import javax.swing.JButton; -import javax.swing.JCheckBox; -import javax.swing.JFrame; -import javax.swing.JLabel; -import javax.swing.JTextField; -import the.bytecode.club.bytecodeviewer.BytecodeViewer; -import the.bytecode.club.bytecodeviewer.plugin.PluginManager; -import the.bytecode.club.bytecodeviewer.plugin.preinstalled.ReplaceStrings; -import the.bytecode.club.bytecodeviewer.resources.IconResources; - /*************************************************************************** * Bytecode Viewer (BCV) - Java & Android Reverse Engineering Suite * * Copyright (C) 2014 Konloch - Konloch.com / BytecodeViewer.com * @@ -29,6 +16,19 @@ import the.bytecode.club.bytecodeviewer.resources.IconResources; * along with this program. If not, see . * ***************************************************************************/ +package the.bytecode.club.bytecodeviewer.gui.plugins; + +import java.awt.Dimension; +import javax.swing.JButton; +import javax.swing.JCheckBox; +import javax.swing.JFrame; +import javax.swing.JLabel; +import javax.swing.JTextField; +import the.bytecode.club.bytecodeviewer.BytecodeViewer; +import the.bytecode.club.bytecodeviewer.plugin.PluginManager; +import the.bytecode.club.bytecodeviewer.plugin.preinstalled.ReplaceStrings; +import the.bytecode.club.bytecodeviewer.resources.IconResources; + /** * The UI for replace strings plugin. * diff --git a/src/main/java/the/bytecode/club/bytecodeviewer/gui/resourcelist/ResourceListIconRenderer.java b/src/main/java/the/bytecode/club/bytecodeviewer/gui/resourcelist/ResourceListIconRenderer.java index 49b9feae..80b6d48f 100644 --- a/src/main/java/the/bytecode/club/bytecodeviewer/gui/resourcelist/ResourceListIconRenderer.java +++ b/src/main/java/the/bytecode/club/bytecodeviewer/gui/resourcelist/ResourceListIconRenderer.java @@ -1,3 +1,21 @@ +/*************************************************************************** + * Bytecode Viewer (BCV) - Java & Android Reverse Engineering Suite * + * Copyright (C) 2014 Konloch - Konloch.com / BytecodeViewer.com * + * * + * This program is free software: you can redistribute it and/or modify * + * it under the terms of the GNU General Public License as published by * + * the Free Software Foundation, either version 3 of the License, or * + * (at your option) any later version. * + * * + * This program is distributed in the hope that it will be useful, * + * but WITHOUT ANY WARRANTY; without even the implied warranty of * + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * + * GNU General Public License for more details. * + * * + * You should have received a copy of the GNU General Public License * + * along with this program. If not, see . * + ***************************************************************************/ + package the.bytecode.club.bytecodeviewer.gui.resourcelist; import java.awt.Component; diff --git a/src/main/java/the/bytecode/club/bytecodeviewer/gui/resourcelist/ResourceListPane.java b/src/main/java/the/bytecode/club/bytecodeviewer/gui/resourcelist/ResourceListPane.java index 1235ec45..7f4bee78 100644 --- a/src/main/java/the/bytecode/club/bytecodeviewer/gui/resourcelist/ResourceListPane.java +++ b/src/main/java/the/bytecode/club/bytecodeviewer/gui/resourcelist/ResourceListPane.java @@ -1,3 +1,21 @@ +/*************************************************************************** + * Bytecode Viewer (BCV) - Java & Android Reverse Engineering Suite * + * Copyright (C) 2014 Konloch - Konloch.com / BytecodeViewer.com * + * * + * This program is free software: you can redistribute it and/or modify * + * it under the terms of the GNU General Public License as published by * + * the Free Software Foundation, either version 3 of the License, or * + * (at your option) any later version. * + * * + * This program is distributed in the hope that it will be useful, * + * but WITHOUT ANY WARRANTY; without even the implied warranty of * + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * + * GNU General Public License for more details. * + * * + * You should have received a copy of the GNU General Public License * + * along with this program. If not, see . * + ***************************************************************************/ + package the.bytecode.club.bytecodeviewer.gui.resourcelist; import java.awt.*; @@ -44,24 +62,6 @@ import the.bytecode.club.bytecodeviewer.util.MiscUtils; import static the.bytecode.club.bytecodeviewer.Constants.fs; import static the.bytecode.club.bytecodeviewer.Constants.tempDirectory; -/*************************************************************************** - * Bytecode Viewer (BCV) - Java & Android Reverse Engineering Suite * - * Copyright (C) 2014 Konloch - Konloch.com / BytecodeViewer.com * - * * - * This program is free software: you can redistribute it and/or modify * - * it under the terms of the GNU General Public License as published by * - * the Free Software Foundation, either version 3 of the License, or * - * (at your option) any later version. * - * * - * This program is distributed in the hope that it will be useful, * - * but WITHOUT ANY WARRANTY; without even the implied warranty of * - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * - * GNU General Public License for more details. * - * * - * You should have received a copy of the GNU General Public License * - * along with this program. If not, see . * - ***************************************************************************/ - /** * The file navigation pane. * diff --git a/src/main/java/the/bytecode/club/bytecodeviewer/gui/resourcelist/ResourceTree.java b/src/main/java/the/bytecode/club/bytecodeviewer/gui/resourcelist/ResourceTree.java index f9e60ce1..fa44833c 100644 --- a/src/main/java/the/bytecode/club/bytecodeviewer/gui/resourcelist/ResourceTree.java +++ b/src/main/java/the/bytecode/club/bytecodeviewer/gui/resourcelist/ResourceTree.java @@ -1,14 +1,3 @@ -package the.bytecode.club.bytecodeviewer.gui.resourcelist; - -import java.awt.Color; -import java.awt.Graphics; -import java.awt.Graphics2D; -import java.awt.RenderingHints; -import javax.swing.JTree; -import javax.swing.tree.DefaultMutableTreeNode; -import the.bytecode.club.bytecodeviewer.gui.util.StringMetricsUtil; -import the.bytecode.club.bytecodeviewer.translation.TranslatedStrings; - /*************************************************************************** * Bytecode Viewer (BCV) - Java & Android Reverse Engineering Suite * * Copyright (C) 2014 Konloch - Konloch.com / BytecodeViewer.com * @@ -27,6 +16,17 @@ import the.bytecode.club.bytecodeviewer.translation.TranslatedStrings; * along with this program. If not, see . * ***************************************************************************/ +package the.bytecode.club.bytecodeviewer.gui.resourcelist; + +import java.awt.Color; +import java.awt.Graphics; +import java.awt.Graphics2D; +import java.awt.RenderingHints; +import javax.swing.JTree; +import javax.swing.tree.DefaultMutableTreeNode; +import the.bytecode.club.bytecodeviewer.gui.util.StringMetricsUtil; +import the.bytecode.club.bytecodeviewer.translation.TranslatedStrings; + /** * @author Konloch * @since 6/22/2021 diff --git a/src/main/java/the/bytecode/club/bytecodeviewer/gui/resourcelist/ResourceTreeNode.java b/src/main/java/the/bytecode/club/bytecodeviewer/gui/resourcelist/ResourceTreeNode.java index c9058ca8..3b794d41 100644 --- a/src/main/java/the/bytecode/club/bytecodeviewer/gui/resourcelist/ResourceTreeNode.java +++ b/src/main/java/the/bytecode/club/bytecodeviewer/gui/resourcelist/ResourceTreeNode.java @@ -1,11 +1,3 @@ -package the.bytecode.club.bytecodeviewer.gui.resourcelist; - -import javax.swing.tree.DefaultMutableTreeNode; -import javax.swing.tree.MutableTreeNode; -import javax.swing.tree.TreeNode; -import java.util.Comparator; -import java.util.HashMap; - /*************************************************************************** * Bytecode Viewer (BCV) - Java & Android Reverse Engineering Suite * * Copyright (C) 2014 Konloch - Konloch.com / BytecodeViewer.com * @@ -24,6 +16,14 @@ import java.util.HashMap; * along with this program. If not, see . * ***************************************************************************/ +package the.bytecode.club.bytecodeviewer.gui.resourcelist; + +import javax.swing.tree.DefaultMutableTreeNode; +import javax.swing.tree.MutableTreeNode; +import javax.swing.tree.TreeNode; +import java.util.Comparator; +import java.util.HashMap; + /** * @author Konloch * @since 6/22/2021 diff --git a/src/main/java/the/bytecode/club/bytecodeviewer/gui/resourcelist/SearchKeyAdapter.java b/src/main/java/the/bytecode/club/bytecodeviewer/gui/resourcelist/SearchKeyAdapter.java index adabe8a6..99d88fa6 100644 --- a/src/main/java/the/bytecode/club/bytecodeviewer/gui/resourcelist/SearchKeyAdapter.java +++ b/src/main/java/the/bytecode/club/bytecodeviewer/gui/resourcelist/SearchKeyAdapter.java @@ -1,12 +1,3 @@ -package the.bytecode.club.bytecodeviewer.gui.resourcelist; - -import javax.swing.tree.TreeNode; -import javax.swing.tree.TreePath; -import java.awt.*; -import java.awt.event.KeyAdapter; -import java.awt.event.KeyEvent; -import java.util.Enumeration; - /*************************************************************************** * Bytecode Viewer (BCV) - Java & Android Reverse Engineering Suite * * Copyright (C) 2014 Konloch - Konloch.com / BytecodeViewer.com * @@ -25,6 +16,15 @@ import java.util.Enumeration; * along with this program. If not, see . * ***************************************************************************/ +package the.bytecode.club.bytecodeviewer.gui.resourcelist; + +import javax.swing.tree.TreeNode; +import javax.swing.tree.TreePath; +import java.awt.*; +import java.awt.event.KeyAdapter; +import java.awt.event.KeyEvent; +import java.util.Enumeration; + /** * @author Konloch * @since 6/22/2021 diff --git a/src/main/java/the/bytecode/club/bytecodeviewer/gui/resourcesearch/PerformSearch.java b/src/main/java/the/bytecode/club/bytecodeviewer/gui/resourcesearch/PerformSearch.java index c93caf04..b6ba60e1 100644 --- a/src/main/java/the/bytecode/club/bytecodeviewer/gui/resourcesearch/PerformSearch.java +++ b/src/main/java/the/bytecode/club/bytecodeviewer/gui/resourcesearch/PerformSearch.java @@ -1,15 +1,3 @@ -package the.bytecode.club.bytecodeviewer.gui.resourcesearch; - -import java.util.regex.Pattern; -import java.util.regex.PatternSyntaxException; -import javax.swing.tree.TreePath; -import the.bytecode.club.bytecodeviewer.BytecodeViewer; -import the.bytecode.club.bytecodeviewer.resources.ResourceContainer; -import the.bytecode.club.bytecodeviewer.searching.BackgroundSearchThread; -import the.bytecode.club.bytecodeviewer.searching.RegexInsnFinder; -import the.bytecode.club.bytecodeviewer.searching.impl.RegexSearch; -import the.bytecode.club.bytecodeviewer.translation.TranslatedStrings; - /*************************************************************************** * Bytecode Viewer (BCV) - Java & Android Reverse Engineering Suite * * Copyright (C) 2014 Konloch - Konloch.com / BytecodeViewer.com * @@ -28,6 +16,18 @@ import the.bytecode.club.bytecodeviewer.translation.TranslatedStrings; * along with this program. If not, see . * ***************************************************************************/ +package the.bytecode.club.bytecodeviewer.gui.resourcesearch; + +import java.util.regex.Pattern; +import java.util.regex.PatternSyntaxException; +import javax.swing.tree.TreePath; +import the.bytecode.club.bytecodeviewer.BytecodeViewer; +import the.bytecode.club.bytecodeviewer.resources.ResourceContainer; +import the.bytecode.club.bytecodeviewer.searching.BackgroundSearchThread; +import the.bytecode.club.bytecodeviewer.searching.RegexInsnFinder; +import the.bytecode.club.bytecodeviewer.searching.impl.RegexSearch; +import the.bytecode.club.bytecodeviewer.translation.TranslatedStrings; + /** * @author Konloch * @since 6/25/2021 diff --git a/src/main/java/the/bytecode/club/bytecodeviewer/gui/resourcesearch/SearchBoxPane.java b/src/main/java/the/bytecode/club/bytecodeviewer/gui/resourcesearch/SearchBoxPane.java index 9ca15c07..0bef6ff0 100644 --- a/src/main/java/the/bytecode/club/bytecodeviewer/gui/resourcesearch/SearchBoxPane.java +++ b/src/main/java/the/bytecode/club/bytecodeviewer/gui/resourcesearch/SearchBoxPane.java @@ -1,3 +1,21 @@ +/*************************************************************************** + * Bytecode Viewer (BCV) - Java & Android Reverse Engineering Suite * + * Copyright (C) 2014 Konloch - Konloch.com / BytecodeViewer.com * + * * + * This program is free software: you can redistribute it and/or modify * + * it under the terms of the GNU General Public License as published by * + * the Free Software Foundation, either version 3 of the License, or * + * (at your option) any later version. * + * * + * This program is distributed in the hope that it will be useful, * + * but WITHOUT ANY WARRANTY; without even the implied warranty of * + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * + * GNU General Public License for more details. * + * * + * You should have received a copy of the GNU General Public License * + * along with this program. If not, see . * + ***************************************************************************/ + package the.bytecode.club.bytecodeviewer.gui.resourcesearch; import java.awt.BorderLayout; @@ -22,24 +40,6 @@ import the.bytecode.club.bytecodeviewer.translation.components.TranslatedJCheckB import the.bytecode.club.bytecodeviewer.translation.components.TranslatedJLabel; import the.bytecode.club.bytecodeviewer.translation.components.TranslatedVisibleComponent; -/*************************************************************************** - * Bytecode Viewer (BCV) - Java & Android Reverse Engineering Suite * - * Copyright (C) 2014 Konloch - Konloch.com / BytecodeViewer.com * - * * - * This program is free software: you can redistribute it and/or modify * - * it under the terms of the GNU General Public License as published by * - * the Free Software Foundation, either version 3 of the License, or * - * (at your option) any later version. * - * * - * This program is distributed in the hope that it will be useful, * - * but WITHOUT ANY WARRANTY; without even the implied warranty of * - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * - * GNU General Public License for more details. * - * * - * You should have received a copy of the GNU General Public License * - * along with this program. If not, see . * - ***************************************************************************/ - /** * A pane dedicating to searching the loaded files. * diff --git a/src/main/java/the/bytecode/club/bytecodeviewer/gui/resourcesearch/SearchRadius.java b/src/main/java/the/bytecode/club/bytecodeviewer/gui/resourcesearch/SearchRadius.java index 200067a4..c9e99460 100644 --- a/src/main/java/the/bytecode/club/bytecodeviewer/gui/resourcesearch/SearchRadius.java +++ b/src/main/java/the/bytecode/club/bytecodeviewer/gui/resourcesearch/SearchRadius.java @@ -1,5 +1,3 @@ -package the.bytecode.club.bytecodeviewer.gui.resourcesearch; - /*************************************************************************** * Bytecode Viewer (BCV) - Java & Android Reverse Engineering Suite * * Copyright (C) 2014 Konloch - Konloch.com / BytecodeViewer.com * @@ -18,6 +16,8 @@ package the.bytecode.club.bytecodeviewer.gui.resourcesearch; * along with this program. If not, see . * ***************************************************************************/ +package the.bytecode.club.bytecodeviewer.gui.resourcesearch; + /** * @author Konloch * @since 6/25/2021 diff --git a/src/main/java/the/bytecode/club/bytecodeviewer/gui/resourcesearch/SearchType.java b/src/main/java/the/bytecode/club/bytecodeviewer/gui/resourcesearch/SearchType.java index 5086d83e..b71bc6e8 100644 --- a/src/main/java/the/bytecode/club/bytecodeviewer/gui/resourcesearch/SearchType.java +++ b/src/main/java/the/bytecode/club/bytecodeviewer/gui/resourcesearch/SearchType.java @@ -1,8 +1,3 @@ -package the.bytecode.club.bytecodeviewer.gui.resourcesearch; - -import the.bytecode.club.bytecodeviewer.searching.SearchPanel; -import the.bytecode.club.bytecodeviewer.searching.impl.*; - /*************************************************************************** * Bytecode Viewer (BCV) - Java & Android Reverse Engineering Suite * * Copyright (C) 2014 Konloch - Konloch.com / BytecodeViewer.com * @@ -21,6 +16,11 @@ import the.bytecode.club.bytecodeviewer.searching.impl.*; * along with this program. If not, see . * ***************************************************************************/ +package the.bytecode.club.bytecodeviewer.gui.resourcesearch; + +import the.bytecode.club.bytecodeviewer.searching.SearchPanel; +import the.bytecode.club.bytecodeviewer.searching.impl.*; + /** * @author Konloch * @since 6/25/2021 diff --git a/src/main/java/the/bytecode/club/bytecodeviewer/gui/resourceviewer/BytecodeViewPanel.java b/src/main/java/the/bytecode/club/bytecodeviewer/gui/resourceviewer/BytecodeViewPanel.java index bdb3b9c4..9c49042d 100644 --- a/src/main/java/the/bytecode/club/bytecodeviewer/gui/resourceviewer/BytecodeViewPanel.java +++ b/src/main/java/the/bytecode/club/bytecodeviewer/gui/resourceviewer/BytecodeViewPanel.java @@ -1,21 +1,3 @@ -package the.bytecode.club.bytecodeviewer.gui.resourceviewer; - -import java.awt.BorderLayout; -import javax.swing.JButton; -import javax.swing.JLabel; -import javax.swing.JPanel; -import org.objectweb.asm.tree.ClassNode; -import the.bytecode.club.bytecodeviewer.compilers.Compiler; -import the.bytecode.club.bytecodeviewer.decompilers.Decompiler; -import the.bytecode.club.bytecodeviewer.gui.components.SearchableRSyntaxTextArea; -import the.bytecode.club.bytecodeviewer.gui.components.SystemConsole; -import the.bytecode.club.bytecodeviewer.gui.resourceviewer.viewer.ClassViewer; -import the.bytecode.club.bytecodeviewer.gui.util.BytecodeViewPanelUpdater; -import the.bytecode.club.bytecodeviewer.translation.TranslatedStrings; -import the.bytecode.club.bytecodeviewer.util.JarUtils; - -import static the.bytecode.club.bytecodeviewer.Constants.nl; - /*************************************************************************** * Bytecode Viewer (BCV) - Java & Android Reverse Engineering Suite * * Copyright (C) 2014 Konloch - Konloch.com / BytecodeViewer.com * @@ -34,6 +16,24 @@ import static the.bytecode.club.bytecodeviewer.Constants.nl; * along with this program. If not, see . * ***************************************************************************/ +package the.bytecode.club.bytecodeviewer.gui.resourceviewer; + +import java.awt.BorderLayout; +import javax.swing.JButton; +import javax.swing.JLabel; +import javax.swing.JPanel; +import org.objectweb.asm.tree.ClassNode; +import the.bytecode.club.bytecodeviewer.compilers.Compiler; +import the.bytecode.club.bytecodeviewer.decompilers.Decompiler; +import the.bytecode.club.bytecodeviewer.gui.components.SearchableRSyntaxTextArea; +import the.bytecode.club.bytecodeviewer.gui.components.SystemConsole; +import the.bytecode.club.bytecodeviewer.gui.resourceviewer.viewer.ClassViewer; +import the.bytecode.club.bytecodeviewer.gui.util.BytecodeViewPanelUpdater; +import the.bytecode.club.bytecodeviewer.translation.TranslatedStrings; +import the.bytecode.club.bytecodeviewer.util.JarUtils; + +import static the.bytecode.club.bytecodeviewer.Constants.nl; + /** * Represents a Bytecode/ClassFile View Panel * diff --git a/src/main/java/the/bytecode/club/bytecodeviewer/gui/resourceviewer/CloseButtonComponent.java b/src/main/java/the/bytecode/club/bytecodeviewer/gui/resourceviewer/CloseButtonComponent.java index e1d1d0f4..156608b0 100644 --- a/src/main/java/the/bytecode/club/bytecodeviewer/gui/resourceviewer/CloseButtonComponent.java +++ b/src/main/java/the/bytecode/club/bytecodeviewer/gui/resourceviewer/CloseButtonComponent.java @@ -1,3 +1,21 @@ +/*************************************************************************** + * Bytecode Viewer (BCV) - Java & Android Reverse Engineering Suite * + * Copyright (C) 2014 Konloch - Konloch.com / BytecodeViewer.com * + * * + * This program is free software: you can redistribute it and/or modify * + * it under the terms of the GNU General Public License as published by * + * the Free Software Foundation, either version 3 of the License, or * + * (at your option) any later version. * + * * + * This program is distributed in the hope that it will be useful, * + * but WITHOUT ANY WARRANTY; without even the implied warranty of * + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * + * GNU General Public License for more details. * + * * + * You should have received a copy of the GNU General Public License * + * along with this program. If not, see . * + ***************************************************************************/ + package the.bytecode.club.bytecodeviewer.gui.resourceviewer; import com.github.weisj.darklaf.components.CloseButton; diff --git a/src/main/java/the/bytecode/club/bytecodeviewer/gui/resourceviewer/DecompilerSelectionPane.java b/src/main/java/the/bytecode/club/bytecodeviewer/gui/resourceviewer/DecompilerSelectionPane.java index 101990b9..032f47d3 100644 --- a/src/main/java/the/bytecode/club/bytecodeviewer/gui/resourceviewer/DecompilerSelectionPane.java +++ b/src/main/java/the/bytecode/club/bytecodeviewer/gui/resourceviewer/DecompilerSelectionPane.java @@ -1,3 +1,21 @@ +/*************************************************************************** + * Bytecode Viewer (BCV) - Java & Android Reverse Engineering Suite * + * Copyright (C) 2014 Konloch - Konloch.com / BytecodeViewer.com * + * * + * This program is free software: you can redistribute it and/or modify * + * it under the terms of the GNU General Public License as published by * + * the Free Software Foundation, either version 3 of the License, or * + * (at your option) any later version. * + * * + * This program is distributed in the hope that it will be useful, * + * but WITHOUT ANY WARRANTY; without even the implied warranty of * + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * + * GNU General Public License for more details. * + * * + * You should have received a copy of the GNU General Public License * + * along with this program. If not, see . * + ***************************************************************************/ + package the.bytecode.club.bytecodeviewer.gui.resourceviewer; import java.util.ArrayList; @@ -20,24 +38,6 @@ import the.bytecode.club.bytecodeviewer.translation.components.TranslatedJRadioB import static the.bytecode.club.bytecodeviewer.gui.components.DecompilerViewComponent.DecompilerComponentType.*; -/*************************************************************************** - * Bytecode Viewer (BCV) - Java & Android Reverse Engineering Suite * - * Copyright (C) 2014 Konloch - Konloch.com / BytecodeViewer.com * - * * - * This program is free software: you can redistribute it and/or modify * - * it under the terms of the GNU General Public License as published by * - * the Free Software Foundation, either version 3 of the License, or * - * (at your option) any later version. * - * * - * This program is distributed in the hope that it will be useful, * - * but WITHOUT ANY WARRANTY; without even the implied warranty of * - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * - * GNU General Public License for more details. * - * * - * You should have received a copy of the GNU General Public License * - * along with this program. If not, see . * - ***************************************************************************/ - /** * @author Konloch * @since 6/21/2021 diff --git a/src/main/java/the/bytecode/club/bytecodeviewer/gui/resourceviewer/DraggableTabbedPane.java b/src/main/java/the/bytecode/club/bytecodeviewer/gui/resourceviewer/DraggableTabbedPane.java index b8ae1c38..e7f829a1 100644 --- a/src/main/java/the/bytecode/club/bytecodeviewer/gui/resourceviewer/DraggableTabbedPane.java +++ b/src/main/java/the/bytecode/club/bytecodeviewer/gui/resourceviewer/DraggableTabbedPane.java @@ -1,3 +1,21 @@ +/*************************************************************************** + * Bytecode Viewer (BCV) - Java & Android Reverse Engineering Suite * + * Copyright (C) 2014 Konloch - Konloch.com / BytecodeViewer.com * + * * + * This program is free software: you can redistribute it and/or modify * + * it under the terms of the GNU General Public License as published by * + * the Free Software Foundation, either version 3 of the License, or * + * (at your option) any later version. * + * * + * This program is distributed in the hope that it will be useful, * + * but WITHOUT ANY WARRANTY; without even the implied warranty of * + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * + * GNU General Public License for more details. * + * * + * You should have received a copy of the GNU General Public License * + * along with this program. If not, see . * + ***************************************************************************/ + package the.bytecode.club.bytecodeviewer.gui.resourceviewer; import com.github.weisj.darklaf.ui.tabbedpane.DarkTabbedPaneUI; diff --git a/src/main/java/the/bytecode/club/bytecodeviewer/gui/resourceviewer/TabExitButton.java b/src/main/java/the/bytecode/club/bytecodeviewer/gui/resourceviewer/TabExitButton.java index f675553b..a17a03ed 100644 --- a/src/main/java/the/bytecode/club/bytecodeviewer/gui/resourceviewer/TabExitButton.java +++ b/src/main/java/the/bytecode/club/bytecodeviewer/gui/resourceviewer/TabExitButton.java @@ -1,16 +1,3 @@ -package the.bytecode.club.bytecodeviewer.gui.resourceviewer; - -import java.awt.BasicStroke; -import java.awt.Color; -import java.awt.Dimension; -import java.awt.Graphics; -import java.awt.Graphics2D; -import java.awt.event.ActionEvent; -import java.awt.event.ActionListener; -import javax.swing.BorderFactory; -import javax.swing.JButton; -import javax.swing.plaf.basic.BasicButtonUI; - /*************************************************************************** * Bytecode Viewer (BCV) - Java & Android Reverse Engineering Suite * * Copyright (C) 2014 Konloch - Konloch.com / BytecodeViewer.com * @@ -29,6 +16,19 @@ import javax.swing.plaf.basic.BasicButtonUI; * along with this program. If not, see . * ***************************************************************************/ +package the.bytecode.club.bytecodeviewer.gui.resourceviewer; + +import java.awt.BasicStroke; +import java.awt.Color; +import java.awt.Dimension; +import java.awt.Graphics; +import java.awt.Graphics2D; +import java.awt.event.ActionEvent; +import java.awt.event.ActionListener; +import javax.swing.BorderFactory; +import javax.swing.JButton; +import javax.swing.plaf.basic.BasicButtonUI; + /** * @author Konloch * @since 6/25/2021 diff --git a/src/main/java/the/bytecode/club/bytecodeviewer/gui/resourceviewer/TabRemovalEvent.java b/src/main/java/the/bytecode/club/bytecodeviewer/gui/resourceviewer/TabRemovalEvent.java index 03cc282e..cb03b085 100644 --- a/src/main/java/the/bytecode/club/bytecodeviewer/gui/resourceviewer/TabRemovalEvent.java +++ b/src/main/java/the/bytecode/club/bytecodeviewer/gui/resourceviewer/TabRemovalEvent.java @@ -1,11 +1,3 @@ -package the.bytecode.club.bytecodeviewer.gui.resourceviewer; - -import java.awt.Component; -import java.awt.event.ContainerEvent; -import java.awt.event.ContainerListener; -import the.bytecode.club.bytecodeviewer.BytecodeViewer; -import the.bytecode.club.bytecodeviewer.gui.resourceviewer.viewer.ResourceViewer; - /*************************************************************************** * Bytecode Viewer (BCV) - Java & Android Reverse Engineering Suite * * Copyright (C) 2014 Konloch - Konloch.com / BytecodeViewer.com * @@ -24,6 +16,14 @@ import the.bytecode.club.bytecodeviewer.gui.resourceviewer.viewer.ResourceViewer * along with this program. If not, see . * ***************************************************************************/ +package the.bytecode.club.bytecodeviewer.gui.resourceviewer; + +import java.awt.Component; +import java.awt.event.ContainerEvent; +import java.awt.event.ContainerListener; +import the.bytecode.club.bytecodeviewer.BytecodeViewer; +import the.bytecode.club.bytecodeviewer.gui.resourceviewer.viewer.ResourceViewer; + /** * @author Konloch * @since 6/24/2021 diff --git a/src/main/java/the/bytecode/club/bytecodeviewer/gui/resourceviewer/TabbedPane.java b/src/main/java/the/bytecode/club/bytecodeviewer/gui/resourceviewer/TabbedPane.java index 2411a90b..31f5cb2f 100644 --- a/src/main/java/the/bytecode/club/bytecodeviewer/gui/resourceviewer/TabbedPane.java +++ b/src/main/java/the/bytecode/club/bytecodeviewer/gui/resourceviewer/TabbedPane.java @@ -1,13 +1,3 @@ -package the.bytecode.club.bytecodeviewer.gui.resourceviewer; - -import the.bytecode.club.bytecodeviewer.gui.components.ButtonHoverAnimation; -import the.bytecode.club.bytecodeviewer.gui.components.MaxWidthJLabel; -import the.bytecode.club.bytecodeviewer.gui.resourceviewer.viewer.ResourceViewer; - -import javax.swing.*; -import java.awt.*; -import java.awt.event.MouseListener; - /*************************************************************************** * Bytecode Viewer (BCV) - Java & Android Reverse Engineering Suite * * Copyright (C) 2014 Konloch - Konloch.com / BytecodeViewer.com * @@ -26,6 +16,16 @@ import java.awt.event.MouseListener; * along with this program. If not, see . * ***************************************************************************/ +package the.bytecode.club.bytecodeviewer.gui.resourceviewer; + +import the.bytecode.club.bytecodeviewer.gui.components.ButtonHoverAnimation; +import the.bytecode.club.bytecodeviewer.gui.components.MaxWidthJLabel; +import the.bytecode.club.bytecodeviewer.gui.resourceviewer.viewer.ResourceViewer; + +import javax.swing.*; +import java.awt.*; +import java.awt.event.MouseListener; + /** * Component to be used as tabComponent; Contains a JLabel to show the text and a JButton to close the tab it belongs to * diff --git a/src/main/java/the/bytecode/club/bytecodeviewer/gui/resourceviewer/Workspace.java b/src/main/java/the/bytecode/club/bytecodeviewer/gui/resourceviewer/Workspace.java index 02b550ae..b25c3576 100644 --- a/src/main/java/the/bytecode/club/bytecodeviewer/gui/resourceviewer/Workspace.java +++ b/src/main/java/the/bytecode/club/bytecodeviewer/gui/resourceviewer/Workspace.java @@ -1,3 +1,21 @@ +/*************************************************************************** + * Bytecode Viewer (BCV) - Java & Android Reverse Engineering Suite * + * Copyright (C) 2014 Konloch - Konloch.com / BytecodeViewer.com * + * * + * This program is free software: you can redistribute it and/or modify * + * it under the terms of the GNU General Public License as published by * + * the Free Software Foundation, either version 3 of the License, or * + * (at your option) any later version. * + * * + * This program is distributed in the hope that it will be useful, * + * but WITHOUT ANY WARRANTY; without even the implied warranty of * + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * + * GNU General Public License for more details. * + * * + * You should have received a copy of the GNU General Public License * + * along with this program. If not, see . * + ***************************************************************************/ + package the.bytecode.club.bytecodeviewer.gui.resourceviewer; import the.bytecode.club.bytecodeviewer.BytecodeViewer; @@ -22,24 +40,6 @@ import java.util.Set; import static the.bytecode.club.bytecodeviewer.Constants.BLOCK_TAB_MENU; -/*************************************************************************** - * Bytecode Viewer (BCV) - Java & Android Reverse Engineering Suite * - * Copyright (C) 2014 Konloch - Konloch.com / BytecodeViewer.com * - * * - * This program is free software: you can redistribute it and/or modify * - * it under the terms of the GNU General Public License as published by * - * the Free Software Foundation, either version 3 of the License, or * - * (at your option) any later version. * - * * - * This program is distributed in the hope that it will be useful, * - * but WITHOUT ANY WARRANTY; without even the implied warranty of * - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * - * GNU General Public License for more details. * - * * - * You should have received a copy of the GNU General Public License * - * along with this program. If not, see . * - ***************************************************************************/ - /** * This pane contains all the resources, as tabs. * diff --git a/src/main/java/the/bytecode/club/bytecodeviewer/gui/resourceviewer/WorkspaceRefresh.java b/src/main/java/the/bytecode/club/bytecodeviewer/gui/resourceviewer/WorkspaceRefresh.java index 202f7629..f8abc813 100644 --- a/src/main/java/the/bytecode/club/bytecodeviewer/gui/resourceviewer/WorkspaceRefresh.java +++ b/src/main/java/the/bytecode/club/bytecodeviewer/gui/resourceviewer/WorkspaceRefresh.java @@ -1,10 +1,3 @@ -package the.bytecode.club.bytecodeviewer.gui.resourceviewer; - -import java.awt.event.ActionEvent; -import javax.swing.JButton; -import the.bytecode.club.bytecodeviewer.BytecodeViewer; -import the.bytecode.club.bytecodeviewer.gui.resourceviewer.viewer.ResourceViewer; - /*************************************************************************** * Bytecode Viewer (BCV) - Java & Android Reverse Engineering Suite * * Copyright (C) 2014 Konloch - Konloch.com / BytecodeViewer.com * @@ -23,6 +16,13 @@ import the.bytecode.club.bytecodeviewer.gui.resourceviewer.viewer.ResourceViewer * along with this program. If not, see . * ***************************************************************************/ +package the.bytecode.club.bytecodeviewer.gui.resourceviewer; + +import java.awt.event.ActionEvent; +import javax.swing.JButton; +import the.bytecode.club.bytecodeviewer.BytecodeViewer; +import the.bytecode.club.bytecodeviewer.gui.resourceviewer.viewer.ResourceViewer; + /** * @author Konloch * @since 6/24/2021 diff --git a/src/main/java/the/bytecode/club/bytecodeviewer/gui/resourceviewer/WorkspaceRefreshEvent.java b/src/main/java/the/bytecode/club/bytecodeviewer/gui/resourceviewer/WorkspaceRefreshEvent.java index f8c5427a..e1e33175 100644 --- a/src/main/java/the/bytecode/club/bytecodeviewer/gui/resourceviewer/WorkspaceRefreshEvent.java +++ b/src/main/java/the/bytecode/club/bytecodeviewer/gui/resourceviewer/WorkspaceRefreshEvent.java @@ -1,9 +1,3 @@ -package the.bytecode.club.bytecodeviewer.gui.resourceviewer; - -import java.awt.event.ActionEvent; -import java.awt.event.ActionListener; -import the.bytecode.club.bytecodeviewer.BytecodeViewer; - /*************************************************************************** * Bytecode Viewer (BCV) - Java & Android Reverse Engineering Suite * * Copyright (C) 2014 Konloch - Konloch.com / BytecodeViewer.com * @@ -22,6 +16,12 @@ import the.bytecode.club.bytecodeviewer.BytecodeViewer; * along with this program. If not, see . * ***************************************************************************/ +package the.bytecode.club.bytecodeviewer.gui.resourceviewer; + +import java.awt.event.ActionEvent; +import java.awt.event.ActionListener; +import the.bytecode.club.bytecodeviewer.BytecodeViewer; + /** * @author Konloch * @since 6/21/2021 diff --git a/src/main/java/the/bytecode/club/bytecodeviewer/gui/resourceviewer/viewer/ClassViewer.java b/src/main/java/the/bytecode/club/bytecodeviewer/gui/resourceviewer/viewer/ClassViewer.java index 768ab447..490c98d1 100644 --- a/src/main/java/the/bytecode/club/bytecodeviewer/gui/resourceviewer/viewer/ClassViewer.java +++ b/src/main/java/the/bytecode/club/bytecodeviewer/gui/resourceviewer/viewer/ClassViewer.java @@ -1,3 +1,21 @@ +/*************************************************************************** + * Bytecode Viewer (BCV) - Java & Android Reverse Engineering Suite * + * Copyright (C) 2014 Konloch - Konloch.com / BytecodeViewer.com * + * * + * This program is free software: you can redistribute it and/or modify * + * it under the terms of the GNU General Public License as published by * + * the Free Software Foundation, either version 3 of the License, or * + * (at your option) any later version. * + * * + * This program is distributed in the hope that it will be useful, * + * but WITHOUT ANY WARRANTY; without even the implied warranty of * + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * + * GNU General Public License for more details. * + * * + * You should have received a copy of the GNU General Public License * + * along with this program. If not, see . * + ***************************************************************************/ + package the.bytecode.club.bytecodeviewer.gui.resourceviewer.viewer; import org.fife.ui.rsyntaxtextarea.RSyntaxTextArea; @@ -23,24 +41,6 @@ import java.util.List; import static the.bytecode.club.bytecodeviewer.util.MethodParser.Method; -/*************************************************************************** - * Bytecode Viewer (BCV) - Java & Android Reverse Engineering Suite * - * Copyright (C) 2014 Konloch - Konloch.com / BytecodeViewer.com * - * * - * This program is free software: you can redistribute it and/or modify * - * it under the terms of the GNU General Public License as published by * - * the Free Software Foundation, either version 3 of the License, or * - * (at your option) any later version. * - * * - * This program is distributed in the hope that it will be useful, * - * but WITHOUT ANY WARRANTY; without even the implied warranty of * - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * - * GNU General Public License for more details. * - * * - * You should have received a copy of the GNU General Public License * - * along with this program. If not, see . * - ***************************************************************************/ - /** * This represents the opened classfile. * diff --git a/src/main/java/the/bytecode/club/bytecodeviewer/gui/resourceviewer/viewer/ComponentViewer.java b/src/main/java/the/bytecode/club/bytecodeviewer/gui/resourceviewer/viewer/ComponentViewer.java index 659de792..bf193a47 100644 --- a/src/main/java/the/bytecode/club/bytecodeviewer/gui/resourceviewer/viewer/ComponentViewer.java +++ b/src/main/java/the/bytecode/club/bytecodeviewer/gui/resourceviewer/viewer/ComponentViewer.java @@ -1,11 +1,3 @@ -package the.bytecode.club.bytecodeviewer.gui.resourceviewer.viewer; - -import java.awt.BorderLayout; -import java.awt.Component; -import javax.swing.JButton; -import the.bytecode.club.bytecodeviewer.BytecodeViewer; -import the.bytecode.club.bytecodeviewer.resources.Resource; - /*************************************************************************** * Bytecode Viewer (BCV) - Java & Android Reverse Engineering Suite * * Copyright (C) 2014 Konloch - Konloch.com / BytecodeViewer.com * @@ -24,6 +16,14 @@ import the.bytecode.club.bytecodeviewer.resources.Resource; * along with this program. If not, see . * ***************************************************************************/ +package the.bytecode.club.bytecodeviewer.gui.resourceviewer.viewer; + +import java.awt.BorderLayout; +import java.awt.Component; +import javax.swing.JButton; +import the.bytecode.club.bytecodeviewer.BytecodeViewer; +import the.bytecode.club.bytecodeviewer.resources.Resource; + /** * This represents a component opened as a tab * diff --git a/src/main/java/the/bytecode/club/bytecodeviewer/gui/resourceviewer/viewer/FileViewer.java b/src/main/java/the/bytecode/club/bytecodeviewer/gui/resourceviewer/viewer/FileViewer.java index f18af8b4..611f812e 100644 --- a/src/main/java/the/bytecode/club/bytecodeviewer/gui/resourceviewer/viewer/FileViewer.java +++ b/src/main/java/the/bytecode/club/bytecodeviewer/gui/resourceviewer/viewer/FileViewer.java @@ -1,3 +1,21 @@ +/*************************************************************************** + * Bytecode Viewer (BCV) - Java & Android Reverse Engineering Suite * + * Copyright (C) 2014 Konloch - Konloch.com / BytecodeViewer.com * + * * + * This program is free software: you can redistribute it and/or modify * + * it under the terms of the GNU General Public License as published by * + * the Free Software Foundation, either version 3 of the License, or * + * (at your option) any later version. * + * * + * This program is distributed in the hope that it will be useful, * + * but WITHOUT ANY WARRANTY; without even the implied warranty of * + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * + * GNU General Public License for more details. * + * * + * You should have received a copy of the GNU General Public License * + * along with this program. If not, see . * + ***************************************************************************/ + package the.bytecode.club.bytecodeviewer.gui.resourceviewer.viewer; import java.awt.BorderLayout; @@ -21,24 +39,6 @@ import the.bytecode.club.bytecodeviewer.resources.ResourceType; import the.bytecode.club.bytecodeviewer.util.MiscUtils; import the.bytecode.club.bytecodeviewer.util.SyntaxLanguage; -/*************************************************************************** - * Bytecode Viewer (BCV) - Java & Android Reverse Engineering Suite * - * Copyright (C) 2014 Konloch - Konloch.com / BytecodeViewer.com * - * * - * This program is free software: you can redistribute it and/or modify * - * it under the terms of the GNU General Public License as published by * - * the Free Software Foundation, either version 3 of the License, or * - * (at your option) any later version. * - * * - * This program is distributed in the hope that it will be useful, * - * but WITHOUT ANY WARRANTY; without even the implied warranty of * - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * - * GNU General Public License for more details. * - * * - * You should have received a copy of the GNU General Public License * - * along with this program. If not, see . * - ***************************************************************************/ - /** * Represents any open non-class file inside of a tab. * diff --git a/src/main/java/the/bytecode/club/bytecodeviewer/gui/resourceviewer/viewer/ResourceViewer.java b/src/main/java/the/bytecode/club/bytecodeviewer/gui/resourceviewer/viewer/ResourceViewer.java index 5d2e6d65..dcb620a4 100644 --- a/src/main/java/the/bytecode/club/bytecodeviewer/gui/resourceviewer/viewer/ResourceViewer.java +++ b/src/main/java/the/bytecode/club/bytecodeviewer/gui/resourceviewer/viewer/ResourceViewer.java @@ -1,12 +1,3 @@ -package the.bytecode.club.bytecodeviewer.gui.resourceviewer.viewer; - -import javax.swing.JButton; -import javax.swing.JPanel; -import the.bytecode.club.bytecodeviewer.Configuration; -import the.bytecode.club.bytecodeviewer.gui.resourceviewer.TabbedPane; -import the.bytecode.club.bytecodeviewer.resources.Resource; -import the.bytecode.club.bytecodeviewer.util.MiscUtils; - /*************************************************************************** * Bytecode Viewer (BCV) - Java & Android Reverse Engineering Suite * * Copyright (C) 2014 Konloch - Konloch.com / BytecodeViewer.com * @@ -25,6 +16,15 @@ import the.bytecode.club.bytecodeviewer.util.MiscUtils; * along with this program. If not, see . * ***************************************************************************/ +package the.bytecode.club.bytecodeviewer.gui.resourceviewer.viewer; + +import javax.swing.JButton; +import javax.swing.JPanel; +import the.bytecode.club.bytecodeviewer.Configuration; +import the.bytecode.club.bytecodeviewer.gui.resourceviewer.TabbedPane; +import the.bytecode.club.bytecodeviewer.resources.Resource; +import the.bytecode.club.bytecodeviewer.util.MiscUtils; + /** * Represents an opened tab * diff --git a/src/main/java/the/bytecode/club/bytecodeviewer/gui/resourceviewer/viewer/synchronizedscroll/MethodData.java b/src/main/java/the/bytecode/club/bytecodeviewer/gui/resourceviewer/viewer/synchronizedscroll/MethodData.java index d3a489f2..e02a2130 100644 --- a/src/main/java/the/bytecode/club/bytecodeviewer/gui/resourceviewer/viewer/synchronizedscroll/MethodData.java +++ b/src/main/java/the/bytecode/club/bytecodeviewer/gui/resourceviewer/viewer/synchronizedscroll/MethodData.java @@ -1,9 +1,3 @@ -package the.bytecode.club.bytecodeviewer.gui.resourceviewer.viewer.synchronizedscroll; - -import java.util.Arrays; -import java.util.Objects; -import org.objectweb.asm.Type; - /*************************************************************************** * Bytecode Viewer (BCV) - Java & Android Reverse Engineering Suite * * Copyright (C) 2014 Konloch - Konloch.com / BytecodeViewer.com * @@ -22,6 +16,12 @@ import org.objectweb.asm.Type; * along with this program. If not, see . * ***************************************************************************/ +package the.bytecode.club.bytecodeviewer.gui.resourceviewer.viewer.synchronizedscroll; + +import java.util.Arrays; +import java.util.Objects; +import org.objectweb.asm.Type; + /** * @author Konloch * @since 6/24/2021 diff --git a/src/main/java/the/bytecode/club/bytecodeviewer/gui/theme/LAFTheme.java b/src/main/java/the/bytecode/club/bytecodeviewer/gui/theme/LAFTheme.java index d8aa20bb..608eeca4 100644 --- a/src/main/java/the/bytecode/club/bytecodeviewer/gui/theme/LAFTheme.java +++ b/src/main/java/the/bytecode/club/bytecodeviewer/gui/theme/LAFTheme.java @@ -1,3 +1,21 @@ +/*************************************************************************** + * Bytecode Viewer (BCV) - Java & Android Reverse Engineering Suite * + * Copyright (C) 2014 Konloch - Konloch.com / BytecodeViewer.com * + * * + * This program is free software: you can redistribute it and/or modify * + * it under the terms of the GNU General Public License as published by * + * the Free Software Foundation, either version 3 of the License, or * + * (at your option) any later version. * + * * + * This program is distributed in the hope that it will be useful, * + * but WITHOUT ANY WARRANTY; without even the implied warranty of * + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * + * GNU General Public License for more details. * + * * + * You should have received a copy of the GNU General Public License * + * along with this program. If not, see . * + ***************************************************************************/ + package the.bytecode.club.bytecodeviewer.gui.theme; import com.github.weisj.darklaf.LafManager; @@ -19,24 +37,6 @@ import the.bytecode.club.bytecodeviewer.gui.components.SettingsDialog; import the.bytecode.club.bytecodeviewer.gui.components.VisibleComponent; import the.bytecode.club.bytecodeviewer.translation.TranslatedComponents; -/*************************************************************************** - * Bytecode Viewer (BCV) - Java & Android Reverse Engineering Suite * - * Copyright (C) 2014 Konloch - Konloch.com / BytecodeViewer.com * - * * - * This program is free software: you can redistribute it and/or modify * - * it under the terms of the GNU General Public License as published by * - * the Free Software Foundation, either version 3 of the License, or * - * (at your option) any later version. * - * * - * This program is distributed in the hope that it will be useful, * - * but WITHOUT ANY WARRANTY; without even the implied warranty of * - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * - * GNU General Public License for more details. * - * * - * You should have received a copy of the GNU General Public License * - * along with this program. If not, see . * - ***************************************************************************/ - /** * @author Konloch * @author ThexXTURBOXx diff --git a/src/main/java/the/bytecode/club/bytecodeviewer/gui/theme/RSTATheme.java b/src/main/java/the/bytecode/club/bytecodeviewer/gui/theme/RSTATheme.java index baab73c8..e56e04c6 100644 --- a/src/main/java/the/bytecode/club/bytecodeviewer/gui/theme/RSTATheme.java +++ b/src/main/java/the/bytecode/club/bytecodeviewer/gui/theme/RSTATheme.java @@ -1,13 +1,3 @@ -package the.bytecode.club.bytecodeviewer.gui.theme; - -import com.github.weisj.darklaf.extensions.rsyntaxarea.DarklafRSyntaxTheme; -import java.io.InputStream; -import org.fife.ui.rsyntaxtextarea.RSyntaxTextArea; -import org.fife.ui.rsyntaxtextarea.Theme; -import the.bytecode.club.bytecodeviewer.Configuration; -import the.bytecode.club.bytecodeviewer.Constants; -import the.bytecode.club.bytecodeviewer.translation.TranslatedComponents; - /*************************************************************************** * Bytecode Viewer (BCV) - Java & Android Reverse Engineering Suite * * Copyright (C) 2014 Konloch - Konloch.com / BytecodeViewer.com * @@ -26,6 +16,16 @@ import the.bytecode.club.bytecodeviewer.translation.TranslatedComponents; * along with this program. If not, see . * ***************************************************************************/ +package the.bytecode.club.bytecodeviewer.gui.theme; + +import com.github.weisj.darklaf.extensions.rsyntaxarea.DarklafRSyntaxTheme; +import java.io.InputStream; +import org.fife.ui.rsyntaxtextarea.RSyntaxTextArea; +import org.fife.ui.rsyntaxtextarea.Theme; +import the.bytecode.club.bytecodeviewer.Configuration; +import the.bytecode.club.bytecodeviewer.Constants; +import the.bytecode.club.bytecodeviewer.translation.TranslatedComponents; + /** * @author ThexXTURBOXx * @since 6/23/2021 diff --git a/src/main/java/the/bytecode/club/bytecodeviewer/gui/util/BytecodeViewPanelUpdater.java b/src/main/java/the/bytecode/club/bytecodeviewer/gui/util/BytecodeViewPanelUpdater.java index 15dbdd5b..ac447fbc 100644 --- a/src/main/java/the/bytecode/club/bytecodeviewer/gui/util/BytecodeViewPanelUpdater.java +++ b/src/main/java/the/bytecode/club/bytecodeviewer/gui/util/BytecodeViewPanelUpdater.java @@ -1,3 +1,21 @@ +/*************************************************************************** + * Bytecode Viewer (BCV) - Java & Android Reverse Engineering Suite * + * Copyright (C) 2014 Konloch - Konloch.com / BytecodeViewer.com * + * * + * This program is free software: you can redistribute it and/or modify * + * it under the terms of the GNU General Public License as published by * + * the Free Software Foundation, either version 3 of the License, or * + * (at your option) any later version. * + * * + * This program is distributed in the hope that it will be useful, * + * but WITHOUT ANY WARRANTY; without even the implied warranty of * + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * + * GNU General Public License for more details. * + * * + * You should have received a copy of the GNU General Public License * + * along with this program. If not, see . * + ***************************************************************************/ + package the.bytecode.club.bytecodeviewer.gui.util; import java.awt.BorderLayout; @@ -32,24 +50,6 @@ import the.bytecode.club.bytecodeviewer.util.MethodParser; import static the.bytecode.club.bytecodeviewer.gui.resourceviewer.TabbedPane.BLANK_COLOR; import static the.bytecode.club.bytecodeviewer.translation.TranslatedStrings.EDITABLE; -/*************************************************************************** - * Bytecode Viewer (BCV) - Java & Android Reverse Engineering Suite * - * Copyright (C) 2014 Konloch - Konloch.com / BytecodeViewer.com * - * * - * This program is free software: you can redistribute it and/or modify * - * it under the terms of the GNU General Public License as published by * - * the Free Software Foundation, either version 3 of the License, or * - * (at your option) any later version. * - * * - * This program is distributed in the hope that it will be useful, * - * but WITHOUT ANY WARRANTY; without even the implied warranty of * - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * - * GNU General Public License for more details. * - * * - * You should have received a copy of the GNU General Public License * - * along with this program. If not, see . * - ***************************************************************************/ - /** * Updates the Bytecode View Panel in a background thread * diff --git a/src/main/java/the/bytecode/club/bytecodeviewer/gui/util/StringMetricsUtil.java b/src/main/java/the/bytecode/club/bytecodeviewer/gui/util/StringMetricsUtil.java index ab78fe91..23d57c22 100644 --- a/src/main/java/the/bytecode/club/bytecodeviewer/gui/util/StringMetricsUtil.java +++ b/src/main/java/the/bytecode/club/bytecodeviewer/gui/util/StringMetricsUtil.java @@ -1,3 +1,21 @@ +/*************************************************************************** + * Bytecode Viewer (BCV) - Java & Android Reverse Engineering Suite * + * Copyright (C) 2014 Konloch - Konloch.com / BytecodeViewer.com * + * * + * This program is free software: you can redistribute it and/or modify * + * it under the terms of the GNU General Public License as published by * + * the Free Software Foundation, either version 3 of the License, or * + * (at your option) any later version. * + * * + * This program is distributed in the hope that it will be useful, * + * but WITHOUT ANY WARRANTY; without even the implied warranty of * + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * + * GNU General Public License for more details. * + * * + * You should have received a copy of the GNU General Public License * + * along with this program. If not, see . * + ***************************************************************************/ + package the.bytecode.club.bytecodeviewer.gui.util; import java.awt.Font; diff --git a/src/main/java/the/bytecode/club/bytecodeviewer/malwarescanner/CodeScanner.java b/src/main/java/the/bytecode/club/bytecodeviewer/malwarescanner/CodeScanner.java index 282b6248..dfa87fcf 100644 --- a/src/main/java/the/bytecode/club/bytecodeviewer/malwarescanner/CodeScanner.java +++ b/src/main/java/the/bytecode/club/bytecodeviewer/malwarescanner/CodeScanner.java @@ -1,9 +1,3 @@ -package the.bytecode.club.bytecodeviewer.malwarescanner; - -import org.objectweb.asm.tree.ClassNode; -import org.objectweb.asm.tree.FieldNode; -import org.objectweb.asm.tree.MethodNode; - /*************************************************************************** * Bytecode Viewer (BCV) - Java & Android Reverse Engineering Suite * * Copyright (C) 2014 Konloch - Konloch.com / BytecodeViewer.com * @@ -22,6 +16,12 @@ import org.objectweb.asm.tree.MethodNode; * along with this program. If not, see . * ***************************************************************************/ +package the.bytecode.club.bytecodeviewer.malwarescanner; + +import org.objectweb.asm.tree.ClassNode; +import org.objectweb.asm.tree.FieldNode; +import org.objectweb.asm.tree.MethodNode; + /** * @author Konloch * @since 6/27/2021 diff --git a/src/main/java/the/bytecode/club/bytecodeviewer/malwarescanner/MalwareCodeScanner.java b/src/main/java/the/bytecode/club/bytecodeviewer/malwarescanner/MalwareCodeScanner.java index 7144cbea..939ecc8e 100644 --- a/src/main/java/the/bytecode/club/bytecodeviewer/malwarescanner/MalwareCodeScanner.java +++ b/src/main/java/the/bytecode/club/bytecodeviewer/malwarescanner/MalwareCodeScanner.java @@ -1,15 +1,3 @@ -package the.bytecode.club.bytecodeviewer.malwarescanner; - -import org.objectweb.asm.tree.AbstractInsnNode; -import org.objectweb.asm.tree.ClassNode; -import org.objectweb.asm.tree.FieldNode; -import org.objectweb.asm.tree.InsnList; -import org.objectweb.asm.tree.LdcInsnNode; -import org.objectweb.asm.tree.MethodNode; -import the.bytecode.club.bytecodeviewer.BytecodeViewer; -import the.bytecode.club.bytecodeviewer.decompilers.bytecode.InstructionPrinter; -import the.bytecode.club.bytecodeviewer.malwarescanner.util.SearchableString; - /*************************************************************************** * Bytecode Viewer (BCV) - Java & Android Reverse Engineering Suite * * Copyright (C) 2014 Konloch - Konloch.com / BytecodeViewer.com * @@ -28,6 +16,18 @@ import the.bytecode.club.bytecodeviewer.malwarescanner.util.SearchableString; * along with this program. If not, see . * ***************************************************************************/ +package the.bytecode.club.bytecodeviewer.malwarescanner; + +import org.objectweb.asm.tree.AbstractInsnNode; +import org.objectweb.asm.tree.ClassNode; +import org.objectweb.asm.tree.FieldNode; +import org.objectweb.asm.tree.InsnList; +import org.objectweb.asm.tree.LdcInsnNode; +import org.objectweb.asm.tree.MethodNode; +import the.bytecode.club.bytecodeviewer.BytecodeViewer; +import the.bytecode.club.bytecodeviewer.decompilers.bytecode.InstructionPrinter; +import the.bytecode.club.bytecodeviewer.malwarescanner.util.SearchableString; + /** * The base class for the malware code scanners * diff --git a/src/main/java/the/bytecode/club/bytecodeviewer/malwarescanner/MalwareScan.java b/src/main/java/the/bytecode/club/bytecodeviewer/malwarescanner/MalwareScan.java index 06fe65de..80c746da 100644 --- a/src/main/java/the/bytecode/club/bytecodeviewer/malwarescanner/MalwareScan.java +++ b/src/main/java/the/bytecode/club/bytecodeviewer/malwarescanner/MalwareScan.java @@ -1,9 +1,3 @@ -package the.bytecode.club.bytecodeviewer.malwarescanner; - -import java.util.List; -import java.util.Set; -import org.objectweb.asm.tree.ClassNode; - /*************************************************************************** * Bytecode Viewer (BCV) - Java & Android Reverse Engineering Suite * * Copyright (C) 2014 Konloch - Konloch.com / BytecodeViewer.com * @@ -22,6 +16,12 @@ import org.objectweb.asm.tree.ClassNode; * along with this program. If not, see . * ***************************************************************************/ +package the.bytecode.club.bytecodeviewer.malwarescanner; + +import java.util.List; +import java.util.Set; +import org.objectweb.asm.tree.ClassNode; + /** * A new malware scan object is created any time the MalicousCodeScanner plugin is ran * diff --git a/src/main/java/the/bytecode/club/bytecodeviewer/malwarescanner/MalwareScanModule.java b/src/main/java/the/bytecode/club/bytecodeviewer/malwarescanner/MalwareScanModule.java index 97d1e703..e30389b7 100644 --- a/src/main/java/the/bytecode/club/bytecodeviewer/malwarescanner/MalwareScanModule.java +++ b/src/main/java/the/bytecode/club/bytecodeviewer/malwarescanner/MalwareScanModule.java @@ -1,15 +1,3 @@ -package the.bytecode.club.bytecodeviewer.malwarescanner; - -import org.apache.commons.text.WordUtils; -import org.objectweb.asm.tree.ClassNode; -import the.bytecode.club.bytecodeviewer.malwarescanner.impl.AWTRobotScanner; -import the.bytecode.club.bytecodeviewer.malwarescanner.impl.JavaIOScanner; -import the.bytecode.club.bytecodeviewer.malwarescanner.impl.JavaNetScanner; -import the.bytecode.club.bytecodeviewer.malwarescanner.impl.JavaRuntimeScanner; -import the.bytecode.club.bytecodeviewer.malwarescanner.impl.NullSecurityManagerScanner; -import the.bytecode.club.bytecodeviewer.malwarescanner.impl.ReflectionScanner; -import the.bytecode.club.bytecodeviewer.malwarescanner.impl.URLScanner; - /*************************************************************************** * Bytecode Viewer (BCV) - Java & Android Reverse Engineering Suite * * Copyright (C) 2014 Konloch - Konloch.com / BytecodeViewer.com * @@ -28,6 +16,18 @@ import the.bytecode.club.bytecodeviewer.malwarescanner.impl.URLScanner; * along with this program. If not, see . * ***************************************************************************/ +package the.bytecode.club.bytecodeviewer.malwarescanner; + +import org.apache.commons.text.WordUtils; +import org.objectweb.asm.tree.ClassNode; +import the.bytecode.club.bytecodeviewer.malwarescanner.impl.AWTRobotScanner; +import the.bytecode.club.bytecodeviewer.malwarescanner.impl.JavaIOScanner; +import the.bytecode.club.bytecodeviewer.malwarescanner.impl.JavaNetScanner; +import the.bytecode.club.bytecodeviewer.malwarescanner.impl.JavaRuntimeScanner; +import the.bytecode.club.bytecodeviewer.malwarescanner.impl.NullSecurityManagerScanner; +import the.bytecode.club.bytecodeviewer.malwarescanner.impl.ReflectionScanner; +import the.bytecode.club.bytecodeviewer.malwarescanner.impl.URLScanner; + /** * All of the installed malware scan modules * diff --git a/src/main/java/the/bytecode/club/bytecodeviewer/malwarescanner/impl/AWTRobotScanner.java b/src/main/java/the/bytecode/club/bytecodeviewer/malwarescanner/impl/AWTRobotScanner.java index 62e33d8b..fa8b162d 100644 --- a/src/main/java/the/bytecode/club/bytecodeviewer/malwarescanner/impl/AWTRobotScanner.java +++ b/src/main/java/the/bytecode/club/bytecodeviewer/malwarescanner/impl/AWTRobotScanner.java @@ -1,16 +1,3 @@ -package the.bytecode.club.bytecodeviewer.malwarescanner.impl; - -import org.objectweb.asm.tree.AbstractInsnNode; -import org.objectweb.asm.tree.ClassNode; -import org.objectweb.asm.tree.FieldNode; -import org.objectweb.asm.tree.MethodInsnNode; -import org.objectweb.asm.tree.MethodNode; -import the.bytecode.club.bytecodeviewer.malwarescanner.MalwareCodeScanner; -import the.bytecode.club.bytecodeviewer.malwarescanner.MalwareScan; -import the.bytecode.club.bytecodeviewer.malwarescanner.util.SearchableString; - -import static the.bytecode.club.bytecodeviewer.Constants.nl; - /*************************************************************************** * Bytecode Viewer (BCV) - Java & Android Reverse Engineering Suite * * Copyright (C) 2014 Konloch - Konloch.com / BytecodeViewer.com * @@ -29,6 +16,19 @@ import static the.bytecode.club.bytecodeviewer.Constants.nl; * along with this program. If not, see . * ***************************************************************************/ +package the.bytecode.club.bytecodeviewer.malwarescanner.impl; + +import org.objectweb.asm.tree.AbstractInsnNode; +import org.objectweb.asm.tree.ClassNode; +import org.objectweb.asm.tree.FieldNode; +import org.objectweb.asm.tree.MethodInsnNode; +import org.objectweb.asm.tree.MethodNode; +import the.bytecode.club.bytecodeviewer.malwarescanner.MalwareCodeScanner; +import the.bytecode.club.bytecodeviewer.malwarescanner.MalwareScan; +import the.bytecode.club.bytecodeviewer.malwarescanner.util.SearchableString; + +import static the.bytecode.club.bytecodeviewer.Constants.nl; + /** * Scans for any trace of java/awt/Robot inside of method instructions and strings * diff --git a/src/main/java/the/bytecode/club/bytecodeviewer/malwarescanner/impl/JavaIOScanner.java b/src/main/java/the/bytecode/club/bytecodeviewer/malwarescanner/impl/JavaIOScanner.java index be4542bf..62aee3d6 100644 --- a/src/main/java/the/bytecode/club/bytecodeviewer/malwarescanner/impl/JavaIOScanner.java +++ b/src/main/java/the/bytecode/club/bytecodeviewer/malwarescanner/impl/JavaIOScanner.java @@ -1,16 +1,3 @@ -package the.bytecode.club.bytecodeviewer.malwarescanner.impl; - -import org.objectweb.asm.tree.AbstractInsnNode; -import org.objectweb.asm.tree.ClassNode; -import org.objectweb.asm.tree.FieldNode; -import org.objectweb.asm.tree.MethodInsnNode; -import org.objectweb.asm.tree.MethodNode; -import the.bytecode.club.bytecodeviewer.malwarescanner.MalwareCodeScanner; -import the.bytecode.club.bytecodeviewer.malwarescanner.MalwareScan; -import the.bytecode.club.bytecodeviewer.malwarescanner.util.SearchableString; - -import static the.bytecode.club.bytecodeviewer.Constants.nl; - /*************************************************************************** * Bytecode Viewer (BCV) - Java & Android Reverse Engineering Suite * * Copyright (C) 2014 Konloch - Konloch.com / BytecodeViewer.com * @@ -29,6 +16,19 @@ import static the.bytecode.club.bytecodeviewer.Constants.nl; * along with this program. If not, see . * ***************************************************************************/ +package the.bytecode.club.bytecodeviewer.malwarescanner.impl; + +import org.objectweb.asm.tree.AbstractInsnNode; +import org.objectweb.asm.tree.ClassNode; +import org.objectweb.asm.tree.FieldNode; +import org.objectweb.asm.tree.MethodInsnNode; +import org.objectweb.asm.tree.MethodNode; +import the.bytecode.club.bytecodeviewer.malwarescanner.MalwareCodeScanner; +import the.bytecode.club.bytecodeviewer.malwarescanner.MalwareScan; +import the.bytecode.club.bytecodeviewer.malwarescanner.util.SearchableString; + +import static the.bytecode.club.bytecodeviewer.Constants.nl; + /** * @author Konloch * @since 6/27/2021 diff --git a/src/main/java/the/bytecode/club/bytecodeviewer/malwarescanner/impl/JavaNetScanner.java b/src/main/java/the/bytecode/club/bytecodeviewer/malwarescanner/impl/JavaNetScanner.java index c289a865..de3401cc 100644 --- a/src/main/java/the/bytecode/club/bytecodeviewer/malwarescanner/impl/JavaNetScanner.java +++ b/src/main/java/the/bytecode/club/bytecodeviewer/malwarescanner/impl/JavaNetScanner.java @@ -1,16 +1,3 @@ -package the.bytecode.club.bytecodeviewer.malwarescanner.impl; - -import org.objectweb.asm.tree.AbstractInsnNode; -import org.objectweb.asm.tree.ClassNode; -import org.objectweb.asm.tree.FieldNode; -import org.objectweb.asm.tree.MethodInsnNode; -import org.objectweb.asm.tree.MethodNode; -import the.bytecode.club.bytecodeviewer.malwarescanner.MalwareCodeScanner; -import the.bytecode.club.bytecodeviewer.malwarescanner.MalwareScan; -import the.bytecode.club.bytecodeviewer.malwarescanner.util.SearchableString; - -import static the.bytecode.club.bytecodeviewer.Constants.nl; - /*************************************************************************** * Bytecode Viewer (BCV) - Java & Android Reverse Engineering Suite * * Copyright (C) 2014 Konloch - Konloch.com / BytecodeViewer.com * @@ -29,6 +16,19 @@ import static the.bytecode.club.bytecodeviewer.Constants.nl; * along with this program. If not, see . * ***************************************************************************/ +package the.bytecode.club.bytecodeviewer.malwarescanner.impl; + +import org.objectweb.asm.tree.AbstractInsnNode; +import org.objectweb.asm.tree.ClassNode; +import org.objectweb.asm.tree.FieldNode; +import org.objectweb.asm.tree.MethodInsnNode; +import org.objectweb.asm.tree.MethodNode; +import the.bytecode.club.bytecodeviewer.malwarescanner.MalwareCodeScanner; +import the.bytecode.club.bytecodeviewer.malwarescanner.MalwareScan; +import the.bytecode.club.bytecodeviewer.malwarescanner.util.SearchableString; + +import static the.bytecode.club.bytecodeviewer.Constants.nl; + /** * @author Konloch * @author WaterWolf diff --git a/src/main/java/the/bytecode/club/bytecodeviewer/malwarescanner/impl/JavaRuntimeScanner.java b/src/main/java/the/bytecode/club/bytecodeviewer/malwarescanner/impl/JavaRuntimeScanner.java index 3073de3b..ca566618 100644 --- a/src/main/java/the/bytecode/club/bytecodeviewer/malwarescanner/impl/JavaRuntimeScanner.java +++ b/src/main/java/the/bytecode/club/bytecodeviewer/malwarescanner/impl/JavaRuntimeScanner.java @@ -1,16 +1,3 @@ -package the.bytecode.club.bytecodeviewer.malwarescanner.impl; - -import org.objectweb.asm.tree.AbstractInsnNode; -import org.objectweb.asm.tree.ClassNode; -import org.objectweb.asm.tree.FieldNode; -import org.objectweb.asm.tree.MethodInsnNode; -import org.objectweb.asm.tree.MethodNode; -import the.bytecode.club.bytecodeviewer.malwarescanner.MalwareCodeScanner; -import the.bytecode.club.bytecodeviewer.malwarescanner.MalwareScan; -import the.bytecode.club.bytecodeviewer.malwarescanner.util.SearchableString; - -import static the.bytecode.club.bytecodeviewer.Constants.nl; - /*************************************************************************** * Bytecode Viewer (BCV) - Java & Android Reverse Engineering Suite * * Copyright (C) 2014 Konloch - Konloch.com / BytecodeViewer.com * @@ -29,6 +16,19 @@ import static the.bytecode.club.bytecodeviewer.Constants.nl; * along with this program. If not, see . * ***************************************************************************/ +package the.bytecode.club.bytecodeviewer.malwarescanner.impl; + +import org.objectweb.asm.tree.AbstractInsnNode; +import org.objectweb.asm.tree.ClassNode; +import org.objectweb.asm.tree.FieldNode; +import org.objectweb.asm.tree.MethodInsnNode; +import org.objectweb.asm.tree.MethodNode; +import the.bytecode.club.bytecodeviewer.malwarescanner.MalwareCodeScanner; +import the.bytecode.club.bytecodeviewer.malwarescanner.MalwareScan; +import the.bytecode.club.bytecodeviewer.malwarescanner.util.SearchableString; + +import static the.bytecode.club.bytecodeviewer.Constants.nl; + /** * Scans for any trace of java/lang/Runtime inside of method instructions and strings * diff --git a/src/main/java/the/bytecode/club/bytecodeviewer/malwarescanner/impl/NullSecurityManagerScanner.java b/src/main/java/the/bytecode/club/bytecodeviewer/malwarescanner/impl/NullSecurityManagerScanner.java index 6fae4dce..7e9b6f1d 100644 --- a/src/main/java/the/bytecode/club/bytecodeviewer/malwarescanner/impl/NullSecurityManagerScanner.java +++ b/src/main/java/the/bytecode/club/bytecodeviewer/malwarescanner/impl/NullSecurityManagerScanner.java @@ -1,18 +1,3 @@ -package the.bytecode.club.bytecodeviewer.malwarescanner.impl; - -import com.strobel.assembler.ir.OpCode; -import org.objectweb.asm.Opcodes; -import org.objectweb.asm.tree.AbstractInsnNode; -import org.objectweb.asm.tree.ClassNode; -import org.objectweb.asm.tree.FieldNode; -import org.objectweb.asm.tree.MethodInsnNode; -import org.objectweb.asm.tree.MethodNode; -import the.bytecode.club.bytecodeviewer.malwarescanner.MalwareCodeScanner; -import the.bytecode.club.bytecodeviewer.malwarescanner.MalwareScan; -import the.bytecode.club.bytecodeviewer.malwarescanner.util.SearchableString; - -import static the.bytecode.club.bytecodeviewer.Constants.nl; - /*************************************************************************** * Bytecode Viewer (BCV) - Java & Android Reverse Engineering Suite * * Copyright (C) 2014 Konloch - Konloch.com / BytecodeViewer.com * @@ -31,6 +16,21 @@ import static the.bytecode.club.bytecodeviewer.Constants.nl; * along with this program. If not, see . * ***************************************************************************/ +package the.bytecode.club.bytecodeviewer.malwarescanner.impl; + +import com.strobel.assembler.ir.OpCode; +import org.objectweb.asm.Opcodes; +import org.objectweb.asm.tree.AbstractInsnNode; +import org.objectweb.asm.tree.ClassNode; +import org.objectweb.asm.tree.FieldNode; +import org.objectweb.asm.tree.MethodInsnNode; +import org.objectweb.asm.tree.MethodNode; +import the.bytecode.club.bytecodeviewer.malwarescanner.MalwareCodeScanner; +import the.bytecode.club.bytecodeviewer.malwarescanner.MalwareScan; +import the.bytecode.club.bytecodeviewer.malwarescanner.util.SearchableString; + +import static the.bytecode.club.bytecodeviewer.Constants.nl; + /** * Checks for the security manager getting set to null * diff --git a/src/main/java/the/bytecode/club/bytecodeviewer/malwarescanner/impl/ReflectionScanner.java b/src/main/java/the/bytecode/club/bytecodeviewer/malwarescanner/impl/ReflectionScanner.java index e5e1aac5..aa47beee 100644 --- a/src/main/java/the/bytecode/club/bytecodeviewer/malwarescanner/impl/ReflectionScanner.java +++ b/src/main/java/the/bytecode/club/bytecodeviewer/malwarescanner/impl/ReflectionScanner.java @@ -1,16 +1,3 @@ -package the.bytecode.club.bytecodeviewer.malwarescanner.impl; - -import org.objectweb.asm.tree.AbstractInsnNode; -import org.objectweb.asm.tree.ClassNode; -import org.objectweb.asm.tree.FieldNode; -import org.objectweb.asm.tree.MethodInsnNode; -import org.objectweb.asm.tree.MethodNode; -import the.bytecode.club.bytecodeviewer.malwarescanner.MalwareCodeScanner; -import the.bytecode.club.bytecodeviewer.malwarescanner.MalwareScan; -import the.bytecode.club.bytecodeviewer.malwarescanner.util.SearchableString; - -import static the.bytecode.club.bytecodeviewer.Constants.nl; - /*************************************************************************** * Bytecode Viewer (BCV) - Java & Android Reverse Engineering Suite * * Copyright (C) 2014 Konloch - Konloch.com / BytecodeViewer.com * @@ -29,6 +16,19 @@ import static the.bytecode.club.bytecodeviewer.Constants.nl; * along with this program. If not, see . * ***************************************************************************/ +package the.bytecode.club.bytecodeviewer.malwarescanner.impl; + +import org.objectweb.asm.tree.AbstractInsnNode; +import org.objectweb.asm.tree.ClassNode; +import org.objectweb.asm.tree.FieldNode; +import org.objectweb.asm.tree.MethodInsnNode; +import org.objectweb.asm.tree.MethodNode; +import the.bytecode.club.bytecodeviewer.malwarescanner.MalwareCodeScanner; +import the.bytecode.club.bytecodeviewer.malwarescanner.MalwareScan; +import the.bytecode.club.bytecodeviewer.malwarescanner.util.SearchableString; + +import static the.bytecode.club.bytecodeviewer.Constants.nl; + /** * Scans for method instructions containing java/lang/reflect * diff --git a/src/main/java/the/bytecode/club/bytecodeviewer/malwarescanner/impl/URLScanner.java b/src/main/java/the/bytecode/club/bytecodeviewer/malwarescanner/impl/URLScanner.java index 955de193..afaecd0d 100644 --- a/src/main/java/the/bytecode/club/bytecodeviewer/malwarescanner/impl/URLScanner.java +++ b/src/main/java/the/bytecode/club/bytecodeviewer/malwarescanner/impl/URLScanner.java @@ -1,16 +1,3 @@ -package the.bytecode.club.bytecodeviewer.malwarescanner.impl; - -import java.util.regex.Pattern; -import org.objectweb.asm.tree.AbstractInsnNode; -import org.objectweb.asm.tree.ClassNode; -import org.objectweb.asm.tree.FieldNode; -import org.objectweb.asm.tree.MethodNode; -import the.bytecode.club.bytecodeviewer.malwarescanner.MalwareCodeScanner; -import the.bytecode.club.bytecodeviewer.malwarescanner.MalwareScan; -import the.bytecode.club.bytecodeviewer.malwarescanner.util.SearchableString; - -import static the.bytecode.club.bytecodeviewer.Constants.nl; - /*************************************************************************** * Bytecode Viewer (BCV) - Java & Android Reverse Engineering Suite * * Copyright (C) 2014 Konloch - Konloch.com / BytecodeViewer.com * @@ -29,6 +16,19 @@ import static the.bytecode.club.bytecodeviewer.Constants.nl; * along with this program. If not, see . * ***************************************************************************/ +package the.bytecode.club.bytecodeviewer.malwarescanner.impl; + +import java.util.regex.Pattern; +import org.objectweb.asm.tree.AbstractInsnNode; +import org.objectweb.asm.tree.ClassNode; +import org.objectweb.asm.tree.FieldNode; +import org.objectweb.asm.tree.MethodNode; +import the.bytecode.club.bytecodeviewer.malwarescanner.MalwareCodeScanner; +import the.bytecode.club.bytecodeviewer.malwarescanner.MalwareScan; +import the.bytecode.club.bytecodeviewer.malwarescanner.util.SearchableString; + +import static the.bytecode.club.bytecodeviewer.Constants.nl; + /** * Scans strings for common URL patterns: * Any string containing www diff --git a/src/main/java/the/bytecode/club/bytecodeviewer/malwarescanner/util/MaliciousCodeOptions.java b/src/main/java/the/bytecode/club/bytecodeviewer/malwarescanner/util/MaliciousCodeOptions.java index 38ae86b8..a79808ae 100644 --- a/src/main/java/the/bytecode/club/bytecodeviewer/malwarescanner/util/MaliciousCodeOptions.java +++ b/src/main/java/the/bytecode/club/bytecodeviewer/malwarescanner/util/MaliciousCodeOptions.java @@ -1,8 +1,3 @@ -package the.bytecode.club.bytecodeviewer.malwarescanner.util; - -import javax.swing.JCheckBox; -import the.bytecode.club.bytecodeviewer.malwarescanner.MalwareScanModule; - /*************************************************************************** * Bytecode Viewer (BCV) - Java & Android Reverse Engineering Suite * * Copyright (C) 2014 Konloch - Konloch.com / BytecodeViewer.com * @@ -21,6 +16,11 @@ import the.bytecode.club.bytecodeviewer.malwarescanner.MalwareScanModule; * along with this program. If not, see . * ***************************************************************************/ +package the.bytecode.club.bytecodeviewer.malwarescanner.util; + +import javax.swing.JCheckBox; +import the.bytecode.club.bytecodeviewer.malwarescanner.MalwareScanModule; + /** * @author Konloch * @since 6/27/2021 diff --git a/src/main/java/the/bytecode/club/bytecodeviewer/malwarescanner/util/SearchableString.java b/src/main/java/the/bytecode/club/bytecodeviewer/malwarescanner/util/SearchableString.java index 7bca8afe..bdee03de 100644 --- a/src/main/java/the/bytecode/club/bytecodeviewer/malwarescanner/util/SearchableString.java +++ b/src/main/java/the/bytecode/club/bytecodeviewer/malwarescanner/util/SearchableString.java @@ -1,5 +1,3 @@ -package the.bytecode.club.bytecodeviewer.malwarescanner.util; - /*************************************************************************** * Bytecode Viewer (BCV) - Java & Android Reverse Engineering Suite * * Copyright (C) 2014 Konloch - Konloch.com / BytecodeViewer.com * @@ -18,6 +16,8 @@ package the.bytecode.club.bytecodeviewer.malwarescanner.util; * along with this program. If not, see . * ***************************************************************************/ +package the.bytecode.club.bytecodeviewer.malwarescanner.util; + /** * @author Konloch * @since 6/27/2021 diff --git a/src/main/java/the/bytecode/club/bytecodeviewer/obfuscators/JavaObfuscator.java b/src/main/java/the/bytecode/club/bytecodeviewer/obfuscators/JavaObfuscator.java index a7f615bf..2967d6ab 100644 --- a/src/main/java/the/bytecode/club/bytecodeviewer/obfuscators/JavaObfuscator.java +++ b/src/main/java/the/bytecode/club/bytecodeviewer/obfuscators/JavaObfuscator.java @@ -1,11 +1,3 @@ -package the.bytecode.club.bytecodeviewer.obfuscators; - -import java.util.ArrayList; -import java.util.List; -import the.bytecode.club.bytecodeviewer.BytecodeViewer; -import the.bytecode.club.bytecodeviewer.Configuration; -import the.bytecode.club.bytecodeviewer.util.MiscUtils; - /*************************************************************************** * Bytecode Viewer (BCV) - Java & Android Reverse Engineering Suite * * Copyright (C) 2014 Konloch - Konloch.com / BytecodeViewer.com * @@ -24,6 +16,14 @@ import the.bytecode.club.bytecodeviewer.util.MiscUtils; * along with this program. If not, see . * ***************************************************************************/ +package the.bytecode.club.bytecodeviewer.obfuscators; + +import java.util.ArrayList; +import java.util.List; +import the.bytecode.club.bytecodeviewer.BytecodeViewer; +import the.bytecode.club.bytecodeviewer.Configuration; +import the.bytecode.club.bytecodeviewer.util.MiscUtils; + /** * An unfinished obfuscator. * diff --git a/src/main/java/the/bytecode/club/bytecodeviewer/obfuscators/RenameClasses.java b/src/main/java/the/bytecode/club/bytecodeviewer/obfuscators/RenameClasses.java index 41c4d42b..b8529ae4 100644 --- a/src/main/java/the/bytecode/club/bytecodeviewer/obfuscators/RenameClasses.java +++ b/src/main/java/the/bytecode/club/bytecodeviewer/obfuscators/RenameClasses.java @@ -1,9 +1,3 @@ -package the.bytecode.club.bytecodeviewer.obfuscators; - -import org.objectweb.asm.tree.ClassNode; -import the.bytecode.club.bytecodeviewer.BytecodeViewer; -import the.bytecode.club.bytecodeviewer.api.ASMResourceUtil; - /*************************************************************************** * Bytecode Viewer (BCV) - Java & Android Reverse Engineering Suite * * Copyright (C) 2014 Konloch - Konloch.com / BytecodeViewer.com * @@ -22,6 +16,12 @@ import the.bytecode.club.bytecodeviewer.api.ASMResourceUtil; * along with this program. If not, see . * ***************************************************************************/ +package the.bytecode.club.bytecodeviewer.obfuscators; + +import org.objectweb.asm.tree.ClassNode; +import the.bytecode.club.bytecodeviewer.BytecodeViewer; +import the.bytecode.club.bytecodeviewer.api.ASMResourceUtil; + /** * Rename classes. * diff --git a/src/main/java/the/bytecode/club/bytecodeviewer/obfuscators/RenameFields.java b/src/main/java/the/bytecode/club/bytecodeviewer/obfuscators/RenameFields.java index e599dd6c..53bee01a 100644 --- a/src/main/java/the/bytecode/club/bytecodeviewer/obfuscators/RenameFields.java +++ b/src/main/java/the/bytecode/club/bytecodeviewer/obfuscators/RenameFields.java @@ -1,10 +1,3 @@ -package the.bytecode.club.bytecodeviewer.obfuscators; - -import org.objectweb.asm.tree.ClassNode; -import org.objectweb.asm.tree.FieldNode; -import the.bytecode.club.bytecodeviewer.BytecodeViewer; -import the.bytecode.club.bytecodeviewer.api.ASMResourceUtil; - /*************************************************************************** * Bytecode Viewer (BCV) - Java & Android Reverse Engineering Suite * * Copyright (C) 2014 Konloch - Konloch.com / BytecodeViewer.com * @@ -23,6 +16,13 @@ import the.bytecode.club.bytecodeviewer.api.ASMResourceUtil; * along with this program. If not, see . * ***************************************************************************/ +package the.bytecode.club.bytecodeviewer.obfuscators; + +import org.objectweb.asm.tree.ClassNode; +import org.objectweb.asm.tree.FieldNode; +import the.bytecode.club.bytecodeviewer.BytecodeViewer; +import the.bytecode.club.bytecodeviewer.api.ASMResourceUtil; + /** * Rename fields. * diff --git a/src/main/java/the/bytecode/club/bytecodeviewer/obfuscators/RenameMethods.java b/src/main/java/the/bytecode/club/bytecodeviewer/obfuscators/RenameMethods.java index 8583d798..fc503f27 100644 --- a/src/main/java/the/bytecode/club/bytecodeviewer/obfuscators/RenameMethods.java +++ b/src/main/java/the/bytecode/club/bytecodeviewer/obfuscators/RenameMethods.java @@ -1,11 +1,3 @@ -package the.bytecode.club.bytecodeviewer.obfuscators; - -import org.objectweb.asm.Opcodes; -import org.objectweb.asm.tree.ClassNode; -import org.objectweb.asm.tree.MethodNode; -import the.bytecode.club.bytecodeviewer.BytecodeViewer; -import the.bytecode.club.bytecodeviewer.api.ASMResourceUtil; - /*************************************************************************** * Bytecode Viewer (BCV) - Java & Android Reverse Engineering Suite * * Copyright (C) 2014 Konloch - Konloch.com / BytecodeViewer.com * @@ -24,6 +16,14 @@ import the.bytecode.club.bytecodeviewer.api.ASMResourceUtil; * along with this program. If not, see . * ***************************************************************************/ +package the.bytecode.club.bytecodeviewer.obfuscators; + +import org.objectweb.asm.Opcodes; +import org.objectweb.asm.tree.ClassNode; +import org.objectweb.asm.tree.MethodNode; +import the.bytecode.club.bytecodeviewer.BytecodeViewer; +import the.bytecode.club.bytecodeviewer.api.ASMResourceUtil; + /** * Rename methods. * diff --git a/src/main/java/the/bytecode/club/bytecodeviewer/obfuscators/mapping/HookMap.java b/src/main/java/the/bytecode/club/bytecodeviewer/obfuscators/mapping/HookMap.java index 2712a152..5331e6cc 100644 --- a/src/main/java/the/bytecode/club/bytecodeviewer/obfuscators/mapping/HookMap.java +++ b/src/main/java/the/bytecode/club/bytecodeviewer/obfuscators/mapping/HookMap.java @@ -1,11 +1,3 @@ -package the.bytecode.club.bytecodeviewer.obfuscators.mapping; - -import java.util.ArrayList; -import java.util.List; -import the.bytecode.club.bytecodeviewer.obfuscators.mapping.data.FieldMappingData; -import the.bytecode.club.bytecodeviewer.obfuscators.mapping.data.MappingData; -import the.bytecode.club.bytecodeviewer.obfuscators.mapping.data.MethodMappingData; - /*************************************************************************** * Bytecode Viewer (BCV) - Java & Android Reverse Engineering Suite * * Copyright (C) 2014 Konloch - Konloch.com / BytecodeViewer.com * @@ -24,6 +16,14 @@ import the.bytecode.club.bytecodeviewer.obfuscators.mapping.data.MethodMappingDa * along with this program. If not, see . * ***************************************************************************/ +package the.bytecode.club.bytecodeviewer.obfuscators.mapping; + +import java.util.ArrayList; +import java.util.List; +import the.bytecode.club.bytecodeviewer.obfuscators.mapping.data.FieldMappingData; +import the.bytecode.club.bytecodeviewer.obfuscators.mapping.data.MappingData; +import the.bytecode.club.bytecodeviewer.obfuscators.mapping.data.MethodMappingData; + public class HookMap { protected List classes; diff --git a/src/main/java/the/bytecode/club/bytecodeviewer/obfuscators/mapping/RefactorMapper.java b/src/main/java/the/bytecode/club/bytecodeviewer/obfuscators/mapping/RefactorMapper.java index 53986ad5..2e7b9dde 100644 --- a/src/main/java/the/bytecode/club/bytecodeviewer/obfuscators/mapping/RefactorMapper.java +++ b/src/main/java/the/bytecode/club/bytecodeviewer/obfuscators/mapping/RefactorMapper.java @@ -1,13 +1,3 @@ -package the.bytecode.club.bytecodeviewer.obfuscators.mapping; - -import java.util.ArrayList; -import java.util.HashMap; -import java.util.List; -import java.util.Map; -import the.bytecode.club.bytecodeviewer.obfuscators.mapping.data.FieldMappingData; -import the.bytecode.club.bytecodeviewer.obfuscators.mapping.data.MappingData; -import the.bytecode.club.bytecodeviewer.obfuscators.mapping.data.MethodMappingData; - /*************************************************************************** * Bytecode Viewer (BCV) - Java & Android Reverse Engineering Suite * * Copyright (C) 2014 Konloch - Konloch.com / BytecodeViewer.com * @@ -26,6 +16,16 @@ import the.bytecode.club.bytecodeviewer.obfuscators.mapping.data.MethodMappingDa * along with this program. If not, see . * ***************************************************************************/ +package the.bytecode.club.bytecodeviewer.obfuscators.mapping; + +import java.util.ArrayList; +import java.util.HashMap; +import java.util.List; +import java.util.Map; +import the.bytecode.club.bytecodeviewer.obfuscators.mapping.data.FieldMappingData; +import the.bytecode.club.bytecodeviewer.obfuscators.mapping.data.MappingData; +import the.bytecode.club.bytecodeviewer.obfuscators.mapping.data.MethodMappingData; + /** * @author sc4re */ diff --git a/src/main/java/the/bytecode/club/bytecodeviewer/obfuscators/mapping/Refactorer.java b/src/main/java/the/bytecode/club/bytecodeviewer/obfuscators/mapping/Refactorer.java index ef6b28b5..c5b5902e 100644 --- a/src/main/java/the/bytecode/club/bytecodeviewer/obfuscators/mapping/Refactorer.java +++ b/src/main/java/the/bytecode/club/bytecodeviewer/obfuscators/mapping/Refactorer.java @@ -1,10 +1,3 @@ -package the.bytecode.club.bytecodeviewer.obfuscators.mapping; - -import org.objectweb.asm.ClassReader; -import org.objectweb.asm.ClassWriter; -import org.objectweb.asm.tree.ClassNode; -import the.bytecode.club.bytecodeviewer.BytecodeViewer; - /*************************************************************************** * Bytecode Viewer (BCV) - Java & Android Reverse Engineering Suite * * Copyright (C) 2014 Konloch - Konloch.com / BytecodeViewer.com * @@ -23,6 +16,13 @@ import the.bytecode.club.bytecodeviewer.BytecodeViewer; * along with this program. If not, see . * ***************************************************************************/ +package the.bytecode.club.bytecodeviewer.obfuscators.mapping; + +import org.objectweb.asm.ClassReader; +import org.objectweb.asm.ClassWriter; +import org.objectweb.asm.tree.ClassNode; +import the.bytecode.club.bytecodeviewer.BytecodeViewer; + /** * @author sc4re */ diff --git a/src/main/java/the/bytecode/club/bytecodeviewer/obfuscators/mapping/RemappingClassAdapter.java b/src/main/java/the/bytecode/club/bytecodeviewer/obfuscators/mapping/RemappingClassAdapter.java index 9027a6da..21264489 100644 --- a/src/main/java/the/bytecode/club/bytecodeviewer/obfuscators/mapping/RemappingClassAdapter.java +++ b/src/main/java/the/bytecode/club/bytecodeviewer/obfuscators/mapping/RemappingClassAdapter.java @@ -1,5 +1,3 @@ -package the.bytecode.club.bytecodeviewer.obfuscators.mapping; - /*** * ASM: a very small and fast Java bytecode manipulation framework * Copyright (c) 2000-2011 INRIA, France Telecom @@ -30,6 +28,8 @@ package the.bytecode.club.bytecodeviewer.obfuscators.mapping; * THE POSSIBILITY OF SUCH DAMAGE. */ +package the.bytecode.club.bytecodeviewer.obfuscators.mapping; + import org.objectweb.asm.AnnotationVisitor; import org.objectweb.asm.ClassVisitor; import org.objectweb.asm.FieldVisitor; diff --git a/src/main/java/the/bytecode/club/bytecodeviewer/obfuscators/mapping/data/FieldMappingData.java b/src/main/java/the/bytecode/club/bytecodeviewer/obfuscators/mapping/data/FieldMappingData.java index 9308f7c0..bc744eae 100644 --- a/src/main/java/the/bytecode/club/bytecodeviewer/obfuscators/mapping/data/FieldMappingData.java +++ b/src/main/java/the/bytecode/club/bytecodeviewer/obfuscators/mapping/data/FieldMappingData.java @@ -1,5 +1,3 @@ -package the.bytecode.club.bytecodeviewer.obfuscators.mapping.data; - /*************************************************************************** * Bytecode Viewer (BCV) - Java & Android Reverse Engineering Suite * * Copyright (C) 2014 Konloch - Konloch.com / BytecodeViewer.com * @@ -18,6 +16,8 @@ package the.bytecode.club.bytecodeviewer.obfuscators.mapping.data; * along with this program. If not, see . * ***************************************************************************/ +package the.bytecode.club.bytecodeviewer.obfuscators.mapping.data; + public class FieldMappingData { protected String fieldOwner; diff --git a/src/main/java/the/bytecode/club/bytecodeviewer/obfuscators/mapping/data/MappingData.java b/src/main/java/the/bytecode/club/bytecodeviewer/obfuscators/mapping/data/MappingData.java index e69965f3..e299720c 100644 --- a/src/main/java/the/bytecode/club/bytecodeviewer/obfuscators/mapping/data/MappingData.java +++ b/src/main/java/the/bytecode/club/bytecodeviewer/obfuscators/mapping/data/MappingData.java @@ -1,5 +1,3 @@ -package the.bytecode.club.bytecodeviewer.obfuscators.mapping.data; - /*************************************************************************** * Bytecode Viewer (BCV) - Java & Android Reverse Engineering Suite * * Copyright (C) 2014 Konloch - Konloch.com / BytecodeViewer.com * @@ -18,6 +16,8 @@ package the.bytecode.club.bytecodeviewer.obfuscators.mapping.data; * along with this program. If not, see . * ***************************************************************************/ +package the.bytecode.club.bytecodeviewer.obfuscators.mapping.data; + public class MappingData { protected String obfuscatedName; diff --git a/src/main/java/the/bytecode/club/bytecodeviewer/obfuscators/mapping/data/MethodMappingData.java b/src/main/java/the/bytecode/club/bytecodeviewer/obfuscators/mapping/data/MethodMappingData.java index ffc2f2d4..a01e6991 100644 --- a/src/main/java/the/bytecode/club/bytecodeviewer/obfuscators/mapping/data/MethodMappingData.java +++ b/src/main/java/the/bytecode/club/bytecodeviewer/obfuscators/mapping/data/MethodMappingData.java @@ -1,5 +1,3 @@ -package the.bytecode.club.bytecodeviewer.obfuscators.mapping.data; - /*************************************************************************** * Bytecode Viewer (BCV) - Java & Android Reverse Engineering Suite * * Copyright (C) 2014 Konloch - Konloch.com / BytecodeViewer.com * @@ -18,6 +16,8 @@ package the.bytecode.club.bytecodeviewer.obfuscators.mapping.data; * along with this program. If not, see . * ***************************************************************************/ +package the.bytecode.club.bytecodeviewer.obfuscators.mapping.data; + public class MethodMappingData { protected String methodOwner; diff --git a/src/main/java/the/bytecode/club/bytecodeviewer/obfuscators/rename/RenameClasses.java b/src/main/java/the/bytecode/club/bytecodeviewer/obfuscators/rename/RenameClasses.java index 1ca1e838..a05e3d70 100644 --- a/src/main/java/the/bytecode/club/bytecodeviewer/obfuscators/rename/RenameClasses.java +++ b/src/main/java/the/bytecode/club/bytecodeviewer/obfuscators/rename/RenameClasses.java @@ -1,13 +1,3 @@ -package the.bytecode.club.bytecodeviewer.obfuscators.rename; - -import org.objectweb.asm.Opcodes; -import org.objectweb.asm.tree.ClassNode; -import org.objectweb.asm.tree.MethodNode; -import the.bytecode.club.bytecodeviewer.BytecodeViewer; -import the.bytecode.club.bytecodeviewer.Configuration; -import the.bytecode.club.bytecodeviewer.obfuscators.JavaObfuscator; -import the.bytecode.club.bytecodeviewer.obfuscators.mapping.data.MappingData; - /*************************************************************************** * Bytecode Viewer (BCV) - Java & Android Reverse Engineering Suite * * Copyright (C) 2014 Konloch - Konloch.com / BytecodeViewer.com * @@ -26,6 +16,16 @@ import the.bytecode.club.bytecodeviewer.obfuscators.mapping.data.MappingData; * along with this program. If not, see . * ***************************************************************************/ +package the.bytecode.club.bytecodeviewer.obfuscators.rename; + +import org.objectweb.asm.Opcodes; +import org.objectweb.asm.tree.ClassNode; +import org.objectweb.asm.tree.MethodNode; +import the.bytecode.club.bytecodeviewer.BytecodeViewer; +import the.bytecode.club.bytecodeviewer.Configuration; +import the.bytecode.club.bytecodeviewer.obfuscators.JavaObfuscator; +import the.bytecode.club.bytecodeviewer.obfuscators.mapping.data.MappingData; + /** * Rename classes. * diff --git a/src/main/java/the/bytecode/club/bytecodeviewer/obfuscators/rename/RenameFields.java b/src/main/java/the/bytecode/club/bytecodeviewer/obfuscators/rename/RenameFields.java index e4ac55e8..5876c8a3 100644 --- a/src/main/java/the/bytecode/club/bytecodeviewer/obfuscators/rename/RenameFields.java +++ b/src/main/java/the/bytecode/club/bytecodeviewer/obfuscators/rename/RenameFields.java @@ -1,13 +1,3 @@ -package the.bytecode.club.bytecodeviewer.obfuscators.rename; - -import org.objectweb.asm.tree.ClassNode; -import org.objectweb.asm.tree.FieldNode; -import the.bytecode.club.bytecodeviewer.BytecodeViewer; -import the.bytecode.club.bytecodeviewer.Configuration; -import the.bytecode.club.bytecodeviewer.obfuscators.JavaObfuscator; -import the.bytecode.club.bytecodeviewer.obfuscators.mapping.data.FieldMappingData; -import the.bytecode.club.bytecodeviewer.obfuscators.mapping.data.MappingData; - /*************************************************************************** * Bytecode Viewer (BCV) - Java & Android Reverse Engineering Suite * * Copyright (C) 2014 Konloch - Konloch.com / BytecodeViewer.com * @@ -26,6 +16,16 @@ import the.bytecode.club.bytecodeviewer.obfuscators.mapping.data.MappingData; * along with this program. If not, see . * ***************************************************************************/ +package the.bytecode.club.bytecodeviewer.obfuscators.rename; + +import org.objectweb.asm.tree.ClassNode; +import org.objectweb.asm.tree.FieldNode; +import the.bytecode.club.bytecodeviewer.BytecodeViewer; +import the.bytecode.club.bytecodeviewer.Configuration; +import the.bytecode.club.bytecodeviewer.obfuscators.JavaObfuscator; +import the.bytecode.club.bytecodeviewer.obfuscators.mapping.data.FieldMappingData; +import the.bytecode.club.bytecodeviewer.obfuscators.mapping.data.MappingData; + /** * Rename fields. * diff --git a/src/main/java/the/bytecode/club/bytecodeviewer/obfuscators/rename/RenameMethods.java b/src/main/java/the/bytecode/club/bytecodeviewer/obfuscators/rename/RenameMethods.java index aeea2fa7..50c77804 100644 --- a/src/main/java/the/bytecode/club/bytecodeviewer/obfuscators/rename/RenameMethods.java +++ b/src/main/java/the/bytecode/club/bytecodeviewer/obfuscators/rename/RenameMethods.java @@ -1,14 +1,3 @@ -package the.bytecode.club.bytecodeviewer.obfuscators.rename; - -import org.objectweb.asm.Opcodes; -import org.objectweb.asm.tree.ClassNode; -import org.objectweb.asm.tree.MethodNode; -import the.bytecode.club.bytecodeviewer.BytecodeViewer; -import the.bytecode.club.bytecodeviewer.Configuration; -import the.bytecode.club.bytecodeviewer.obfuscators.JavaObfuscator; -import the.bytecode.club.bytecodeviewer.obfuscators.mapping.data.MappingData; -import the.bytecode.club.bytecodeviewer.obfuscators.mapping.data.MethodMappingData; - /*************************************************************************** * Bytecode Viewer (BCV) - Java & Android Reverse Engineering Suite * * Copyright (C) 2014 Konloch - Konloch.com / BytecodeViewer.com * @@ -27,6 +16,17 @@ import the.bytecode.club.bytecodeviewer.obfuscators.mapping.data.MethodMappingDa * along with this program. If not, see . * ***************************************************************************/ +package the.bytecode.club.bytecodeviewer.obfuscators.rename; + +import org.objectweb.asm.Opcodes; +import org.objectweb.asm.tree.ClassNode; +import org.objectweb.asm.tree.MethodNode; +import the.bytecode.club.bytecodeviewer.BytecodeViewer; +import the.bytecode.club.bytecodeviewer.Configuration; +import the.bytecode.club.bytecodeviewer.obfuscators.JavaObfuscator; +import the.bytecode.club.bytecodeviewer.obfuscators.mapping.data.MappingData; +import the.bytecode.club.bytecodeviewer.obfuscators.mapping.data.MethodMappingData; + /** * Rename methods. * diff --git a/src/main/java/the/bytecode/club/bytecodeviewer/plugin/PluginLaunchStrategy.java b/src/main/java/the/bytecode/club/bytecodeviewer/plugin/PluginLaunchStrategy.java index e015697e..6b4ac212 100644 --- a/src/main/java/the/bytecode/club/bytecodeviewer/plugin/PluginLaunchStrategy.java +++ b/src/main/java/the/bytecode/club/bytecodeviewer/plugin/PluginLaunchStrategy.java @@ -1,8 +1,3 @@ -package the.bytecode.club.bytecodeviewer.plugin; - -import java.io.File; -import the.bytecode.club.bytecodeviewer.api.Plugin; - /*************************************************************************** * Bytecode Viewer (BCV) - Java & Android Reverse Engineering Suite * * Copyright (C) 2014 Konloch - Konloch.com / BytecodeViewer.com * @@ -21,6 +16,11 @@ import the.bytecode.club.bytecodeviewer.api.Plugin; * along with this program. If not, see . * ***************************************************************************/ +package the.bytecode.club.bytecodeviewer.plugin; + +import java.io.File; +import the.bytecode.club.bytecodeviewer.api.Plugin; + /** * @author Bibl (don't ban me pls) * @created 1 Jun 2015 diff --git a/src/main/java/the/bytecode/club/bytecodeviewer/plugin/PluginManager.java b/src/main/java/the/bytecode/club/bytecodeviewer/plugin/PluginManager.java index 39376f04..7daecd60 100644 --- a/src/main/java/the/bytecode/club/bytecodeviewer/plugin/PluginManager.java +++ b/src/main/java/the/bytecode/club/bytecodeviewer/plugin/PluginManager.java @@ -1,3 +1,21 @@ +/*************************************************************************** + * Bytecode Viewer (BCV) - Java & Android Reverse Engineering Suite * + * Copyright (C) 2014 Konloch - Konloch.com / BytecodeViewer.com * + * * + * This program is free software: you can redistribute it and/or modify * + * it under the terms of the GNU General Public License as published by * + * the Free Software Foundation, either version 3 of the License, or * + * (at your option) any later version. * + * * + * This program is distributed in the hope that it will be useful, * + * but WITHOUT ANY WARRANTY; without even the implied warranty of * + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * + * GNU General Public License for more details. * + * * + * You should have received a copy of the GNU General Public License * + * along with this program. If not, see . * + ***************************************************************************/ + package the.bytecode.club.bytecodeviewer.plugin; import java.io.File; @@ -23,24 +41,6 @@ import the.bytecode.club.bytecodeviewer.plugin.strategies.RubyPluginLaunchStrate import the.bytecode.club.bytecodeviewer.translation.TranslatedStrings; import the.bytecode.club.bytecodeviewer.util.MiscUtils; -/*************************************************************************** - * Bytecode Viewer (BCV) - Java & Android Reverse Engineering Suite * - * Copyright (C) 2014 Konloch - Konloch.com / BytecodeViewer.com * - * * - * This program is free software: you can redistribute it and/or modify * - * it under the terms of the GNU General Public License as published by * - * the Free Software Foundation, either version 3 of the License, or * - * (at your option) any later version. * - * * - * This program is distributed in the hope that it will be useful, * - * but WITHOUT ANY WARRANTY; without even the implied warranty of * - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * - * GNU General Public License for more details. * - * * - * You should have received a copy of the GNU General Public License * - * along with this program. If not, see . * - ***************************************************************************/ - /** * Supports loading of groovy, python or ruby scripts. * diff --git a/src/main/java/the/bytecode/club/bytecodeviewer/plugin/PluginTemplate.java b/src/main/java/the/bytecode/club/bytecodeviewer/plugin/PluginTemplate.java index 208a1941..99f623ad 100644 --- a/src/main/java/the/bytecode/club/bytecodeviewer/plugin/PluginTemplate.java +++ b/src/main/java/the/bytecode/club/bytecodeviewer/plugin/PluginTemplate.java @@ -1,11 +1,3 @@ -package the.bytecode.club.bytecodeviewer.plugin; - -import java.io.IOException; -import org.apache.commons.io.FilenameUtils; -import the.bytecode.club.bytecodeviewer.BytecodeViewer; -import the.bytecode.club.bytecodeviewer.resources.IconResources; -import the.bytecode.club.bytecodeviewer.resources.Resource; - /*************************************************************************** * Bytecode Viewer (BCV) - Java & Android Reverse Engineering Suite * * Copyright (C) 2014 Konloch - Konloch.com / BytecodeViewer.com * @@ -24,6 +16,14 @@ import the.bytecode.club.bytecodeviewer.resources.Resource; * along with this program. If not, see . * ***************************************************************************/ +package the.bytecode.club.bytecodeviewer.plugin; + +import java.io.IOException; +import org.apache.commons.io.FilenameUtils; +import the.bytecode.club.bytecodeviewer.BytecodeViewer; +import the.bytecode.club.bytecodeviewer.resources.IconResources; +import the.bytecode.club.bytecodeviewer.resources.Resource; + /** * @author Konloch * @since 7/1/2021 diff --git a/src/main/java/the/bytecode/club/bytecodeviewer/plugin/PluginWriter.java b/src/main/java/the/bytecode/club/bytecodeviewer/plugin/PluginWriter.java index 1b5d11ba..0b31b3c7 100644 --- a/src/main/java/the/bytecode/club/bytecodeviewer/plugin/PluginWriter.java +++ b/src/main/java/the/bytecode/club/bytecodeviewer/plugin/PluginWriter.java @@ -1,3 +1,21 @@ +/*************************************************************************** + * Bytecode Viewer (BCV) - Java & Android Reverse Engineering Suite * + * Copyright (C) 2014 Konloch - Konloch.com / BytecodeViewer.com * + * * + * This program is free software: you can redistribute it and/or modify * + * it under the terms of the GNU General Public License as published by * + * the Free Software Foundation, either version 3 of the License, or * + * (at your option) any later version. * + * * + * This program is distributed in the hope that it will be useful, * + * but WITHOUT ANY WARRANTY; without even the implied warranty of * + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * + * GNU General Public License for more details. * + * * + * You should have received a copy of the GNU General Public License * + * along with this program. If not, see . * + ***************************************************************************/ + package the.bytecode.club.bytecodeviewer.plugin; import java.awt.BorderLayout; @@ -33,24 +51,6 @@ import static the.bytecode.club.bytecodeviewer.Constants.fs; import static the.bytecode.club.bytecodeviewer.Constants.tempDirectory; import static the.bytecode.club.bytecodeviewer.Settings.addRecentPlugin; -/*************************************************************************** - * Bytecode Viewer (BCV) - Java & Android Reverse Engineering Suite * - * Copyright (C) 2014 Konloch - Konloch.com / BytecodeViewer.com * - * * - * This program is free software: you can redistribute it and/or modify * - * it under the terms of the GNU General Public License as published by * - * the Free Software Foundation, either version 3 of the License, or * - * (at your option) any later version. * - * * - * This program is distributed in the hope that it will be useful, * - * but WITHOUT ANY WARRANTY; without even the implied warranty of * - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * - * GNU General Public License for more details. * - * * - * You should have received a copy of the GNU General Public License * - * along with this program. If not, see . * - ***************************************************************************/ - /** * @author Konloch * @since 7/1/2021 diff --git a/src/main/java/the/bytecode/club/bytecodeviewer/plugin/preinstalled/AllatoriStringDecrypter.java b/src/main/java/the/bytecode/club/bytecodeviewer/plugin/preinstalled/AllatoriStringDecrypter.java index 46a71832..ec1c14ee 100644 --- a/src/main/java/the/bytecode/club/bytecodeviewer/plugin/preinstalled/AllatoriStringDecrypter.java +++ b/src/main/java/the/bytecode/club/bytecodeviewer/plugin/preinstalled/AllatoriStringDecrypter.java @@ -1,3 +1,21 @@ +/*************************************************************************** + * Bytecode Viewer (BCV) - Java & Android Reverse Engineering Suite * + * Copyright (C) 2014 Konloch - Konloch.com / BytecodeViewer.com * + * * + * This program is free software: you can redistribute it and/or modify * + * it under the terms of the GNU General Public License as published by * + * the Free Software Foundation, either version 3 of the License, or * + * (at your option) any later version. * + * * + * This program is distributed in the hope that it will be useful, * + * but WITHOUT ANY WARRANTY; without even the implied warranty of * + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * + * GNU General Public License for more details. * + * * + * You should have received a copy of the GNU General Public License * + * along with this program. If not, see . * + ***************************************************************************/ + package the.bytecode.club.bytecodeviewer.plugin.preinstalled; import java.awt.Dimension; @@ -27,24 +45,6 @@ import the.bytecode.club.bytecodeviewer.resources.IconResources; import static the.bytecode.club.bytecodeviewer.Constants.nl; -/*************************************************************************** - * Bytecode Viewer (BCV) - Java & Android Reverse Engineering Suite * - * Copyright (C) 2014 Konloch - Konloch.com / BytecodeViewer.com * - * * - * This program is free software: you can redistribute it and/or modify * - * it under the terms of the GNU General Public License as published by * - * the Free Software Foundation, either version 3 of the License, or * - * (at your option) any later version. * - * * - * This program is distributed in the hope that it will be useful, * - * but WITHOUT ANY WARRANTY; without even the implied warranty of * - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * - * GNU General Public License for more details. * - * * - * You should have received a copy of the GNU General Public License * - * along with this program. If not, see . * - ***************************************************************************/ - /** * An Allatori String Decrypter, targets an unknown (old) version. * diff --git a/src/main/java/the/bytecode/club/bytecodeviewer/plugin/preinstalled/ChangeClassFileVersions.java b/src/main/java/the/bytecode/club/bytecodeviewer/plugin/preinstalled/ChangeClassFileVersions.java index 86bccc19..5932d024 100644 --- a/src/main/java/the/bytecode/club/bytecodeviewer/plugin/preinstalled/ChangeClassFileVersions.java +++ b/src/main/java/the/bytecode/club/bytecodeviewer/plugin/preinstalled/ChangeClassFileVersions.java @@ -1,3 +1,21 @@ +/*************************************************************************** + * Bytecode Viewer (BCV) - Java & Android Reverse Engineering Suite * + * Copyright (C) 2014 Konloch - Konloch.com / BytecodeViewer.com * + * * + * This program is free software: you can redistribute it and/or modify * + * it under the terms of the GNU General Public License as published by * + * the Free Software Foundation, either version 3 of the License, or * + * (at your option) any later version. * + * * + * This program is distributed in the hope that it will be useful, * + * but WITHOUT ANY WARRANTY; without even the implied warranty of * + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * + * GNU General Public License for more details. * + * * + * You should have received a copy of the GNU General Public License * + * along with this program. If not, see . * + ***************************************************************************/ + package the.bytecode.club.bytecodeviewer.plugin.preinstalled; import java.util.List; diff --git a/src/main/java/the/bytecode/club/bytecodeviewer/plugin/preinstalled/CodeSequenceDiagram.java b/src/main/java/the/bytecode/club/bytecodeviewer/plugin/preinstalled/CodeSequenceDiagram.java index 8e8b182b..699a8147 100644 --- a/src/main/java/the/bytecode/club/bytecodeviewer/plugin/preinstalled/CodeSequenceDiagram.java +++ b/src/main/java/the/bytecode/club/bytecodeviewer/plugin/preinstalled/CodeSequenceDiagram.java @@ -1,3 +1,21 @@ +/*************************************************************************** + * Bytecode Viewer (BCV) - Java & Android Reverse Engineering Suite * + * Copyright (C) 2014 Konloch - Konloch.com / BytecodeViewer.com * + * * + * This program is free software: you can redistribute it and/or modify * + * it under the terms of the GNU General Public License as published by * + * the Free Software Foundation, either version 3 of the License, or * + * (at your option) any later version. * + * * + * This program is distributed in the hope that it will be useful, * + * but WITHOUT ANY WARRANTY; without even the implied warranty of * + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * + * GNU General Public License for more details. * + * * + * You should have received a copy of the GNU General Public License * + * along with this program. If not, see . * + ***************************************************************************/ + package the.bytecode.club.bytecodeviewer.plugin.preinstalled; import com.mxgraph.swing.mxGraphComponent; @@ -18,24 +36,6 @@ import the.bytecode.club.bytecodeviewer.plugin.PluginManager; import the.bytecode.club.bytecodeviewer.resources.IconResources; import the.bytecode.club.bytecodeviewer.translation.TranslatedStrings; -/*************************************************************************** - * Bytecode Viewer (BCV) - Java & Android Reverse Engineering Suite * - * Copyright (C) 2014 Konloch - Konloch.com / BytecodeViewer.com * - * * - * This program is free software: you can redistribute it and/or modify * - * it under the terms of the GNU General Public License as published by * - * the Free Software Foundation, either version 3 of the License, or * - * (at your option) any later version. * - * * - * This program is distributed in the hope that it will be useful, * - * but WITHOUT ANY WARRANTY; without even the implied warranty of * - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * - * GNU General Public License for more details. * - * * - * You should have received a copy of the GNU General Public License * - * along with this program. If not, see . * - ***************************************************************************/ - /** * A simple code sequence diagram. * diff --git a/src/main/java/the/bytecode/club/bytecodeviewer/plugin/preinstalled/EZInjection.java b/src/main/java/the/bytecode/club/bytecodeviewer/plugin/preinstalled/EZInjection.java index 5b6a2a15..e5fe2bfb 100644 --- a/src/main/java/the/bytecode/club/bytecodeviewer/plugin/preinstalled/EZInjection.java +++ b/src/main/java/the/bytecode/club/bytecodeviewer/plugin/preinstalled/EZInjection.java @@ -1,3 +1,21 @@ +/*************************************************************************** + * Bytecode Viewer (BCV) - Java & Android Reverse Engineering Suite * + * Copyright (C) 2014 Konloch - Konloch.com / BytecodeViewer.com * + * * + * This program is free software: you can redistribute it and/or modify * + * it under the terms of the GNU General Public License as published by * + * the Free Software Foundation, either version 3 of the License, or * + * (at your option) any later version. * + * * + * This program is distributed in the hope that it will be useful, * + * but WITHOUT ANY WARRANTY; without even the implied warranty of * + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * + * GNU General Public License for more details. * + * * + * You should have received a copy of the GNU General Public License * + * along with this program. If not, see . * + ***************************************************************************/ + package the.bytecode.club.bytecodeviewer.plugin.preinstalled; import java.io.PrintWriter; @@ -20,24 +38,6 @@ import the.bytecode.club.bytecodeviewer.gui.plugins.GraphicalReflectionKit; import static the.bytecode.club.bytecodeviewer.Constants.nl; -/*************************************************************************** - * Bytecode Viewer (BCV) - Java & Android Reverse Engineering Suite * - * Copyright (C) 2014 Konloch - Konloch.com / BytecodeViewer.com * - * * - * This program is free software: you can redistribute it and/or modify * - * it under the terms of the GNU General Public License as published by * - * the Free Software Foundation, either version 3 of the License, or * - * (at your option) any later version. * - * * - * This program is distributed in the hope that it will be useful, * - * but WITHOUT ANY WARRANTY; without even the implied warranty of * - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * - * GNU General Public License for more details. * - * * - * You should have received a copy of the GNU General Public License * - * along with this program. If not, see . * - ***************************************************************************/ - /** * EZ Injection - This plugin is designed to provide a graphical way for the * user to easily change the access modifiers of all fields/methods, insert diff --git a/src/main/java/the/bytecode/club/bytecodeviewer/plugin/preinstalled/MaliciousCodeScanner.java b/src/main/java/the/bytecode/club/bytecodeviewer/plugin/preinstalled/MaliciousCodeScanner.java index 14473510..7856259e 100644 --- a/src/main/java/the/bytecode/club/bytecodeviewer/plugin/preinstalled/MaliciousCodeScanner.java +++ b/src/main/java/the/bytecode/club/bytecodeviewer/plugin/preinstalled/MaliciousCodeScanner.java @@ -1,15 +1,3 @@ -package the.bytecode.club.bytecodeviewer.plugin.preinstalled; - -import java.util.HashSet; -import java.util.List; -import java.util.Set; -import org.objectweb.asm.tree.ClassNode; -import the.bytecode.club.bytecodeviewer.api.Plugin; -import the.bytecode.club.bytecodeviewer.api.PluginConsole; -import the.bytecode.club.bytecodeviewer.malwarescanner.MalwareScan; -import the.bytecode.club.bytecodeviewer.malwarescanner.MalwareScanModule; -import the.bytecode.club.bytecodeviewer.malwarescanner.util.MaliciousCodeOptions; - /*************************************************************************** * Bytecode Viewer (BCV) - Java & Android Reverse Engineering Suite * * Copyright (C) 2014 Konloch - Konloch.com / BytecodeViewer.com * @@ -28,8 +16,20 @@ import the.bytecode.club.bytecodeviewer.malwarescanner.util.MaliciousCodeOptions * along with this program. If not, see . * ***************************************************************************/ +package the.bytecode.club.bytecodeviewer.plugin.preinstalled; + +import java.util.HashSet; +import java.util.List; +import java.util.Set; +import org.objectweb.asm.tree.ClassNode; +import the.bytecode.club.bytecodeviewer.api.Plugin; +import the.bytecode.club.bytecodeviewer.api.PluginConsole; +import the.bytecode.club.bytecodeviewer.malwarescanner.MalwareScan; +import the.bytecode.club.bytecodeviewer.malwarescanner.MalwareScanModule; +import the.bytecode.club.bytecodeviewer.malwarescanner.util.MaliciousCodeOptions; + /** - * The Malicious Code Scanner plugin. All of the core components have been moved to the malwarescanner package. + * The Malicious Code Scanner plugin. All the core components have been moved to the malwarescanner package. * * This tool is used to help aid reverse engineers in identifying malicious code. * diff --git a/src/main/java/the/bytecode/club/bytecodeviewer/plugin/preinstalled/ReplaceStrings.java b/src/main/java/the/bytecode/club/bytecodeviewer/plugin/preinstalled/ReplaceStrings.java index 5f742de9..afd9f153 100644 --- a/src/main/java/the/bytecode/club/bytecodeviewer/plugin/preinstalled/ReplaceStrings.java +++ b/src/main/java/the/bytecode/club/bytecodeviewer/plugin/preinstalled/ReplaceStrings.java @@ -1,15 +1,3 @@ -package the.bytecode.club.bytecodeviewer.plugin.preinstalled; - -import java.util.List; -import org.objectweb.asm.tree.AbstractInsnNode; -import org.objectweb.asm.tree.ClassNode; -import org.objectweb.asm.tree.FieldNode; -import org.objectweb.asm.tree.InsnList; -import org.objectweb.asm.tree.LdcInsnNode; -import org.objectweb.asm.tree.MethodNode; -import the.bytecode.club.bytecodeviewer.api.Plugin; -import the.bytecode.club.bytecodeviewer.api.PluginConsole; - /*************************************************************************** * Bytecode Viewer (BCV) - Java & Android Reverse Engineering Suite * * Copyright (C) 2014 Konloch - Konloch.com / BytecodeViewer.com * @@ -28,6 +16,18 @@ import the.bytecode.club.bytecodeviewer.api.PluginConsole; * along with this program. If not, see . * ***************************************************************************/ +package the.bytecode.club.bytecodeviewer.plugin.preinstalled; + +import java.util.List; +import org.objectweb.asm.tree.AbstractInsnNode; +import org.objectweb.asm.tree.ClassNode; +import org.objectweb.asm.tree.FieldNode; +import org.objectweb.asm.tree.InsnList; +import org.objectweb.asm.tree.LdcInsnNode; +import org.objectweb.asm.tree.MethodNode; +import the.bytecode.club.bytecodeviewer.api.Plugin; +import the.bytecode.club.bytecodeviewer.api.PluginConsole; + /** * Replaces all string and string[] instances with whatever. * diff --git a/src/main/java/the/bytecode/club/bytecodeviewer/plugin/preinstalled/ShowAllStrings.java b/src/main/java/the/bytecode/club/bytecodeviewer/plugin/preinstalled/ShowAllStrings.java index c95876af..5a0ed90c 100644 --- a/src/main/java/the/bytecode/club/bytecodeviewer/plugin/preinstalled/ShowAllStrings.java +++ b/src/main/java/the/bytecode/club/bytecodeviewer/plugin/preinstalled/ShowAllStrings.java @@ -1,17 +1,3 @@ -package the.bytecode.club.bytecodeviewer.plugin.preinstalled; - -import java.util.List; -import org.objectweb.asm.tree.AbstractInsnNode; -import org.objectweb.asm.tree.ClassNode; -import org.objectweb.asm.tree.FieldNode; -import org.objectweb.asm.tree.InsnList; -import org.objectweb.asm.tree.LdcInsnNode; -import org.objectweb.asm.tree.MethodNode; -import the.bytecode.club.bytecodeviewer.api.Plugin; -import the.bytecode.club.bytecodeviewer.api.PluginConsole; - -import static the.bytecode.club.bytecodeviewer.Constants.nl; - /*************************************************************************** * Bytecode Viewer (BCV) - Java & Android Reverse Engineering Suite * * Copyright (C) 2014 Konloch - Konloch.com / BytecodeViewer.com * @@ -30,6 +16,20 @@ import static the.bytecode.club.bytecodeviewer.Constants.nl; * along with this program. If not, see . * ***************************************************************************/ +package the.bytecode.club.bytecodeviewer.plugin.preinstalled; + +import java.util.List; +import org.objectweb.asm.tree.AbstractInsnNode; +import org.objectweb.asm.tree.ClassNode; +import org.objectweb.asm.tree.FieldNode; +import org.objectweb.asm.tree.InsnList; +import org.objectweb.asm.tree.LdcInsnNode; +import org.objectweb.asm.tree.MethodNode; +import the.bytecode.club.bytecodeviewer.api.Plugin; +import the.bytecode.club.bytecodeviewer.api.PluginConsole; + +import static the.bytecode.club.bytecodeviewer.Constants.nl; + /** * Simply shows all the non-empty strings in every single class * diff --git a/src/main/java/the/bytecode/club/bytecodeviewer/plugin/preinstalled/ShowMainMethods.java b/src/main/java/the/bytecode/club/bytecodeviewer/plugin/preinstalled/ShowMainMethods.java index 4b97e0d6..e3e3e403 100644 --- a/src/main/java/the/bytecode/club/bytecodeviewer/plugin/preinstalled/ShowMainMethods.java +++ b/src/main/java/the/bytecode/club/bytecodeviewer/plugin/preinstalled/ShowMainMethods.java @@ -1,12 +1,3 @@ -package the.bytecode.club.bytecodeviewer.plugin.preinstalled; - -import java.util.List; -import org.objectweb.asm.Opcodes; -import org.objectweb.asm.tree.ClassNode; -import org.objectweb.asm.tree.MethodNode; -import the.bytecode.club.bytecodeviewer.api.Plugin; -import the.bytecode.club.bytecodeviewer.api.PluginConsole; - /*************************************************************************** * Bytecode Viewer (BCV) - Java & Android Reverse Engineering Suite * * Copyright (C) 2014 Konloch - Konloch.com / BytecodeViewer.com * @@ -25,6 +16,15 @@ import the.bytecode.club.bytecodeviewer.api.PluginConsole; * along with this program. If not, see . * ***************************************************************************/ +package the.bytecode.club.bytecodeviewer.plugin.preinstalled; + +import java.util.List; +import org.objectweb.asm.Opcodes; +import org.objectweb.asm.tree.ClassNode; +import org.objectweb.asm.tree.MethodNode; +import the.bytecode.club.bytecodeviewer.api.Plugin; +import the.bytecode.club.bytecodeviewer.api.PluginConsole; + /** * Simply shows all classes that have a public static void main(String[]) * diff --git a/src/main/java/the/bytecode/club/bytecodeviewer/plugin/preinstalled/StackFramesRemover.java b/src/main/java/the/bytecode/club/bytecodeviewer/plugin/preinstalled/StackFramesRemover.java index b69d4cf2..87b07ea9 100644 --- a/src/main/java/the/bytecode/club/bytecodeviewer/plugin/preinstalled/StackFramesRemover.java +++ b/src/main/java/the/bytecode/club/bytecodeviewer/plugin/preinstalled/StackFramesRemover.java @@ -1,3 +1,21 @@ +/*************************************************************************** + * Bytecode Viewer (BCV) - Java & Android Reverse Engineering Suite * + * Copyright (C) 2014 Konloch - Konloch.com / BytecodeViewer.com * + * * + * This program is free software: you can redistribute it and/or modify * + * it under the terms of the GNU General Public License as published by * + * the Free Software Foundation, either version 3 of the License, or * + * (at your option) any later version. * + * * + * This program is distributed in the hope that it will be useful, * + * but WITHOUT ANY WARRANTY; without even the implied warranty of * + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * + * GNU General Public License for more details. * + * * + * You should have received a copy of the GNU General Public License * + * along with this program. If not, see . * + ***************************************************************************/ + package the.bytecode.club.bytecodeviewer.plugin.preinstalled; import java.util.List; diff --git a/src/main/java/the/bytecode/club/bytecodeviewer/plugin/preinstalled/ViewAPKAndroidPermissions.java b/src/main/java/the/bytecode/club/bytecodeviewer/plugin/preinstalled/ViewAPKAndroidPermissions.java index ed7aca4a..48c9eb94 100644 --- a/src/main/java/the/bytecode/club/bytecodeviewer/plugin/preinstalled/ViewAPKAndroidPermissions.java +++ b/src/main/java/the/bytecode/club/bytecodeviewer/plugin/preinstalled/ViewAPKAndroidPermissions.java @@ -1,3 +1,21 @@ +/*************************************************************************** + * Bytecode Viewer (BCV) - Java & Android Reverse Engineering Suite * + * Copyright (C) 2014 Konloch - Konloch.com / BytecodeViewer.com * + * * + * This program is free software: you can redistribute it and/or modify * + * it under the terms of the GNU General Public License as published by * + * the Free Software Foundation, either version 3 of the License, or * + * (at your option) any later version. * + * * + * This program is distributed in the hope that it will be useful, * + * but WITHOUT ANY WARRANTY; without even the implied warranty of * + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * + * GNU General Public License for more details. * + * * + * You should have received a copy of the GNU General Public License * + * along with this program. If not, see . * + ***************************************************************************/ + package the.bytecode.club.bytecodeviewer.plugin.preinstalled; import java.nio.charset.StandardCharsets; diff --git a/src/main/java/the/bytecode/club/bytecodeviewer/plugin/preinstalled/ViewManifest.java b/src/main/java/the/bytecode/club/bytecodeviewer/plugin/preinstalled/ViewManifest.java index cba60f8e..de64a69c 100644 --- a/src/main/java/the/bytecode/club/bytecodeviewer/plugin/preinstalled/ViewManifest.java +++ b/src/main/java/the/bytecode/club/bytecodeviewer/plugin/preinstalled/ViewManifest.java @@ -1,3 +1,21 @@ +/*************************************************************************** + * Bytecode Viewer (BCV) - Java & Android Reverse Engineering Suite * + * Copyright (C) 2014 Konloch - Konloch.com / BytecodeViewer.com * + * * + * This program is free software: you can redistribute it and/or modify * + * it under the terms of the GNU General Public License as published by * + * the Free Software Foundation, either version 3 of the License, or * + * (at your option) any later version. * + * * + * This program is distributed in the hope that it will be useful, * + * but WITHOUT ANY WARRANTY; without even the implied warranty of * + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * + * GNU General Public License for more details. * + * * + * You should have received a copy of the GNU General Public License * + * along with this program. If not, see . * + ***************************************************************************/ + package the.bytecode.club.bytecodeviewer.plugin.preinstalled; import java.nio.charset.StandardCharsets; diff --git a/src/main/java/the/bytecode/club/bytecodeviewer/plugin/preinstalled/ZKMStringDecrypter.java b/src/main/java/the/bytecode/club/bytecodeviewer/plugin/preinstalled/ZKMStringDecrypter.java index 1e7c26fe..57a5c299 100644 --- a/src/main/java/the/bytecode/club/bytecodeviewer/plugin/preinstalled/ZKMStringDecrypter.java +++ b/src/main/java/the/bytecode/club/bytecodeviewer/plugin/preinstalled/ZKMStringDecrypter.java @@ -1,10 +1,3 @@ -package the.bytecode.club.bytecodeviewer.plugin.preinstalled; - -import java.util.List; -import org.objectweb.asm.tree.ClassNode; -import the.bytecode.club.bytecodeviewer.BytecodeViewer; -import the.bytecode.club.bytecodeviewer.api.Plugin; - /*************************************************************************** * Bytecode Viewer (BCV) - Java & Android Reverse Engineering Suite * * Copyright (C) 2014 Konloch - Konloch.com / BytecodeViewer.com * @@ -23,6 +16,13 @@ import the.bytecode.club.bytecodeviewer.api.Plugin; * along with this program. If not, see . * ***************************************************************************/ +package the.bytecode.club.bytecodeviewer.plugin.preinstalled; + +import java.util.List; +import org.objectweb.asm.tree.ClassNode; +import the.bytecode.club.bytecodeviewer.BytecodeViewer; +import the.bytecode.club.bytecodeviewer.api.Plugin; + /** * Coming soon * diff --git a/src/main/java/the/bytecode/club/bytecodeviewer/plugin/preinstalled/ZStringArrayDecrypter.java b/src/main/java/the/bytecode/club/bytecodeviewer/plugin/preinstalled/ZStringArrayDecrypter.java index 0a1f3d65..3b35826c 100644 --- a/src/main/java/the/bytecode/club/bytecodeviewer/plugin/preinstalled/ZStringArrayDecrypter.java +++ b/src/main/java/the/bytecode/club/bytecodeviewer/plugin/preinstalled/ZStringArrayDecrypter.java @@ -1,18 +1,3 @@ -package the.bytecode.club.bytecodeviewer.plugin.preinstalled; - -import java.lang.reflect.Field; -import java.lang.reflect.Modifier; -import java.util.List; -import java.util.Objects; -import org.objectweb.asm.tree.ClassNode; -import the.bytecode.club.bytecodeviewer.BytecodeViewer; -import the.bytecode.club.bytecodeviewer.api.BCV; -import the.bytecode.club.bytecodeviewer.api.Plugin; -import the.bytecode.club.bytecodeviewer.api.PluginConsole; -import the.bytecode.club.bytecodeviewer.gui.components.MultipleChoiceDialog; - -import static the.bytecode.club.bytecodeviewer.Constants.nl; - /*************************************************************************** * Bytecode Viewer (BCV) - Java & Android Reverse Engineering Suite * * Copyright (C) 2014 Konloch - Konloch.com / BytecodeViewer.com * @@ -31,6 +16,21 @@ import static the.bytecode.club.bytecodeviewer.Constants.nl; * along with this program. If not, see . * ***************************************************************************/ +package the.bytecode.club.bytecodeviewer.plugin.preinstalled; + +import java.lang.reflect.Field; +import java.lang.reflect.Modifier; +import java.util.List; +import java.util.Objects; +import org.objectweb.asm.tree.ClassNode; +import the.bytecode.club.bytecodeviewer.BytecodeViewer; +import the.bytecode.club.bytecodeviewer.api.BCV; +import the.bytecode.club.bytecodeviewer.api.Plugin; +import the.bytecode.club.bytecodeviewer.api.PluginConsole; +import the.bytecode.club.bytecodeviewer.gui.components.MultipleChoiceDialog; + +import static the.bytecode.club.bytecodeviewer.Constants.nl; + /** * Runs the classes then simply grabs the static String[] z * diff --git a/src/main/java/the/bytecode/club/bytecodeviewer/plugin/strategies/CompiledJavaPluginLaunchStrategy.java b/src/main/java/the/bytecode/club/bytecodeviewer/plugin/strategies/CompiledJavaPluginLaunchStrategy.java index 530e0687..281a1318 100644 --- a/src/main/java/the/bytecode/club/bytecodeviewer/plugin/strategies/CompiledJavaPluginLaunchStrategy.java +++ b/src/main/java/the/bytecode/club/bytecodeviewer/plugin/strategies/CompiledJavaPluginLaunchStrategy.java @@ -1,18 +1,3 @@ -package the.bytecode.club.bytecodeviewer.plugin.strategies; - -import java.io.File; -import java.io.FileInputStream; -import java.util.*; -import java.util.zip.ZipEntry; -import java.util.zip.ZipInputStream; -import org.objectweb.asm.ClassReader; -import org.objectweb.asm.tree.ClassNode; -import the.bytecode.club.bytecodeviewer.BytecodeViewer; -import the.bytecode.club.bytecodeviewer.api.Plugin; -import the.bytecode.club.bytecodeviewer.plugin.PluginLaunchStrategy; -import the.bytecode.club.bytecodeviewer.util.FileHeaderUtils; -import the.bytecode.club.bytecodeviewer.util.MiscUtils; - /*************************************************************************** * Bytecode Viewer (BCV) - Java & Android Reverse Engineering Suite * * Copyright (C) 2014 Konloch - Konloch.com / BytecodeViewer.com * @@ -31,6 +16,21 @@ import the.bytecode.club.bytecodeviewer.util.MiscUtils; * along with this program. If not, see . * ***************************************************************************/ +package the.bytecode.club.bytecodeviewer.plugin.strategies; + +import java.io.File; +import java.io.FileInputStream; +import java.util.*; +import java.util.zip.ZipEntry; +import java.util.zip.ZipInputStream; +import org.objectweb.asm.ClassReader; +import org.objectweb.asm.tree.ClassNode; +import the.bytecode.club.bytecodeviewer.BytecodeViewer; +import the.bytecode.club.bytecodeviewer.api.Plugin; +import the.bytecode.club.bytecodeviewer.plugin.PluginLaunchStrategy; +import the.bytecode.club.bytecodeviewer.util.FileHeaderUtils; +import the.bytecode.club.bytecodeviewer.util.MiscUtils; + /** * @author Konloch * @author Bibl (don't ban me pls) diff --git a/src/main/java/the/bytecode/club/bytecodeviewer/plugin/strategies/GroovyPluginLaunchStrategy.java b/src/main/java/the/bytecode/club/bytecodeviewer/plugin/strategies/GroovyPluginLaunchStrategy.java index a889f830..7f7b7c01 100644 --- a/src/main/java/the/bytecode/club/bytecodeviewer/plugin/strategies/GroovyPluginLaunchStrategy.java +++ b/src/main/java/the/bytecode/club/bytecodeviewer/plugin/strategies/GroovyPluginLaunchStrategy.java @@ -1,13 +1,3 @@ -package the.bytecode.club.bytecodeviewer.plugin.strategies; - -import java.io.File; -import java.io.FileReader; -import java.io.Reader; -import javax.script.ScriptEngine; -import javax.script.ScriptEngineManager; -import the.bytecode.club.bytecodeviewer.api.Plugin; -import the.bytecode.club.bytecodeviewer.plugin.PluginLaunchStrategy; - /*************************************************************************** * Bytecode Viewer (BCV) - Java & Android Reverse Engineering Suite * * Copyright (C) 2014 Konloch - Konloch.com / BytecodeViewer.com * @@ -26,6 +16,16 @@ import the.bytecode.club.bytecodeviewer.plugin.PluginLaunchStrategy; * along with this program. If not, see . * ***************************************************************************/ +package the.bytecode.club.bytecodeviewer.plugin.strategies; + +import java.io.File; +import java.io.FileReader; +import java.io.Reader; +import javax.script.ScriptEngine; +import javax.script.ScriptEngineManager; +import the.bytecode.club.bytecodeviewer.api.Plugin; +import the.bytecode.club.bytecodeviewer.plugin.PluginLaunchStrategy; + /** * @author Konloch * @author Bibl (don't ban me pls) diff --git a/src/main/java/the/bytecode/club/bytecodeviewer/plugin/strategies/JavaPluginLaunchStrategy.java b/src/main/java/the/bytecode/club/bytecodeviewer/plugin/strategies/JavaPluginLaunchStrategy.java index 6cb04b61..8242b73c 100644 --- a/src/main/java/the/bytecode/club/bytecodeviewer/plugin/strategies/JavaPluginLaunchStrategy.java +++ b/src/main/java/the/bytecode/club/bytecodeviewer/plugin/strategies/JavaPluginLaunchStrategy.java @@ -1,10 +1,3 @@ -package the.bytecode.club.bytecodeviewer.plugin.strategies; - -import java.io.File; -import org.codehaus.janino.SimpleCompiler; -import the.bytecode.club.bytecodeviewer.api.Plugin; -import the.bytecode.club.bytecodeviewer.plugin.PluginLaunchStrategy; - /*************************************************************************** * Bytecode Viewer (BCV) - Java & Android Reverse Engineering Suite * * Copyright (C) 2014 Konloch - Konloch.com / BytecodeViewer.com * @@ -23,6 +16,13 @@ import the.bytecode.club.bytecodeviewer.plugin.PluginLaunchStrategy; * along with this program. If not, see . * ***************************************************************************/ +package the.bytecode.club.bytecodeviewer.plugin.strategies; + +import java.io.File; +import org.codehaus.janino.SimpleCompiler; +import the.bytecode.club.bytecodeviewer.api.Plugin; +import the.bytecode.club.bytecodeviewer.plugin.PluginLaunchStrategy; + /** * @author Konloch * @author Bibl (don't ban me pls) diff --git a/src/main/java/the/bytecode/club/bytecodeviewer/plugin/strategies/JavascriptPluginLaunchStrategy.java b/src/main/java/the/bytecode/club/bytecodeviewer/plugin/strategies/JavascriptPluginLaunchStrategy.java index f108a1a8..23708de7 100644 --- a/src/main/java/the/bytecode/club/bytecodeviewer/plugin/strategies/JavascriptPluginLaunchStrategy.java +++ b/src/main/java/the/bytecode/club/bytecodeviewer/plugin/strategies/JavascriptPluginLaunchStrategy.java @@ -1,20 +1,3 @@ -package the.bytecode.club.bytecodeviewer.plugin.strategies; - -import java.io.File; -import java.io.FileReader; -import java.io.Reader; -import java.util.List; -import javax.script.Bindings; -import javax.script.Invocable; -import javax.script.ScriptContext; -import javax.script.ScriptEngine; -import javax.script.ScriptEngineManager; -import javax.script.ScriptException; -import org.objectweb.asm.tree.ClassNode; -import the.bytecode.club.bytecodeviewer.BytecodeViewer; -import the.bytecode.club.bytecodeviewer.api.Plugin; -import the.bytecode.club.bytecodeviewer.plugin.PluginLaunchStrategy; - /*************************************************************************** * Bytecode Viewer (BCV) - Java & Android Reverse Engineering Suite * * Copyright (C) 2014 Konloch - Konloch.com / BytecodeViewer.com * @@ -33,6 +16,23 @@ import the.bytecode.club.bytecodeviewer.plugin.PluginLaunchStrategy; * along with this program. If not, see . * ***************************************************************************/ +package the.bytecode.club.bytecodeviewer.plugin.strategies; + +import java.io.File; +import java.io.FileReader; +import java.io.Reader; +import java.util.List; +import javax.script.Bindings; +import javax.script.Invocable; +import javax.script.ScriptContext; +import javax.script.ScriptEngine; +import javax.script.ScriptEngineManager; +import javax.script.ScriptException; +import org.objectweb.asm.tree.ClassNode; +import the.bytecode.club.bytecodeviewer.BytecodeViewer; +import the.bytecode.club.bytecodeviewer.api.Plugin; +import the.bytecode.club.bytecodeviewer.plugin.PluginLaunchStrategy; + /** * @author Konloch * @author Bibl (don't ban me pls) diff --git a/src/main/java/the/bytecode/club/bytecodeviewer/plugin/strategies/PythonPluginLaunchStrategy.java b/src/main/java/the/bytecode/club/bytecodeviewer/plugin/strategies/PythonPluginLaunchStrategy.java index cebab142..6e297d86 100644 --- a/src/main/java/the/bytecode/club/bytecodeviewer/plugin/strategies/PythonPluginLaunchStrategy.java +++ b/src/main/java/the/bytecode/club/bytecodeviewer/plugin/strategies/PythonPluginLaunchStrategy.java @@ -1,13 +1,3 @@ -package the.bytecode.club.bytecodeviewer.plugin.strategies; - -import java.io.File; -import java.io.FileReader; -import java.io.Reader; -import javax.script.ScriptEngine; -import javax.script.ScriptEngineManager; -import the.bytecode.club.bytecodeviewer.api.Plugin; -import the.bytecode.club.bytecodeviewer.plugin.PluginLaunchStrategy; - /*************************************************************************** * Bytecode Viewer (BCV) - Java & Android Reverse Engineering Suite * * Copyright (C) 2014 Konloch - Konloch.com / BytecodeViewer.com * @@ -26,6 +16,16 @@ import the.bytecode.club.bytecodeviewer.plugin.PluginLaunchStrategy; * along with this program. If not, see . * ***************************************************************************/ +package the.bytecode.club.bytecodeviewer.plugin.strategies; + +import java.io.File; +import java.io.FileReader; +import java.io.Reader; +import javax.script.ScriptEngine; +import javax.script.ScriptEngineManager; +import the.bytecode.club.bytecodeviewer.api.Plugin; +import the.bytecode.club.bytecodeviewer.plugin.PluginLaunchStrategy; + /** * @author Konloch * @author Bibl (don't ban me pls) diff --git a/src/main/java/the/bytecode/club/bytecodeviewer/plugin/strategies/RubyPluginLaunchStrategy.java b/src/main/java/the/bytecode/club/bytecodeviewer/plugin/strategies/RubyPluginLaunchStrategy.java index 41b221f5..90e94d81 100644 --- a/src/main/java/the/bytecode/club/bytecodeviewer/plugin/strategies/RubyPluginLaunchStrategy.java +++ b/src/main/java/the/bytecode/club/bytecodeviewer/plugin/strategies/RubyPluginLaunchStrategy.java @@ -1,13 +1,3 @@ -package the.bytecode.club.bytecodeviewer.plugin.strategies; - -import java.io.File; -import java.io.FileReader; -import java.io.Reader; -import javax.script.ScriptEngine; -import javax.script.ScriptEngineManager; -import the.bytecode.club.bytecodeviewer.api.Plugin; -import the.bytecode.club.bytecodeviewer.plugin.PluginLaunchStrategy; - /*************************************************************************** * Bytecode Viewer (BCV) - Java & Android Reverse Engineering Suite * * Copyright (C) 2014 Konloch - Konloch.com / BytecodeViewer.com * @@ -26,6 +16,16 @@ import the.bytecode.club.bytecodeviewer.plugin.PluginLaunchStrategy; * along with this program. If not, see . * ***************************************************************************/ +package the.bytecode.club.bytecodeviewer.plugin.strategies; + +import java.io.File; +import java.io.FileReader; +import java.io.Reader; +import javax.script.ScriptEngine; +import javax.script.ScriptEngineManager; +import the.bytecode.club.bytecodeviewer.api.Plugin; +import the.bytecode.club.bytecodeviewer.plugin.PluginLaunchStrategy; + /** * @author Konloch * @author Bibl (don't ban me pls) diff --git a/src/main/java/the/bytecode/club/bytecodeviewer/resources/ExternalResources.java b/src/main/java/the/bytecode/club/bytecodeviewer/resources/ExternalResources.java index d17cfff4..cb4e9ca3 100644 --- a/src/main/java/the/bytecode/club/bytecodeviewer/resources/ExternalResources.java +++ b/src/main/java/the/bytecode/club/bytecodeviewer/resources/ExternalResources.java @@ -1,3 +1,21 @@ +/*************************************************************************** + * Bytecode Viewer (BCV) - Java & Android Reverse Engineering Suite * + * Copyright (C) 2014 Konloch - Konloch.com / BytecodeViewer.com * + * * + * This program is free software: you can redistribute it and/or modify * + * it under the terms of the GNU General Public License as published by * + * the Free Software Foundation, either version 3 of the License, or * + * (at your option) any later version. * + * * + * This program is distributed in the hope that it will be useful, * + * but WITHOUT ANY WARRANTY; without even the implied warranty of * + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * + * GNU General Public License for more details. * + * * + * You should have received a copy of the GNU General Public License * + * along with this program. If not, see . * + ***************************************************************************/ + package the.bytecode.club.bytecodeviewer.resources; import java.io.BufferedReader; @@ -19,24 +37,6 @@ import static the.bytecode.club.bytecodeviewer.Constants.RT_JAR_DUMPED; import static the.bytecode.club.bytecodeviewer.Constants.libsDirectory; import static the.bytecode.club.bytecodeviewer.Constants.nl; -/*************************************************************************** - * Bytecode Viewer (BCV) - Java & Android Reverse Engineering Suite * - * Copyright (C) 2014 Konloch - Konloch.com / BytecodeViewer.com * - * * - * This program is free software: you can redistribute it and/or modify * - * it under the terms of the GNU General Public License as published by * - * the Free Software Foundation, either version 3 of the License, or * - * (at your option) any later version. * - * * - * This program is distributed in the hope that it will be useful, * - * but WITHOUT ANY WARRANTY; without even the implied warranty of * - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * - * GNU General Public License for more details. * - * * - * You should have received a copy of the GNU General Public License * - * along with this program. If not, see . * - ***************************************************************************/ - /** * Anything that isn't accessible from inside of the JVM is here * diff --git a/src/main/java/the/bytecode/club/bytecodeviewer/resources/IconResources.java b/src/main/java/the/bytecode/club/bytecodeviewer/resources/IconResources.java index c9bf588d..2a8e153c 100644 --- a/src/main/java/the/bytecode/club/bytecodeviewer/resources/IconResources.java +++ b/src/main/java/the/bytecode/club/bytecodeviewer/resources/IconResources.java @@ -1,19 +1,3 @@ -package the.bytecode.club.bytecodeviewer.resources; - -import java.awt.image.BufferedImage; -import java.io.IOException; -import java.util.ArrayList; -import java.util.List; -import java.util.Objects; -import javax.imageio.ImageIO; -import javax.swing.Icon; - -import com.github.weisj.darklaf.iconset.AllIcons; -import com.github.weisj.darklaf.properties.icons.IconLoader; -import com.github.weisj.darklaf.properties.icons.IconResolver; -import org.imgscalr.Scalr; -import the.bytecode.club.bytecodeviewer.BytecodeViewer; - /*************************************************************************** * Bytecode Viewer (BCV) - Java & Android Reverse Engineering Suite * * Copyright (C) 2014 Konloch - Konloch.com / BytecodeViewer.com * @@ -32,6 +16,22 @@ import the.bytecode.club.bytecodeviewer.BytecodeViewer; * along with this program. If not, see . * ***************************************************************************/ +package the.bytecode.club.bytecodeviewer.resources; + +import java.awt.image.BufferedImage; +import java.io.IOException; +import java.util.ArrayList; +import java.util.List; +import java.util.Objects; +import javax.imageio.ImageIO; +import javax.swing.Icon; + +import com.github.weisj.darklaf.iconset.AllIcons; +import com.github.weisj.darklaf.properties.icons.IconLoader; +import com.github.weisj.darklaf.properties.icons.IconResolver; +import org.imgscalr.Scalr; +import the.bytecode.club.bytecodeviewer.BytecodeViewer; + /** * Any resources loaded by disc or by memory. * diff --git a/src/main/java/the/bytecode/club/bytecodeviewer/resources/Resource.java b/src/main/java/the/bytecode/club/bytecodeviewer/resources/Resource.java index e0c9bc6d..83af8a96 100644 --- a/src/main/java/the/bytecode/club/bytecodeviewer/resources/Resource.java +++ b/src/main/java/the/bytecode/club/bytecodeviewer/resources/Resource.java @@ -1,12 +1,3 @@ -package the.bytecode.club.bytecodeviewer.resources; - -import org.apache.commons.io.IOUtils; -import org.objectweb.asm.tree.ClassNode; - -import java.io.IOException; -import java.io.InputStream; -import java.nio.charset.StandardCharsets; - /*************************************************************************** * Bytecode Viewer (BCV) - Java & Android Reverse Engineering Suite * * Copyright (C) 2014 Konloch - Konloch.com / BytecodeViewer.com * @@ -25,6 +16,15 @@ import java.nio.charset.StandardCharsets; * along with this program. If not, see . * ***************************************************************************/ +package the.bytecode.club.bytecodeviewer.resources; + +import org.apache.commons.io.IOUtils; +import org.objectweb.asm.tree.ClassNode; + +import java.io.IOException; +import java.io.InputStream; +import java.nio.charset.StandardCharsets; + /** * @author Konloch * @since 7/14/2021 diff --git a/src/main/java/the/bytecode/club/bytecodeviewer/resources/ResourceContainer.java b/src/main/java/the/bytecode/club/bytecodeviewer/resources/ResourceContainer.java index 4dfcbe33..c459aa5f 100644 --- a/src/main/java/the/bytecode/club/bytecodeviewer/resources/ResourceContainer.java +++ b/src/main/java/the/bytecode/club/bytecodeviewer/resources/ResourceContainer.java @@ -1,14 +1,3 @@ -package the.bytecode.club.bytecodeviewer.resources; - -import java.io.File; -import java.util.LinkedHashMap; -import java.util.Map; -import org.apache.commons.io.FilenameUtils; -import org.objectweb.asm.tree.ClassNode; -import the.bytecode.club.bytecodeviewer.api.ASMUtil; -import the.bytecode.club.bytecodeviewer.gui.resourcelist.ResourceTreeNode; -import the.bytecode.club.bytecodeviewer.util.LazyNameUtil; - /*************************************************************************** * Bytecode Viewer (BCV) - Java & Android Reverse Engineering Suite * * Copyright (C) 2014 Konloch - Konloch.com / BytecodeViewer.com * @@ -27,6 +16,17 @@ import the.bytecode.club.bytecodeviewer.util.LazyNameUtil; * along with this program. If not, see . * ***************************************************************************/ +package the.bytecode.club.bytecodeviewer.resources; + +import java.io.File; +import java.util.LinkedHashMap; +import java.util.Map; +import org.apache.commons.io.FilenameUtils; +import org.objectweb.asm.tree.ClassNode; +import the.bytecode.club.bytecodeviewer.api.ASMUtil; +import the.bytecode.club.bytecodeviewer.gui.resourcelist.ResourceTreeNode; +import the.bytecode.club.bytecodeviewer.util.LazyNameUtil; + /** * Represents a loaded file in the form of a resource container * with all of the contents inside of it. diff --git a/src/main/java/the/bytecode/club/bytecodeviewer/resources/ResourceContainerImporter.java b/src/main/java/the/bytecode/club/bytecodeviewer/resources/ResourceContainerImporter.java index a90e8b1a..295af799 100644 --- a/src/main/java/the/bytecode/club/bytecodeviewer/resources/ResourceContainerImporter.java +++ b/src/main/java/the/bytecode/club/bytecodeviewer/resources/ResourceContainerImporter.java @@ -1,19 +1,3 @@ -package the.bytecode.club.bytecodeviewer.resources; - -import java.io.FileInputStream; -import java.io.IOException; -import java.io.InputStream; -import java.util.Enumeration; -import java.util.zip.ZipEntry; -import java.util.zip.ZipInputStream; -import org.apache.commons.compress.archivers.zip.ZipArchiveEntry; -import org.apache.commons.compress.archivers.zip.ZipFile; -import org.apache.commons.io.FilenameUtils; -import org.objectweb.asm.tree.ClassNode; -import the.bytecode.club.bytecodeviewer.api.ASMUtil; -import the.bytecode.club.bytecodeviewer.util.FileHeaderUtils; -import the.bytecode.club.bytecodeviewer.util.MiscUtils; - /*************************************************************************** * Bytecode Viewer (BCV) - Java & Android Reverse Engineering Suite * * Copyright (C) 2014 Konloch - Konloch.com / BytecodeViewer.com * @@ -32,6 +16,22 @@ import the.bytecode.club.bytecodeviewer.util.MiscUtils; * along with this program. If not, see . * ***************************************************************************/ +package the.bytecode.club.bytecodeviewer.resources; + +import java.io.FileInputStream; +import java.io.IOException; +import java.io.InputStream; +import java.util.Enumeration; +import java.util.zip.ZipEntry; +import java.util.zip.ZipInputStream; +import org.apache.commons.compress.archivers.zip.ZipArchiveEntry; +import org.apache.commons.compress.archivers.zip.ZipFile; +import org.apache.commons.io.FilenameUtils; +import org.objectweb.asm.tree.ClassNode; +import the.bytecode.club.bytecodeviewer.api.ASMUtil; +import the.bytecode.club.bytecodeviewer.util.FileHeaderUtils; +import the.bytecode.club.bytecodeviewer.util.MiscUtils; + /** * @author Konloch * @since 7/10/2021 diff --git a/src/main/java/the/bytecode/club/bytecodeviewer/resources/ResourceDecompiling.java b/src/main/java/the/bytecode/club/bytecodeviewer/resources/ResourceDecompiling.java index 7c17d0ea..0f316f8e 100644 --- a/src/main/java/the/bytecode/club/bytecodeviewer/resources/ResourceDecompiling.java +++ b/src/main/java/the/bytecode/club/bytecodeviewer/resources/ResourceDecompiling.java @@ -1,3 +1,21 @@ +/*************************************************************************** + * Bytecode Viewer (BCV) - Java & Android Reverse Engineering Suite * + * Copyright (C) 2014 Konloch - Konloch.com / BytecodeViewer.com * + * * + * This program is free software: you can redistribute it and/or modify * + * it under the terms of the GNU General Public License as published by * + * the Free Software Foundation, either version 3 of the License, or * + * (at your option) any later version. * + * * + * This program is distributed in the hope that it will be useful, * + * but WITHOUT ANY WARRANTY; without even the implied warranty of * + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * + * GNU General Public License for more details. * + * * + * You should have received a copy of the GNU General Public License * + * along with this program. If not, see . * + ***************************************************************************/ + package the.bytecode.club.bytecodeviewer.resources; import java.io.File; @@ -19,24 +37,6 @@ import the.bytecode.club.bytecodeviewer.util.MiscUtils; import static the.bytecode.club.bytecodeviewer.Constants.fs; import static the.bytecode.club.bytecodeviewer.Constants.tempDirectory; -/*************************************************************************** - * Bytecode Viewer (BCV) - Java & Android Reverse Engineering Suite * - * Copyright (C) 2014 Konloch - Konloch.com / BytecodeViewer.com * - * * - * This program is free software: you can redistribute it and/or modify * - * it under the terms of the GNU General Public License as published by * - * the Free Software Foundation, either version 3 of the License, or * - * (at your option) any later version. * - * * - * This program is distributed in the hope that it will be useful, * - * but WITHOUT ANY WARRANTY; without even the implied warranty of * - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * - * GNU General Public License for more details. * - * * - * You should have received a copy of the GNU General Public License * - * along with this program. If not, see . * - ***************************************************************************/ - /** * @author Konloch * @since 6/21/2021 diff --git a/src/main/java/the/bytecode/club/bytecodeviewer/resources/ResourceType.java b/src/main/java/the/bytecode/club/bytecodeviewer/resources/ResourceType.java index 57c3ba7e..39b867b8 100644 --- a/src/main/java/the/bytecode/club/bytecodeviewer/resources/ResourceType.java +++ b/src/main/java/the/bytecode/club/bytecodeviewer/resources/ResourceType.java @@ -1,9 +1,3 @@ -package the.bytecode.club.bytecodeviewer.resources; - -import java.util.HashMap; -import java.util.Map; -import javax.swing.*; - /*************************************************************************** * Bytecode Viewer (BCV) - Java & Android Reverse Engineering Suite * * Copyright (C) 2014 Konloch - Konloch.com / BytecodeViewer.com * @@ -22,6 +16,12 @@ import javax.swing.*; * along with this program. If not, see . * ***************************************************************************/ +package the.bytecode.club.bytecodeviewer.resources; + +import java.util.HashMap; +import java.util.Map; +import javax.swing.*; + /** * @author Konloch * @since 7/13/2021 diff --git a/src/main/java/the/bytecode/club/bytecodeviewer/resources/exporting/Export.java b/src/main/java/the/bytecode/club/bytecodeviewer/resources/exporting/Export.java index b957c0f2..1edd3b29 100644 --- a/src/main/java/the/bytecode/club/bytecodeviewer/resources/exporting/Export.java +++ b/src/main/java/the/bytecode/club/bytecodeviewer/resources/exporting/Export.java @@ -1,10 +1,3 @@ -package the.bytecode.club.bytecodeviewer.resources.exporting; - -import the.bytecode.club.bytecodeviewer.resources.exporting.impl.APKExport; -import the.bytecode.club.bytecodeviewer.resources.exporting.impl.DexExport; -import the.bytecode.club.bytecodeviewer.resources.exporting.impl.RunnableJarExporter; -import the.bytecode.club.bytecodeviewer.resources.exporting.impl.ZipExport; - /*************************************************************************** * Bytecode Viewer (BCV) - Java & Android Reverse Engineering Suite * * Copyright (C) 2014 Konloch - Konloch.com / BytecodeViewer.com * @@ -23,6 +16,13 @@ import the.bytecode.club.bytecodeviewer.resources.exporting.impl.ZipExport; * along with this program. If not, see . * ***************************************************************************/ +package the.bytecode.club.bytecodeviewer.resources.exporting; + +import the.bytecode.club.bytecodeviewer.resources.exporting.impl.APKExport; +import the.bytecode.club.bytecodeviewer.resources.exporting.impl.DexExport; +import the.bytecode.club.bytecodeviewer.resources.exporting.impl.RunnableJarExporter; +import the.bytecode.club.bytecodeviewer.resources.exporting.impl.ZipExport; + /** * @author Konloch * @since 6/27/2021 diff --git a/src/main/java/the/bytecode/club/bytecodeviewer/resources/exporting/Exporter.java b/src/main/java/the/bytecode/club/bytecodeviewer/resources/exporting/Exporter.java index 98f64ef7..1007beb0 100644 --- a/src/main/java/the/bytecode/club/bytecodeviewer/resources/exporting/Exporter.java +++ b/src/main/java/the/bytecode/club/bytecodeviewer/resources/exporting/Exporter.java @@ -1,5 +1,3 @@ -package the.bytecode.club.bytecodeviewer.resources.exporting; - /*************************************************************************** * Bytecode Viewer (BCV) - Java & Android Reverse Engineering Suite * * Copyright (C) 2014 Konloch - Konloch.com / BytecodeViewer.com * @@ -18,6 +16,8 @@ package the.bytecode.club.bytecodeviewer.resources.exporting; * along with this program. If not, see . * ***************************************************************************/ +package the.bytecode.club.bytecodeviewer.resources.exporting; + /** * @author Konloch * @since 6/27/2021 diff --git a/src/main/java/the/bytecode/club/bytecodeviewer/resources/exporting/impl/APKExport.java b/src/main/java/the/bytecode/club/bytecodeviewer/resources/exporting/impl/APKExport.java index aa839fe3..9ff1f343 100644 --- a/src/main/java/the/bytecode/club/bytecodeviewer/resources/exporting/impl/APKExport.java +++ b/src/main/java/the/bytecode/club/bytecodeviewer/resources/exporting/impl/APKExport.java @@ -1,3 +1,21 @@ +/*************************************************************************** + * Bytecode Viewer (BCV) - Java & Android Reverse Engineering Suite * + * Copyright (C) 2014 Konloch - Konloch.com / BytecodeViewer.com * + * * + * This program is free software: you can redistribute it and/or modify * + * it under the terms of the GNU General Public License as published by * + * the Free Software Foundation, either version 3 of the License, or * + * (at your option) any later version. * + * * + * This program is distributed in the hope that it will be useful, * + * but WITHOUT ANY WARRANTY; without even the implied warranty of * + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * + * GNU General Public License for more details. * + * * + * You should have received a copy of the GNU General Public License * + * along with this program. If not, see . * + ***************************************************************************/ + package the.bytecode.club.bytecodeviewer.resources.exporting.impl; import java.io.File; @@ -19,24 +37,6 @@ import the.bytecode.club.bytecodeviewer.util.MiscUtils; import static the.bytecode.club.bytecodeviewer.Constants.fs; import static the.bytecode.club.bytecodeviewer.Constants.tempDirectory; -/*************************************************************************** - * Bytecode Viewer (BCV) - Java & Android Reverse Engineering Suite * - * Copyright (C) 2014 Konloch - Konloch.com / BytecodeViewer.com * - * * - * This program is free software: you can redistribute it and/or modify * - * it under the terms of the GNU General Public License as published by * - * the Free Software Foundation, either version 3 of the License, or * - * (at your option) any later version. * - * * - * This program is distributed in the hope that it will be useful, * - * but WITHOUT ANY WARRANTY; without even the implied warranty of * - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * - * GNU General Public License for more details. * - * * - * You should have received a copy of the GNU General Public License * - * along with this program. If not, see . * - ***************************************************************************/ - /** * @author Konloch * @since 6/27/2021 diff --git a/src/main/java/the/bytecode/club/bytecodeviewer/resources/exporting/impl/DexExport.java b/src/main/java/the/bytecode/club/bytecodeviewer/resources/exporting/impl/DexExport.java index fa0d3b11..70d7e5dd 100644 --- a/src/main/java/the/bytecode/club/bytecodeviewer/resources/exporting/impl/DexExport.java +++ b/src/main/java/the/bytecode/club/bytecodeviewer/resources/exporting/impl/DexExport.java @@ -1,19 +1,3 @@ -package the.bytecode.club.bytecodeviewer.resources.exporting.impl; - -import java.io.File; -import javax.swing.JFileChooser; -import the.bytecode.club.bytecodeviewer.BytecodeViewer; -import the.bytecode.club.bytecodeviewer.Configuration; -import the.bytecode.club.bytecodeviewer.gui.components.FileChooser; -import the.bytecode.club.bytecodeviewer.resources.exporting.Exporter; -import the.bytecode.club.bytecodeviewer.util.Dex2Jar; -import the.bytecode.club.bytecodeviewer.util.DialogUtils; -import the.bytecode.club.bytecodeviewer.util.JarUtils; -import the.bytecode.club.bytecodeviewer.util.MiscUtils; - -import static the.bytecode.club.bytecodeviewer.Constants.fs; -import static the.bytecode.club.bytecodeviewer.Constants.tempDirectory; - /*************************************************************************** * Bytecode Viewer (BCV) - Java & Android Reverse Engineering Suite * * Copyright (C) 2014 Konloch - Konloch.com / BytecodeViewer.com * @@ -32,6 +16,22 @@ import static the.bytecode.club.bytecodeviewer.Constants.tempDirectory; * along with this program. If not, see . * ***************************************************************************/ +package the.bytecode.club.bytecodeviewer.resources.exporting.impl; + +import java.io.File; +import javax.swing.JFileChooser; +import the.bytecode.club.bytecodeviewer.BytecodeViewer; +import the.bytecode.club.bytecodeviewer.Configuration; +import the.bytecode.club.bytecodeviewer.gui.components.FileChooser; +import the.bytecode.club.bytecodeviewer.resources.exporting.Exporter; +import the.bytecode.club.bytecodeviewer.util.Dex2Jar; +import the.bytecode.club.bytecodeviewer.util.DialogUtils; +import the.bytecode.club.bytecodeviewer.util.JarUtils; +import the.bytecode.club.bytecodeviewer.util.MiscUtils; + +import static the.bytecode.club.bytecodeviewer.Constants.fs; +import static the.bytecode.club.bytecodeviewer.Constants.tempDirectory; + /** * @author Konloch * @since 6/27/2021 diff --git a/src/main/java/the/bytecode/club/bytecodeviewer/resources/exporting/impl/RunnableJarExporter.java b/src/main/java/the/bytecode/club/bytecodeviewer/resources/exporting/impl/RunnableJarExporter.java index 4fd06b88..efed6f20 100644 --- a/src/main/java/the/bytecode/club/bytecodeviewer/resources/exporting/impl/RunnableJarExporter.java +++ b/src/main/java/the/bytecode/club/bytecodeviewer/resources/exporting/impl/RunnableJarExporter.java @@ -1,14 +1,3 @@ -package the.bytecode.club.bytecodeviewer.resources.exporting.impl; - -import java.io.File; -import javax.swing.JFileChooser; -import the.bytecode.club.bytecodeviewer.BytecodeViewer; -import the.bytecode.club.bytecodeviewer.Configuration; -import the.bytecode.club.bytecodeviewer.gui.components.ExportJar; -import the.bytecode.club.bytecodeviewer.gui.components.FileChooser; -import the.bytecode.club.bytecodeviewer.resources.exporting.Exporter; -import the.bytecode.club.bytecodeviewer.util.DialogUtils; - /*************************************************************************** * Bytecode Viewer (BCV) - Java & Android Reverse Engineering Suite * * Copyright (C) 2014 Konloch - Konloch.com / BytecodeViewer.com * @@ -27,6 +16,17 @@ import the.bytecode.club.bytecodeviewer.util.DialogUtils; * along with this program. If not, see . * ***************************************************************************/ +package the.bytecode.club.bytecodeviewer.resources.exporting.impl; + +import java.io.File; +import javax.swing.JFileChooser; +import the.bytecode.club.bytecodeviewer.BytecodeViewer; +import the.bytecode.club.bytecodeviewer.Configuration; +import the.bytecode.club.bytecodeviewer.gui.components.ExportJar; +import the.bytecode.club.bytecodeviewer.gui.components.FileChooser; +import the.bytecode.club.bytecodeviewer.resources.exporting.Exporter; +import the.bytecode.club.bytecodeviewer.util.DialogUtils; + /** * @author Konloch * @since 6/27/2021 diff --git a/src/main/java/the/bytecode/club/bytecodeviewer/resources/exporting/impl/ZipExport.java b/src/main/java/the/bytecode/club/bytecodeviewer/resources/exporting/impl/ZipExport.java index 1033c08f..81fc5ffe 100644 --- a/src/main/java/the/bytecode/club/bytecodeviewer/resources/exporting/impl/ZipExport.java +++ b/src/main/java/the/bytecode/club/bytecodeviewer/resources/exporting/impl/ZipExport.java @@ -1,15 +1,3 @@ -package the.bytecode.club.bytecodeviewer.resources.exporting.impl; - -import java.io.File; -import javax.swing.JFileChooser; -import the.bytecode.club.bytecodeviewer.BytecodeViewer; -import the.bytecode.club.bytecodeviewer.Configuration; -import the.bytecode.club.bytecodeviewer.gui.components.FileChooser; -import the.bytecode.club.bytecodeviewer.resources.exporting.Exporter; -import the.bytecode.club.bytecodeviewer.util.DialogUtils; -import the.bytecode.club.bytecodeviewer.util.JarUtils; -import the.bytecode.club.bytecodeviewer.util.MiscUtils; - /*************************************************************************** * Bytecode Viewer (BCV) - Java & Android Reverse Engineering Suite * * Copyright (C) 2014 Konloch - Konloch.com / BytecodeViewer.com * @@ -28,6 +16,18 @@ import the.bytecode.club.bytecodeviewer.util.MiscUtils; * along with this program. If not, see . * ***************************************************************************/ +package the.bytecode.club.bytecodeviewer.resources.exporting.impl; + +import java.io.File; +import javax.swing.JFileChooser; +import the.bytecode.club.bytecodeviewer.BytecodeViewer; +import the.bytecode.club.bytecodeviewer.Configuration; +import the.bytecode.club.bytecodeviewer.gui.components.FileChooser; +import the.bytecode.club.bytecodeviewer.resources.exporting.Exporter; +import the.bytecode.club.bytecodeviewer.util.DialogUtils; +import the.bytecode.club.bytecodeviewer.util.JarUtils; +import the.bytecode.club.bytecodeviewer.util.MiscUtils; + /** * @author Konloch * @since 6/27/2021 diff --git a/src/main/java/the/bytecode/club/bytecodeviewer/resources/importing/Import.java b/src/main/java/the/bytecode/club/bytecodeviewer/resources/importing/Import.java index e89916e3..fe78011d 100644 --- a/src/main/java/the/bytecode/club/bytecodeviewer/resources/importing/Import.java +++ b/src/main/java/the/bytecode/club/bytecodeviewer/resources/importing/Import.java @@ -1,14 +1,3 @@ -package the.bytecode.club.bytecodeviewer.resources.importing; - -import java.util.HashMap; -import the.bytecode.club.bytecodeviewer.resources.importing.impl.APKResourceImporter; -import the.bytecode.club.bytecodeviewer.resources.importing.impl.ClassResourceImporter; -import the.bytecode.club.bytecodeviewer.resources.importing.impl.DEXResourceImporter; -import the.bytecode.club.bytecodeviewer.resources.importing.impl.DirectoryResourceImporter; -import the.bytecode.club.bytecodeviewer.resources.importing.impl.FileResourceImporter; -import the.bytecode.club.bytecodeviewer.resources.importing.impl.XAPKResourceImporter; -import the.bytecode.club.bytecodeviewer.resources.importing.impl.ZipResourceImporter; - /*************************************************************************** * Bytecode Viewer (BCV) - Java & Android Reverse Engineering Suite * * Copyright (C) 2014 Konloch - Konloch.com / BytecodeViewer.com * @@ -27,6 +16,17 @@ import the.bytecode.club.bytecodeviewer.resources.importing.impl.ZipResourceImpo * along with this program. If not, see . * ***************************************************************************/ +package the.bytecode.club.bytecodeviewer.resources.importing; + +import java.util.HashMap; +import the.bytecode.club.bytecodeviewer.resources.importing.impl.APKResourceImporter; +import the.bytecode.club.bytecodeviewer.resources.importing.impl.ClassResourceImporter; +import the.bytecode.club.bytecodeviewer.resources.importing.impl.DEXResourceImporter; +import the.bytecode.club.bytecodeviewer.resources.importing.impl.DirectoryResourceImporter; +import the.bytecode.club.bytecodeviewer.resources.importing.impl.FileResourceImporter; +import the.bytecode.club.bytecodeviewer.resources.importing.impl.XAPKResourceImporter; +import the.bytecode.club.bytecodeviewer.resources.importing.impl.ZipResourceImporter; + /** * @author Konloch * @since 6/26/2021 diff --git a/src/main/java/the/bytecode/club/bytecodeviewer/resources/importing/ImportResource.java b/src/main/java/the/bytecode/club/bytecodeviewer/resources/importing/ImportResource.java index 710f8cc2..d8771886 100644 --- a/src/main/java/the/bytecode/club/bytecodeviewer/resources/importing/ImportResource.java +++ b/src/main/java/the/bytecode/club/bytecodeviewer/resources/importing/ImportResource.java @@ -1,10 +1,3 @@ -package the.bytecode.club.bytecodeviewer.resources.importing; - -import java.io.File; -import org.apache.commons.io.FilenameUtils; -import the.bytecode.club.bytecodeviewer.BytecodeViewer; -import the.bytecode.club.bytecodeviewer.Settings; - /*************************************************************************** * Bytecode Viewer (BCV) - Java & Android Reverse Engineering Suite * * Copyright (C) 2014 Konloch - Konloch.com / BytecodeViewer.com * @@ -23,6 +16,13 @@ import the.bytecode.club.bytecodeviewer.Settings; * along with this program. If not, see . * ***************************************************************************/ +package the.bytecode.club.bytecodeviewer.resources.importing; + +import java.io.File; +import org.apache.commons.io.FilenameUtils; +import the.bytecode.club.bytecodeviewer.BytecodeViewer; +import the.bytecode.club.bytecodeviewer.Settings; + /** * @author Konloch */ diff --git a/src/main/java/the/bytecode/club/bytecodeviewer/resources/importing/Importer.java b/src/main/java/the/bytecode/club/bytecodeviewer/resources/importing/Importer.java index 898912ca..4fae945d 100644 --- a/src/main/java/the/bytecode/club/bytecodeviewer/resources/importing/Importer.java +++ b/src/main/java/the/bytecode/club/bytecodeviewer/resources/importing/Importer.java @@ -1,7 +1,3 @@ -package the.bytecode.club.bytecodeviewer.resources.importing; - -import java.io.File; - /*************************************************************************** * Bytecode Viewer (BCV) - Java & Android Reverse Engineering Suite * * Copyright (C) 2014 Konloch - Konloch.com / BytecodeViewer.com * @@ -20,6 +16,10 @@ import java.io.File; * along with this program. If not, see . * ***************************************************************************/ +package the.bytecode.club.bytecodeviewer.resources.importing; + +import java.io.File; + /** * @author Konloch * @since 6/26/2021 diff --git a/src/main/java/the/bytecode/club/bytecodeviewer/resources/importing/impl/APKResourceImporter.java b/src/main/java/the/bytecode/club/bytecodeviewer/resources/importing/impl/APKResourceImporter.java index e0e96842..760917f9 100644 --- a/src/main/java/the/bytecode/club/bytecodeviewer/resources/importing/impl/APKResourceImporter.java +++ b/src/main/java/the/bytecode/club/bytecodeviewer/resources/importing/impl/APKResourceImporter.java @@ -1,20 +1,3 @@ -package the.bytecode.club.bytecodeviewer.resources.importing.impl; - -import java.io.File; -import org.apache.commons.io.FileUtils; -import the.bytecode.club.bytecodeviewer.BytecodeViewer; -import the.bytecode.club.bytecodeviewer.resources.ResourceContainer; -import the.bytecode.club.bytecodeviewer.resources.ResourceContainerImporter; -import the.bytecode.club.bytecodeviewer.resources.importing.Importer; -import the.bytecode.club.bytecodeviewer.util.APKTool; -import the.bytecode.club.bytecodeviewer.util.Dex2Jar; -import the.bytecode.club.bytecodeviewer.util.Enjarify; -import the.bytecode.club.bytecodeviewer.util.JarUtils; -import the.bytecode.club.bytecodeviewer.util.MiscUtils; - -import static the.bytecode.club.bytecodeviewer.Constants.fs; -import static the.bytecode.club.bytecodeviewer.Constants.tempDirectory; - /*************************************************************************** * Bytecode Viewer (BCV) - Java & Android Reverse Engineering Suite * * Copyright (C) 2014 Konloch - Konloch.com / BytecodeViewer.com * @@ -33,6 +16,23 @@ import static the.bytecode.club.bytecodeviewer.Constants.tempDirectory; * along with this program. If not, see . * ***************************************************************************/ +package the.bytecode.club.bytecodeviewer.resources.importing.impl; + +import java.io.File; +import org.apache.commons.io.FileUtils; +import the.bytecode.club.bytecodeviewer.BytecodeViewer; +import the.bytecode.club.bytecodeviewer.resources.ResourceContainer; +import the.bytecode.club.bytecodeviewer.resources.ResourceContainerImporter; +import the.bytecode.club.bytecodeviewer.resources.importing.Importer; +import the.bytecode.club.bytecodeviewer.util.APKTool; +import the.bytecode.club.bytecodeviewer.util.Dex2Jar; +import the.bytecode.club.bytecodeviewer.util.Enjarify; +import the.bytecode.club.bytecodeviewer.util.JarUtils; +import the.bytecode.club.bytecodeviewer.util.MiscUtils; + +import static the.bytecode.club.bytecodeviewer.Constants.fs; +import static the.bytecode.club.bytecodeviewer.Constants.tempDirectory; + /** * @author Konloch * @since 6/26/2021 diff --git a/src/main/java/the/bytecode/club/bytecodeviewer/resources/importing/impl/ClassResourceImporter.java b/src/main/java/the/bytecode/club/bytecodeviewer/resources/importing/impl/ClassResourceImporter.java index 64d76c69..b6b1c19a 100644 --- a/src/main/java/the/bytecode/club/bytecodeviewer/resources/importing/impl/ClassResourceImporter.java +++ b/src/main/java/the/bytecode/club/bytecodeviewer/resources/importing/impl/ClassResourceImporter.java @@ -1,16 +1,3 @@ -package the.bytecode.club.bytecodeviewer.resources.importing.impl; - -import java.io.File; -import java.io.FileInputStream; -import org.apache.commons.io.FilenameUtils; -import org.objectweb.asm.tree.ClassNode; -import the.bytecode.club.bytecodeviewer.BytecodeViewer; -import the.bytecode.club.bytecodeviewer.resources.ResourceContainer; -import the.bytecode.club.bytecodeviewer.resources.importing.Importer; -import the.bytecode.club.bytecodeviewer.util.FileHeaderUtils; -import the.bytecode.club.bytecodeviewer.util.JarUtils; -import the.bytecode.club.bytecodeviewer.util.MiscUtils; - /*************************************************************************** * Bytecode Viewer (BCV) - Java & Android Reverse Engineering Suite * * Copyright (C) 2014 Konloch - Konloch.com / BytecodeViewer.com * @@ -29,6 +16,19 @@ import the.bytecode.club.bytecodeviewer.util.MiscUtils; * along with this program. If not, see . * ***************************************************************************/ +package the.bytecode.club.bytecodeviewer.resources.importing.impl; + +import java.io.File; +import java.io.FileInputStream; +import org.apache.commons.io.FilenameUtils; +import org.objectweb.asm.tree.ClassNode; +import the.bytecode.club.bytecodeviewer.BytecodeViewer; +import the.bytecode.club.bytecodeviewer.resources.ResourceContainer; +import the.bytecode.club.bytecodeviewer.resources.importing.Importer; +import the.bytecode.club.bytecodeviewer.util.FileHeaderUtils; +import the.bytecode.club.bytecodeviewer.util.JarUtils; +import the.bytecode.club.bytecodeviewer.util.MiscUtils; + /** * @author Konloch * @since 6/26/2021 diff --git a/src/main/java/the/bytecode/club/bytecodeviewer/resources/importing/impl/DEXResourceImporter.java b/src/main/java/the/bytecode/club/bytecodeviewer/resources/importing/impl/DEXResourceImporter.java index 3a01d67f..c08facad 100644 --- a/src/main/java/the/bytecode/club/bytecodeviewer/resources/importing/impl/DEXResourceImporter.java +++ b/src/main/java/the/bytecode/club/bytecodeviewer/resources/importing/impl/DEXResourceImporter.java @@ -1,18 +1,3 @@ -package the.bytecode.club.bytecodeviewer.resources.importing.impl; - -import java.io.File; -import org.apache.commons.io.FileUtils; -import the.bytecode.club.bytecodeviewer.BytecodeViewer; -import the.bytecode.club.bytecodeviewer.resources.ResourceContainer; -import the.bytecode.club.bytecodeviewer.resources.ResourceContainerImporter; -import the.bytecode.club.bytecodeviewer.resources.importing.Importer; -import the.bytecode.club.bytecodeviewer.util.Dex2Jar; -import the.bytecode.club.bytecodeviewer.util.Enjarify; -import the.bytecode.club.bytecodeviewer.util.MiscUtils; - -import static the.bytecode.club.bytecodeviewer.Constants.fs; -import static the.bytecode.club.bytecodeviewer.Constants.tempDirectory; - /*************************************************************************** * Bytecode Viewer (BCV) - Java & Android Reverse Engineering Suite * * Copyright (C) 2014 Konloch - Konloch.com / BytecodeViewer.com * @@ -31,6 +16,21 @@ import static the.bytecode.club.bytecodeviewer.Constants.tempDirectory; * along with this program. If not, see . * ***************************************************************************/ +package the.bytecode.club.bytecodeviewer.resources.importing.impl; + +import java.io.File; +import org.apache.commons.io.FileUtils; +import the.bytecode.club.bytecodeviewer.BytecodeViewer; +import the.bytecode.club.bytecodeviewer.resources.ResourceContainer; +import the.bytecode.club.bytecodeviewer.resources.ResourceContainerImporter; +import the.bytecode.club.bytecodeviewer.resources.importing.Importer; +import the.bytecode.club.bytecodeviewer.util.Dex2Jar; +import the.bytecode.club.bytecodeviewer.util.Enjarify; +import the.bytecode.club.bytecodeviewer.util.MiscUtils; + +import static the.bytecode.club.bytecodeviewer.Constants.fs; +import static the.bytecode.club.bytecodeviewer.Constants.tempDirectory; + /** * @author Konloch * @since 6/26/2021 diff --git a/src/main/java/the/bytecode/club/bytecodeviewer/resources/importing/impl/DirectoryResourceImporter.java b/src/main/java/the/bytecode/club/bytecodeviewer/resources/importing/impl/DirectoryResourceImporter.java index dcc6a4d4..a8e09b9b 100644 --- a/src/main/java/the/bytecode/club/bytecodeviewer/resources/importing/impl/DirectoryResourceImporter.java +++ b/src/main/java/the/bytecode/club/bytecodeviewer/resources/importing/impl/DirectoryResourceImporter.java @@ -1,3 +1,21 @@ +/*************************************************************************** + * Bytecode Viewer (BCV) - Java & Android Reverse Engineering Suite * + * Copyright (C) 2014 Konloch - Konloch.com / BytecodeViewer.com * + * * + * This program is free software: you can redistribute it and/or modify * + * it under the terms of the GNU General Public License as published by * + * the Free Software Foundation, either version 3 of the License, or * + * (at your option) any later version. * + * * + * This program is distributed in the hope that it will be useful, * + * but WITHOUT ANY WARRANTY; without even the implied warranty of * + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * + * GNU General Public License for more details. * + * * + * You should have received a copy of the GNU General Public License * + * along with this program. If not, see . * + ***************************************************************************/ + package the.bytecode.club.bytecodeviewer.resources.importing.impl; import java.io.File; @@ -17,24 +35,6 @@ import the.bytecode.club.bytecodeviewer.util.FileHeaderUtils; import the.bytecode.club.bytecodeviewer.util.JarUtils; import the.bytecode.club.bytecodeviewer.util.MiscUtils; -/*************************************************************************** - * Bytecode Viewer (BCV) - Java & Android Reverse Engineering Suite * - * Copyright (C) 2014 Konloch - Konloch.com / BytecodeViewer.com * - * * - * This program is free software: you can redistribute it and/or modify * - * it under the terms of the GNU General Public License as published by * - * the Free Software Foundation, either version 3 of the License, or * - * (at your option) any later version. * - * * - * This program is distributed in the hope that it will be useful, * - * but WITHOUT ANY WARRANTY; without even the implied warranty of * - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * - * GNU General Public License for more details. * - * * - * You should have received a copy of the GNU General Public License * - * along with this program. If not, see . * - ***************************************************************************/ - /** * @author Konloch * @since 6/26/2021 diff --git a/src/main/java/the/bytecode/club/bytecodeviewer/resources/importing/impl/FileResourceImporter.java b/src/main/java/the/bytecode/club/bytecodeviewer/resources/importing/impl/FileResourceImporter.java index ed2fbaa3..358cec07 100644 --- a/src/main/java/the/bytecode/club/bytecodeviewer/resources/importing/impl/FileResourceImporter.java +++ b/src/main/java/the/bytecode/club/bytecodeviewer/resources/importing/impl/FileResourceImporter.java @@ -1,11 +1,3 @@ -package the.bytecode.club.bytecodeviewer.resources.importing.impl; - -import java.io.File; -import the.bytecode.club.bytecodeviewer.BytecodeViewer; -import the.bytecode.club.bytecodeviewer.resources.ResourceContainer; -import the.bytecode.club.bytecodeviewer.resources.ResourceContainerImporter; -import the.bytecode.club.bytecodeviewer.resources.importing.Importer; - /*************************************************************************** * Bytecode Viewer (BCV) - Java & Android Reverse Engineering Suite * * Copyright (C) 2014 Konloch - Konloch.com / BytecodeViewer.com * @@ -24,6 +16,14 @@ import the.bytecode.club.bytecodeviewer.resources.importing.Importer; * along with this program. If not, see . * ***************************************************************************/ +package the.bytecode.club.bytecodeviewer.resources.importing.impl; + +import java.io.File; +import the.bytecode.club.bytecodeviewer.BytecodeViewer; +import the.bytecode.club.bytecodeviewer.resources.ResourceContainer; +import the.bytecode.club.bytecodeviewer.resources.ResourceContainerImporter; +import the.bytecode.club.bytecodeviewer.resources.importing.Importer; + /** * @author Konloch * @since 6/26/2021 diff --git a/src/main/java/the/bytecode/club/bytecodeviewer/resources/importing/impl/XAPKResourceImporter.java b/src/main/java/the/bytecode/club/bytecodeviewer/resources/importing/impl/XAPKResourceImporter.java index af3c2efa..6ed67755 100644 --- a/src/main/java/the/bytecode/club/bytecodeviewer/resources/importing/impl/XAPKResourceImporter.java +++ b/src/main/java/the/bytecode/club/bytecodeviewer/resources/importing/impl/XAPKResourceImporter.java @@ -1,3 +1,21 @@ +/*************************************************************************** + * Bytecode Viewer (BCV) - Java & Android Reverse Engineering Suite * + * Copyright (C) 2014 Konloch - Konloch.com / BytecodeViewer.com * + * * + * This program is free software: you can redistribute it and/or modify * + * it under the terms of the GNU General Public License as published by * + * the Free Software Foundation, either version 3 of the License, or * + * (at your option) any later version. * + * * + * This program is distributed in the hope that it will be useful, * + * but WITHOUT ANY WARRANTY; without even the implied warranty of * + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * + * GNU General Public License for more details. * + * * + * You should have received a copy of the GNU General Public License * + * along with this program. If not, see . * + ***************************************************************************/ + package the.bytecode.club.bytecodeviewer.resources.importing.impl; import java.io.File; @@ -21,24 +39,6 @@ import the.bytecode.club.bytecodeviewer.util.MiscUtils; import static the.bytecode.club.bytecodeviewer.Constants.fs; import static the.bytecode.club.bytecodeviewer.Constants.tempDirectory; -/*************************************************************************** - * Bytecode Viewer (BCV) - Java & Android Reverse Engineering Suite * - * Copyright (C) 2014 Konloch - Konloch.com / BytecodeViewer.com * - * * - * This program is free software: you can redistribute it and/or modify * - * it under the terms of the GNU General Public License as published by * - * the Free Software Foundation, either version 3 of the License, or * - * (at your option) any later version. * - * * - * This program is distributed in the hope that it will be useful, * - * but WITHOUT ANY WARRANTY; without even the implied warranty of * - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * - * GNU General Public License for more details. * - * * - * You should have received a copy of the GNU General Public License * - * along with this program. If not, see . * - ***************************************************************************/ - /** * Compressed APKs (XAPK) * diff --git a/src/main/java/the/bytecode/club/bytecodeviewer/resources/importing/impl/ZipResourceImporter.java b/src/main/java/the/bytecode/club/bytecodeviewer/resources/importing/impl/ZipResourceImporter.java index f1c4d9bc..0ab39974 100644 --- a/src/main/java/the/bytecode/club/bytecodeviewer/resources/importing/impl/ZipResourceImporter.java +++ b/src/main/java/the/bytecode/club/bytecodeviewer/resources/importing/impl/ZipResourceImporter.java @@ -1,11 +1,3 @@ -package the.bytecode.club.bytecodeviewer.resources.importing.impl; - -import java.io.File; -import the.bytecode.club.bytecodeviewer.BytecodeViewer; -import the.bytecode.club.bytecodeviewer.resources.ResourceContainer; -import the.bytecode.club.bytecodeviewer.resources.ResourceContainerImporter; -import the.bytecode.club.bytecodeviewer.resources.importing.Importer; - /*************************************************************************** * Bytecode Viewer (BCV) - Java & Android Reverse Engineering Suite * * Copyright (C) 2014 Konloch - Konloch.com / BytecodeViewer.com * @@ -24,6 +16,14 @@ import the.bytecode.club.bytecodeviewer.resources.importing.Importer; * along with this program. If not, see . * ***************************************************************************/ +package the.bytecode.club.bytecodeviewer.resources.importing.impl; + +import java.io.File; +import the.bytecode.club.bytecodeviewer.BytecodeViewer; +import the.bytecode.club.bytecodeviewer.resources.ResourceContainer; +import the.bytecode.club.bytecodeviewer.resources.ResourceContainerImporter; +import the.bytecode.club.bytecodeviewer.resources.importing.Importer; + /** * @author Konloch * @since 6/26/2021 diff --git a/src/main/java/the/bytecode/club/bytecodeviewer/searching/BackgroundSearchThread.java b/src/main/java/the/bytecode/club/bytecodeviewer/searching/BackgroundSearchThread.java index 1b510a4e..94b60cce 100644 --- a/src/main/java/the/bytecode/club/bytecodeviewer/searching/BackgroundSearchThread.java +++ b/src/main/java/the/bytecode/club/bytecodeviewer/searching/BackgroundSearchThread.java @@ -1,7 +1,3 @@ -package the.bytecode.club.bytecodeviewer.searching; - -import the.bytecode.club.bytecodeviewer.BytecodeViewer; - /*************************************************************************** * Bytecode Viewer (BCV) - Java & Android Reverse Engineering Suite * * Copyright (C) 2014 Konloch - Konloch.com / BytecodeViewer.com * @@ -20,6 +16,10 @@ import the.bytecode.club.bytecodeviewer.BytecodeViewer; * along with this program. If not, see . * ***************************************************************************/ +package the.bytecode.club.bytecodeviewer.searching; + +import the.bytecode.club.bytecodeviewer.BytecodeViewer; + /** * A simple class to make searching run in a background thread. * diff --git a/src/main/java/the/bytecode/club/bytecodeviewer/searching/EnterKeyEvent.java b/src/main/java/the/bytecode/club/bytecodeviewer/searching/EnterKeyEvent.java index 39adaa61..2fd6a045 100644 --- a/src/main/java/the/bytecode/club/bytecodeviewer/searching/EnterKeyEvent.java +++ b/src/main/java/the/bytecode/club/bytecodeviewer/searching/EnterKeyEvent.java @@ -1,9 +1,3 @@ -package the.bytecode.club.bytecodeviewer.searching; - -import java.awt.event.KeyEvent; -import java.awt.event.KeyListener; -import the.bytecode.club.bytecodeviewer.BytecodeViewer; - /*************************************************************************** * Bytecode Viewer (BCV) - Java & Android Reverse Engineering Suite * * Copyright (C) 2014 Konloch - Konloch.com / BytecodeViewer.com * @@ -22,6 +16,12 @@ import the.bytecode.club.bytecodeviewer.BytecodeViewer; * along with this program. If not, see . * ***************************************************************************/ +package the.bytecode.club.bytecodeviewer.searching; + +import java.awt.event.KeyEvent; +import java.awt.event.KeyListener; +import the.bytecode.club.bytecodeviewer.BytecodeViewer; + /** * searchBoxPane search triggering via enter key * diff --git a/src/main/java/the/bytecode/club/bytecodeviewer/searching/LDCSearchTreeNodeResult.java b/src/main/java/the/bytecode/club/bytecodeviewer/searching/LDCSearchTreeNodeResult.java index 16565d6e..a12465b7 100644 --- a/src/main/java/the/bytecode/club/bytecodeviewer/searching/LDCSearchTreeNodeResult.java +++ b/src/main/java/the/bytecode/club/bytecodeviewer/searching/LDCSearchTreeNodeResult.java @@ -1,11 +1,3 @@ -package the.bytecode.club.bytecodeviewer.searching; - -import javax.swing.tree.DefaultMutableTreeNode; -import org.objectweb.asm.tree.ClassNode; -import org.objectweb.asm.tree.FieldNode; -import org.objectweb.asm.tree.MethodNode; -import the.bytecode.club.bytecodeviewer.resources.ResourceContainer; - /*************************************************************************** * Bytecode Viewer (BCV) - Java & Android Reverse Engineering Suite * * Copyright (C) 2014 Konloch - Konloch.com / BytecodeViewer.com * @@ -24,6 +16,14 @@ import the.bytecode.club.bytecodeviewer.resources.ResourceContainer; * along with this program. If not, see . * ***************************************************************************/ +package the.bytecode.club.bytecodeviewer.searching; + +import javax.swing.tree.DefaultMutableTreeNode; +import org.objectweb.asm.tree.ClassNode; +import org.objectweb.asm.tree.FieldNode; +import org.objectweb.asm.tree.MethodNode; +import the.bytecode.club.bytecodeviewer.resources.ResourceContainer; + /** * @author Konloch * @since 7/29/2021 diff --git a/src/main/java/the/bytecode/club/bytecodeviewer/searching/RegexInsnFinder.java b/src/main/java/the/bytecode/club/bytecodeviewer/searching/RegexInsnFinder.java index 7f38a3b4..0121d1b5 100644 --- a/src/main/java/the/bytecode/club/bytecodeviewer/searching/RegexInsnFinder.java +++ b/src/main/java/the/bytecode/club/bytecodeviewer/searching/RegexInsnFinder.java @@ -1,3 +1,21 @@ +/*************************************************************************** + * Bytecode Viewer (BCV) - Java & Android Reverse Engineering Suite * + * Copyright (C) 2014 Konloch - Konloch.com / BytecodeViewer.com * + * * + * This program is free software: you can redistribute it and/or modify * + * it under the terms of the GNU General Public License as published by * + * the Free Software Foundation, either version 3 of the License, or * + * (at your option) any later version. * + * * + * This program is distributed in the hope that it will be useful, * + * but WITHOUT ANY WARRANTY; without even the implied warranty of * + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * + * GNU General Public License for more details. * + * * + * You should have received a copy of the GNU General Public License * + * along with this program. If not, see . * + ***************************************************************************/ + package the.bytecode.club.bytecodeviewer.searching; import java.rmi.UnexpectedException; @@ -20,24 +38,6 @@ import org.objectweb.asm.tree.TypeInsnNode; import org.objectweb.asm.tree.VarInsnNode; import the.bytecode.club.bytecodeviewer.BytecodeViewer; -/*************************************************************************** - * Bytecode Viewer (BCV) - Java & Android Reverse Engineering Suite * - * Copyright (C) 2014 Konloch - Konloch.com / BytecodeViewer.com * - * * - * This program is free software: you can redistribute it and/or modify * - * it under the terms of the GNU General Public License as published by * - * the Free Software Foundation, either version 3 of the License, or * - * (at your option) any later version. * - * * - * This program is distributed in the hope that it will be useful, * - * but WITHOUT ANY WARRANTY; without even the implied warranty of * - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * - * GNU General Public License for more details. * - * * - * You should have received a copy of the GNU General Public License * - * along with this program. If not, see . * - ***************************************************************************/ - /** * An instruction finder that finds regex patterns in a method's instruction * list and returns an array with the found instructions. diff --git a/src/main/java/the/bytecode/club/bytecodeviewer/searching/SearchPanel.java b/src/main/java/the/bytecode/club/bytecodeviewer/searching/SearchPanel.java index 45246dda..84b79e2f 100644 --- a/src/main/java/the/bytecode/club/bytecodeviewer/searching/SearchPanel.java +++ b/src/main/java/the/bytecode/club/bytecodeviewer/searching/SearchPanel.java @@ -1,9 +1,3 @@ -package the.bytecode.club.bytecodeviewer.searching; - -import javax.swing.JPanel; -import org.objectweb.asm.tree.ClassNode; -import the.bytecode.club.bytecodeviewer.resources.ResourceContainer; - /*************************************************************************** * Bytecode Viewer (BCV) - Java & Android Reverse Engineering Suite * * Copyright (C) 2014 Konloch - Konloch.com / BytecodeViewer.com * @@ -22,6 +16,12 @@ import the.bytecode.club.bytecodeviewer.resources.ResourceContainer; * along with this program. If not, see . * ***************************************************************************/ +package the.bytecode.club.bytecodeviewer.searching; + +import javax.swing.JPanel; +import org.objectweb.asm.tree.ClassNode; +import the.bytecode.club.bytecodeviewer.resources.ResourceContainer; + /** * @author Konloch * @author WaterWolf diff --git a/src/main/java/the/bytecode/club/bytecodeviewer/searching/impl/FieldCallSearch.java b/src/main/java/the/bytecode/club/bytecodeviewer/searching/impl/FieldCallSearch.java index dbad22ac..60f7d8e9 100644 --- a/src/main/java/the/bytecode/club/bytecodeviewer/searching/impl/FieldCallSearch.java +++ b/src/main/java/the/bytecode/club/bytecodeviewer/searching/impl/FieldCallSearch.java @@ -1,13 +1,3 @@ -package the.bytecode.club.bytecodeviewer.searching.impl; - -import java.util.Iterator; -import org.objectweb.asm.tree.AbstractInsnNode; -import org.objectweb.asm.tree.ClassNode; -import org.objectweb.asm.tree.FieldInsnNode; -import org.objectweb.asm.tree.InsnList; -import org.objectweb.asm.tree.MethodNode; -import the.bytecode.club.bytecodeviewer.resources.ResourceContainer; - /*************************************************************************** * Bytecode Viewer (BCV) - Java & Android Reverse Engineering Suite * * Copyright (C) 2014 Konloch - Konloch.com / BytecodeViewer.com * @@ -26,6 +16,16 @@ import the.bytecode.club.bytecodeviewer.resources.ResourceContainer; * along with this program. If not, see . * ***************************************************************************/ +package the.bytecode.club.bytecodeviewer.searching.impl; + +import java.util.Iterator; +import org.objectweb.asm.tree.AbstractInsnNode; +import org.objectweb.asm.tree.ClassNode; +import org.objectweb.asm.tree.FieldInsnNode; +import org.objectweb.asm.tree.InsnList; +import org.objectweb.asm.tree.MethodNode; +import the.bytecode.club.bytecodeviewer.resources.ResourceContainer; + /** * Field call searching * diff --git a/src/main/java/the/bytecode/club/bytecodeviewer/searching/impl/LDCSearch.java b/src/main/java/the/bytecode/club/bytecodeviewer/searching/impl/LDCSearch.java index bc8f1f2d..521a7be4 100644 --- a/src/main/java/the/bytecode/club/bytecodeviewer/searching/impl/LDCSearch.java +++ b/src/main/java/the/bytecode/club/bytecodeviewer/searching/impl/LDCSearch.java @@ -1,3 +1,21 @@ +/*************************************************************************** + * Bytecode Viewer (BCV) - Java & Android Reverse Engineering Suite * + * Copyright (C) 2014 Konloch - Konloch.com / BytecodeViewer.com * + * * + * This program is free software: you can redistribute it and/or modify * + * it under the terms of the GNU General Public License as published by * + * the Free Software Foundation, either version 3 of the License, or * + * (at your option) any later version. * + * * + * This program is distributed in the hope that it will be useful, * + * but WITHOUT ANY WARRANTY; without even the implied warranty of * + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * + * GNU General Public License for more details. * + * * + * You should have received a copy of the GNU General Public License * + * along with this program. If not, see . * + ***************************************************************************/ + package the.bytecode.club.bytecodeviewer.searching.impl; import java.awt.*; @@ -19,24 +37,6 @@ import the.bytecode.club.bytecodeviewer.searching.SearchPanel; import the.bytecode.club.bytecodeviewer.translation.TranslatedComponents; import the.bytecode.club.bytecodeviewer.translation.components.TranslatedJLabel; -/*************************************************************************** - * Bytecode Viewer (BCV) - Java & Android Reverse Engineering Suite * - * Copyright (C) 2014 Konloch - Konloch.com / BytecodeViewer.com * - * * - * This program is free software: you can redistribute it and/or modify * - * it under the terms of the GNU General Public License as published by * - * the Free Software Foundation, either version 3 of the License, or * - * (at your option) any later version. * - * * - * This program is distributed in the hope that it will be useful, * - * but WITHOUT ANY WARRANTY; without even the implied warranty of * - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * - * GNU General Public License for more details. * - * * - * You should have received a copy of the GNU General Public License * - * along with this program. If not, see . * - ***************************************************************************/ - /** * LDC Searching * diff --git a/src/main/java/the/bytecode/club/bytecodeviewer/searching/impl/MemberWithAnnotationSearch.java b/src/main/java/the/bytecode/club/bytecodeviewer/searching/impl/MemberWithAnnotationSearch.java index 02eb4fac..b425e82c 100644 --- a/src/main/java/the/bytecode/club/bytecodeviewer/searching/impl/MemberWithAnnotationSearch.java +++ b/src/main/java/the/bytecode/club/bytecodeviewer/searching/impl/MemberWithAnnotationSearch.java @@ -1,3 +1,21 @@ +/*************************************************************************** + * Bytecode Viewer (BCV) - Java & Android Reverse Engineering Suite * + * Copyright (C) 2014 Konloch - Konloch.com / BytecodeViewer.com * + * * + * This program is free software: you can redistribute it and/or modify * + * it under the terms of the GNU General Public License as published by * + * the Free Software Foundation, either version 3 of the License, or * + * (at your option) any later version. * + * * + * This program is distributed in the hope that it will be useful, * + * but WITHOUT ANY WARRANTY; without even the implied warranty of * + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * + * GNU General Public License for more details. * + * * + * You should have received a copy of the GNU General Public License * + * along with this program. If not, see . * + ***************************************************************************/ + package the.bytecode.club.bytecodeviewer.searching.impl; import org.objectweb.asm.Type; @@ -17,24 +35,6 @@ import java.awt.*; import java.util.Arrays; import java.util.List; -/*************************************************************************** - * Bytecode Viewer (BCV) - Java & Android Reverse Engineering Suite * - * Copyright (C) 2014 Konloch - Konloch.com / BytecodeViewer.com * - * * - * This program is free software: you can redistribute it and/or modify * - * it under the terms of the GNU General Public License as published by * - * the Free Software Foundation, either version 3 of the License, or * - * (at your option) any later version. * - * * - * This program is distributed in the hope that it will be useful, * - * but WITHOUT ANY WARRANTY; without even the implied warranty of * - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * - * GNU General Public License for more details. * - * * - * You should have received a copy of the GNU General Public License * - * along with this program. If not, see . * - ***************************************************************************/ - /** * Annotation Searching * diff --git a/src/main/java/the/bytecode/club/bytecodeviewer/searching/impl/MethodCallSearch.java b/src/main/java/the/bytecode/club/bytecodeviewer/searching/impl/MethodCallSearch.java index 26ffa6a1..c1f78266 100644 --- a/src/main/java/the/bytecode/club/bytecodeviewer/searching/impl/MethodCallSearch.java +++ b/src/main/java/the/bytecode/club/bytecodeviewer/searching/impl/MethodCallSearch.java @@ -1,3 +1,21 @@ +/*************************************************************************** + * Bytecode Viewer (BCV) - Java & Android Reverse Engineering Suite * + * Copyright (C) 2014 Konloch - Konloch.com / BytecodeViewer.com * + * * + * This program is free software: you can redistribute it and/or modify * + * it under the terms of the GNU General Public License as published by * + * the Free Software Foundation, either version 3 of the License, or * + * (at your option) any later version. * + * * + * This program is distributed in the hope that it will be useful, * + * but WITHOUT ANY WARRANTY; without even the implied warranty of * + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * + * GNU General Public License for more details. * + * * + * You should have received a copy of the GNU General Public License * + * along with this program. If not, see . * + ***************************************************************************/ + package the.bytecode.club.bytecodeviewer.searching.impl; import eu.bibl.banalysis.asm.desc.OpcodeInfo; @@ -20,24 +38,6 @@ import the.bytecode.club.bytecodeviewer.searching.SearchPanel; import the.bytecode.club.bytecodeviewer.translation.TranslatedComponents; import the.bytecode.club.bytecodeviewer.translation.components.TranslatedJLabel; -/*************************************************************************** - * Bytecode Viewer (BCV) - Java & Android Reverse Engineering Suite * - * Copyright (C) 2014 Konloch - Konloch.com / BytecodeViewer.com * - * * - * This program is free software: you can redistribute it and/or modify * - * it under the terms of the GNU General Public License as published by * - * the Free Software Foundation, either version 3 of the License, or * - * (at your option) any later version. * - * * - * This program is distributed in the hope that it will be useful, * - * but WITHOUT ANY WARRANTY; without even the implied warranty of * - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * - * GNU General Public License for more details. * - * * - * You should have received a copy of the GNU General Public License * - * along with this program. If not, see . * - ***************************************************************************/ - /** * Method call searching * diff --git a/src/main/java/the/bytecode/club/bytecodeviewer/searching/impl/RegexSearch.java b/src/main/java/the/bytecode/club/bytecodeviewer/searching/impl/RegexSearch.java index 43afa10a..9a940a50 100644 --- a/src/main/java/the/bytecode/club/bytecodeviewer/searching/impl/RegexSearch.java +++ b/src/main/java/the/bytecode/club/bytecodeviewer/searching/impl/RegexSearch.java @@ -1,3 +1,21 @@ +/*************************************************************************** + * Bytecode Viewer (BCV) - Java & Android Reverse Engineering Suite * + * Copyright (C) 2014 Konloch - Konloch.com / BytecodeViewer.com * + * * + * This program is free software: you can redistribute it and/or modify * + * it under the terms of the GNU General Public License as published by * + * the Free Software Foundation, either version 3 of the License, or * + * (at your option) any later version. * + * * + * This program is distributed in the hope that it will be useful, * + * but WITHOUT ANY WARRANTY; without even the implied warranty of * + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * + * GNU General Public License for more details. * + * * + * You should have received a copy of the GNU General Public License * + * along with this program. If not, see . * + ***************************************************************************/ + package the.bytecode.club.bytecodeviewer.searching.impl; import java.awt.*; @@ -20,24 +38,6 @@ import the.bytecode.club.bytecodeviewer.translation.components.TranslatedJLabel; import static the.bytecode.club.bytecodeviewer.searching.RegexInsnFinder.processRegex; -/*************************************************************************** - * Bytecode Viewer (BCV) - Java & Android Reverse Engineering Suite * - * Copyright (C) 2014 Konloch - Konloch.com / BytecodeViewer.com * - * * - * This program is free software: you can redistribute it and/or modify * - * it under the terms of the GNU General Public License as published by * - * the Free Software Foundation, either version 3 of the License, or * - * (at your option) any later version. * - * * - * This program is distributed in the hope that it will be useful, * - * but WITHOUT ANY WARRANTY; without even the implied warranty of * - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * - * GNU General Public License for more details. * - * * - * You should have received a copy of the GNU General Public License * - * along with this program. If not, see . * - ***************************************************************************/ - /** * Regex Searching * diff --git a/src/main/java/the/bytecode/club/bytecodeviewer/translation/Language.java b/src/main/java/the/bytecode/club/bytecodeviewer/translation/Language.java index b95769e0..b50acc02 100644 --- a/src/main/java/the/bytecode/club/bytecodeviewer/translation/Language.java +++ b/src/main/java/the/bytecode/club/bytecodeviewer/translation/Language.java @@ -1,21 +1,3 @@ -package the.bytecode.club.bytecodeviewer.translation; - -import com.google.gson.reflect.TypeToken; -import java.io.IOException; -import java.util.Arrays; -import java.util.HashMap; -import java.util.HashSet; -import java.util.LinkedHashMap; -import java.util.LinkedHashSet; -import java.util.Map; -import java.util.Set; -import org.apache.commons.collections4.map.LinkedMap; -import the.bytecode.club.bytecodeviewer.BytecodeViewer; -import the.bytecode.club.bytecodeviewer.Constants; -import the.bytecode.club.bytecodeviewer.api.BCV; -import the.bytecode.club.bytecodeviewer.resources.IconResources; -import the.bytecode.club.bytecodeviewer.resources.Resource; - /*************************************************************************** * Bytecode Viewer (BCV) - Java & Android Reverse Engineering Suite * * Copyright (C) 2014 Konloch - Konloch.com / BytecodeViewer.com * @@ -34,6 +16,24 @@ import the.bytecode.club.bytecodeviewer.resources.Resource; * along with this program. If not, see . * ***************************************************************************/ +package the.bytecode.club.bytecodeviewer.translation; + +import com.google.gson.reflect.TypeToken; +import java.io.IOException; +import java.util.Arrays; +import java.util.HashMap; +import java.util.HashSet; +import java.util.LinkedHashMap; +import java.util.LinkedHashSet; +import java.util.Map; +import java.util.Set; +import org.apache.commons.collections4.map.LinkedMap; +import the.bytecode.club.bytecodeviewer.BytecodeViewer; +import the.bytecode.club.bytecodeviewer.Constants; +import the.bytecode.club.bytecodeviewer.api.BCV; +import the.bytecode.club.bytecodeviewer.resources.IconResources; +import the.bytecode.club.bytecodeviewer.resources.Resource; + /** * All of the supported languages * diff --git a/src/main/java/the/bytecode/club/bytecodeviewer/translation/TranslatedComponentReference.java b/src/main/java/the/bytecode/club/bytecodeviewer/translation/TranslatedComponentReference.java index e4784348..4d498e87 100644 --- a/src/main/java/the/bytecode/club/bytecodeviewer/translation/TranslatedComponentReference.java +++ b/src/main/java/the/bytecode/club/bytecodeviewer/translation/TranslatedComponentReference.java @@ -1,8 +1,3 @@ -package the.bytecode.club.bytecodeviewer.translation; - -import java.util.ArrayList; -import java.util.List; - /*************************************************************************** * Bytecode Viewer (BCV) - Java & Android Reverse Engineering Suite * * Copyright (C) 2014 Konloch - Konloch.com / BytecodeViewer.com * @@ -21,6 +16,11 @@ import java.util.List; * along with this program. If not, see . * ***************************************************************************/ +package the.bytecode.club.bytecodeviewer.translation; + +import java.util.ArrayList; +import java.util.List; + /** * This class contains the runnable events that update the components for translation * diff --git a/src/main/java/the/bytecode/club/bytecodeviewer/translation/TranslatedComponents.java b/src/main/java/the/bytecode/club/bytecodeviewer/translation/TranslatedComponents.java index 9bbebf6c..fdd3d05f 100644 --- a/src/main/java/the/bytecode/club/bytecodeviewer/translation/TranslatedComponents.java +++ b/src/main/java/the/bytecode/club/bytecodeviewer/translation/TranslatedComponents.java @@ -1,5 +1,3 @@ -package the.bytecode.club.bytecodeviewer.translation; - /*************************************************************************** * Bytecode Viewer (BCV) - Java & Android Reverse Engineering Suite * * Copyright (C) 2014 Konloch - Konloch.com / BytecodeViewer.com * @@ -18,6 +16,8 @@ package the.bytecode.club.bytecodeviewer.translation; * along with this program. If not, see . * ***************************************************************************/ +package the.bytecode.club.bytecodeviewer.translation; + /** * Translation keys for components (updates the component text on language change). * diff --git a/src/main/java/the/bytecode/club/bytecodeviewer/translation/TranslatedStrings.java b/src/main/java/the/bytecode/club/bytecodeviewer/translation/TranslatedStrings.java index dba96134..fdf77bb8 100644 --- a/src/main/java/the/bytecode/club/bytecodeviewer/translation/TranslatedStrings.java +++ b/src/main/java/the/bytecode/club/bytecodeviewer/translation/TranslatedStrings.java @@ -1,10 +1,3 @@ -package the.bytecode.club.bytecodeviewer.translation; - -import java.io.IOException; -import java.util.HashSet; -import java.util.Set; -import the.bytecode.club.bytecodeviewer.api.BCV; - /*************************************************************************** * Bytecode Viewer (BCV) - Java & Android Reverse Engineering Suite * * Copyright (C) 2014 Konloch - Konloch.com / BytecodeViewer.com * @@ -23,6 +16,13 @@ import the.bytecode.club.bytecodeviewer.api.BCV; * along with this program. If not, see . * ***************************************************************************/ +package the.bytecode.club.bytecodeviewer.translation; + +import java.io.IOException; +import java.util.HashSet; +import java.util.Set; +import the.bytecode.club.bytecodeviewer.api.BCV; + /** * Translation keys for constant strings (does not change the component text on language change). * diff --git a/src/main/java/the/bytecode/club/bytecodeviewer/translation/components/TranslatedDefaultMutableTreeNode.java b/src/main/java/the/bytecode/club/bytecodeviewer/translation/components/TranslatedDefaultMutableTreeNode.java index 0f0a0bb8..f0fbac5f 100644 --- a/src/main/java/the/bytecode/club/bytecodeviewer/translation/components/TranslatedDefaultMutableTreeNode.java +++ b/src/main/java/the/bytecode/club/bytecodeviewer/translation/components/TranslatedDefaultMutableTreeNode.java @@ -1,10 +1,3 @@ -package the.bytecode.club.bytecodeviewer.translation.components; - -import javax.swing.tree.DefaultMutableTreeNode; -import javax.swing.tree.DefaultTreeModel; -import the.bytecode.club.bytecodeviewer.translation.TranslatedComponentReference; -import the.bytecode.club.bytecodeviewer.translation.TranslatedComponents; - /*************************************************************************** * Bytecode Viewer (BCV) - Java & Android Reverse Engineering Suite * * Copyright (C) 2014 Konloch - Konloch.com / BytecodeViewer.com * @@ -23,6 +16,13 @@ import the.bytecode.club.bytecodeviewer.translation.TranslatedComponents; * along with this program. If not, see . * ***************************************************************************/ +package the.bytecode.club.bytecodeviewer.translation.components; + +import javax.swing.tree.DefaultMutableTreeNode; +import javax.swing.tree.DefaultTreeModel; +import the.bytecode.club.bytecodeviewer.translation.TranslatedComponentReference; +import the.bytecode.club.bytecodeviewer.translation.TranslatedComponents; + /** * @author Konloch * @since 7/7/2021 diff --git a/src/main/java/the/bytecode/club/bytecodeviewer/translation/components/TranslatedJButton.java b/src/main/java/the/bytecode/club/bytecodeviewer/translation/components/TranslatedJButton.java index db7bee55..7e6e65be 100644 --- a/src/main/java/the/bytecode/club/bytecodeviewer/translation/components/TranslatedJButton.java +++ b/src/main/java/the/bytecode/club/bytecodeviewer/translation/components/TranslatedJButton.java @@ -1,9 +1,3 @@ -package the.bytecode.club.bytecodeviewer.translation.components; - -import javax.swing.JButton; -import the.bytecode.club.bytecodeviewer.translation.TranslatedComponentReference; -import the.bytecode.club.bytecodeviewer.translation.TranslatedComponents; - /*************************************************************************** * Bytecode Viewer (BCV) - Java & Android Reverse Engineering Suite * * Copyright (C) 2014 Konloch - Konloch.com / BytecodeViewer.com * @@ -22,6 +16,12 @@ import the.bytecode.club.bytecodeviewer.translation.TranslatedComponents; * along with this program. If not, see . * ***************************************************************************/ +package the.bytecode.club.bytecodeviewer.translation.components; + +import javax.swing.JButton; +import the.bytecode.club.bytecodeviewer.translation.TranslatedComponentReference; +import the.bytecode.club.bytecodeviewer.translation.TranslatedComponents; + /** * @author Konloch * @since 7/7/2021 diff --git a/src/main/java/the/bytecode/club/bytecodeviewer/translation/components/TranslatedJCheckBox.java b/src/main/java/the/bytecode/club/bytecodeviewer/translation/components/TranslatedJCheckBox.java index 27b1c5a1..b36e0070 100644 --- a/src/main/java/the/bytecode/club/bytecodeviewer/translation/components/TranslatedJCheckBox.java +++ b/src/main/java/the/bytecode/club/bytecodeviewer/translation/components/TranslatedJCheckBox.java @@ -1,9 +1,3 @@ -package the.bytecode.club.bytecodeviewer.translation.components; - -import javax.swing.JCheckBox; -import the.bytecode.club.bytecodeviewer.translation.TranslatedComponentReference; -import the.bytecode.club.bytecodeviewer.translation.TranslatedComponents; - /*************************************************************************** * Bytecode Viewer (BCV) - Java & Android Reverse Engineering Suite * * Copyright (C) 2014 Konloch - Konloch.com / BytecodeViewer.com * @@ -22,6 +16,12 @@ import the.bytecode.club.bytecodeviewer.translation.TranslatedComponents; * along with this program. If not, see . * ***************************************************************************/ +package the.bytecode.club.bytecodeviewer.translation.components; + +import javax.swing.JCheckBox; +import the.bytecode.club.bytecodeviewer.translation.TranslatedComponentReference; +import the.bytecode.club.bytecodeviewer.translation.TranslatedComponents; + /** * @author Konloch * @since 6/30/2021 diff --git a/src/main/java/the/bytecode/club/bytecodeviewer/translation/components/TranslatedJCheckBoxMenuItem.java b/src/main/java/the/bytecode/club/bytecodeviewer/translation/components/TranslatedJCheckBoxMenuItem.java index 5b5489e7..907ad204 100644 --- a/src/main/java/the/bytecode/club/bytecodeviewer/translation/components/TranslatedJCheckBoxMenuItem.java +++ b/src/main/java/the/bytecode/club/bytecodeviewer/translation/components/TranslatedJCheckBoxMenuItem.java @@ -1,9 +1,3 @@ -package the.bytecode.club.bytecodeviewer.translation.components; - -import javax.swing.JCheckBoxMenuItem; -import the.bytecode.club.bytecodeviewer.translation.TranslatedComponentReference; -import the.bytecode.club.bytecodeviewer.translation.TranslatedComponents; - /*************************************************************************** * Bytecode Viewer (BCV) - Java & Android Reverse Engineering Suite * * Copyright (C) 2014 Konloch - Konloch.com / BytecodeViewer.com * @@ -22,6 +16,12 @@ import the.bytecode.club.bytecodeviewer.translation.TranslatedComponents; * along with this program. If not, see . * ***************************************************************************/ +package the.bytecode.club.bytecodeviewer.translation.components; + +import javax.swing.JCheckBoxMenuItem; +import the.bytecode.club.bytecodeviewer.translation.TranslatedComponentReference; +import the.bytecode.club.bytecodeviewer.translation.TranslatedComponents; + /** * @author Konloch * @since 6/28/2021 diff --git a/src/main/java/the/bytecode/club/bytecodeviewer/translation/components/TranslatedJLabel.java b/src/main/java/the/bytecode/club/bytecodeviewer/translation/components/TranslatedJLabel.java index 7fe38534..d55f4bcd 100644 --- a/src/main/java/the/bytecode/club/bytecodeviewer/translation/components/TranslatedJLabel.java +++ b/src/main/java/the/bytecode/club/bytecodeviewer/translation/components/TranslatedJLabel.java @@ -1,9 +1,3 @@ -package the.bytecode.club.bytecodeviewer.translation.components; - -import javax.swing.JLabel; -import the.bytecode.club.bytecodeviewer.translation.TranslatedComponentReference; -import the.bytecode.club.bytecodeviewer.translation.TranslatedComponents; - /*************************************************************************** * Bytecode Viewer (BCV) - Java & Android Reverse Engineering Suite * * Copyright (C) 2014 Konloch - Konloch.com / BytecodeViewer.com * @@ -22,6 +16,12 @@ import the.bytecode.club.bytecodeviewer.translation.TranslatedComponents; * along with this program. If not, see . * ***************************************************************************/ +package the.bytecode.club.bytecodeviewer.translation.components; + +import javax.swing.JLabel; +import the.bytecode.club.bytecodeviewer.translation.TranslatedComponentReference; +import the.bytecode.club.bytecodeviewer.translation.TranslatedComponents; + /** * @author Konloch * @since 7/7/2021 diff --git a/src/main/java/the/bytecode/club/bytecodeviewer/translation/components/TranslatedJMenu.java b/src/main/java/the/bytecode/club/bytecodeviewer/translation/components/TranslatedJMenu.java index 5e5d23ea..156e4606 100644 --- a/src/main/java/the/bytecode/club/bytecodeviewer/translation/components/TranslatedJMenu.java +++ b/src/main/java/the/bytecode/club/bytecodeviewer/translation/components/TranslatedJMenu.java @@ -1,9 +1,3 @@ -package the.bytecode.club.bytecodeviewer.translation.components; - -import javax.swing.JMenu; -import the.bytecode.club.bytecodeviewer.translation.TranslatedComponentReference; -import the.bytecode.club.bytecodeviewer.translation.TranslatedComponents; - /*************************************************************************** * Bytecode Viewer (BCV) - Java & Android Reverse Engineering Suite * * Copyright (C) 2014 Konloch - Konloch.com / BytecodeViewer.com * @@ -22,6 +16,12 @@ import the.bytecode.club.bytecodeviewer.translation.TranslatedComponents; * along with this program. If not, see . * ***************************************************************************/ +package the.bytecode.club.bytecodeviewer.translation.components; + +import javax.swing.JMenu; +import the.bytecode.club.bytecodeviewer.translation.TranslatedComponentReference; +import the.bytecode.club.bytecodeviewer.translation.TranslatedComponents; + /** * @author Konloch * @since 6/28/2021 diff --git a/src/main/java/the/bytecode/club/bytecodeviewer/translation/components/TranslatedJMenuItem.java b/src/main/java/the/bytecode/club/bytecodeviewer/translation/components/TranslatedJMenuItem.java index 979dc279..59c0cb08 100644 --- a/src/main/java/the/bytecode/club/bytecodeviewer/translation/components/TranslatedJMenuItem.java +++ b/src/main/java/the/bytecode/club/bytecodeviewer/translation/components/TranslatedJMenuItem.java @@ -1,9 +1,3 @@ -package the.bytecode.club.bytecodeviewer.translation.components; - -import javax.swing.JMenuItem; -import the.bytecode.club.bytecodeviewer.translation.TranslatedComponentReference; -import the.bytecode.club.bytecodeviewer.translation.TranslatedComponents; - /*************************************************************************** * Bytecode Viewer (BCV) - Java & Android Reverse Engineering Suite * * Copyright (C) 2014 Konloch - Konloch.com / BytecodeViewer.com * @@ -22,6 +16,12 @@ import the.bytecode.club.bytecodeviewer.translation.TranslatedComponents; * along with this program. If not, see . * ***************************************************************************/ +package the.bytecode.club.bytecodeviewer.translation.components; + +import javax.swing.JMenuItem; +import the.bytecode.club.bytecodeviewer.translation.TranslatedComponentReference; +import the.bytecode.club.bytecodeviewer.translation.TranslatedComponents; + /** * @author Konloch * @since 6/28/2021 diff --git a/src/main/java/the/bytecode/club/bytecodeviewer/translation/components/TranslatedJRadioButtonMenuItem.java b/src/main/java/the/bytecode/club/bytecodeviewer/translation/components/TranslatedJRadioButtonMenuItem.java index 3c954654..6c048150 100644 --- a/src/main/java/the/bytecode/club/bytecodeviewer/translation/components/TranslatedJRadioButtonMenuItem.java +++ b/src/main/java/the/bytecode/club/bytecodeviewer/translation/components/TranslatedJRadioButtonMenuItem.java @@ -1,9 +1,3 @@ -package the.bytecode.club.bytecodeviewer.translation.components; - -import javax.swing.JRadioButtonMenuItem; -import the.bytecode.club.bytecodeviewer.translation.TranslatedComponentReference; -import the.bytecode.club.bytecodeviewer.translation.TranslatedComponents; - /*************************************************************************** * Bytecode Viewer (BCV) - Java & Android Reverse Engineering Suite * * Copyright (C) 2014 Konloch - Konloch.com / BytecodeViewer.com * @@ -22,6 +16,12 @@ import the.bytecode.club.bytecodeviewer.translation.TranslatedComponents; * along with this program. If not, see . * ***************************************************************************/ +package the.bytecode.club.bytecodeviewer.translation.components; + +import javax.swing.JRadioButtonMenuItem; +import the.bytecode.club.bytecodeviewer.translation.TranslatedComponentReference; +import the.bytecode.club.bytecodeviewer.translation.TranslatedComponents; + /** * @author Konloch * @since 6/28/2021 diff --git a/src/main/java/the/bytecode/club/bytecodeviewer/translation/components/TranslatedJTextField.java b/src/main/java/the/bytecode/club/bytecodeviewer/translation/components/TranslatedJTextField.java index 9eb9fd0a..a932bd7e 100644 --- a/src/main/java/the/bytecode/club/bytecodeviewer/translation/components/TranslatedJTextField.java +++ b/src/main/java/the/bytecode/club/bytecodeviewer/translation/components/TranslatedJTextField.java @@ -1,9 +1,3 @@ -package the.bytecode.club.bytecodeviewer.translation.components; - -import javax.swing.JTextField; -import the.bytecode.club.bytecodeviewer.translation.TranslatedComponentReference; -import the.bytecode.club.bytecodeviewer.translation.TranslatedComponents; - /*************************************************************************** * Bytecode Viewer (BCV) - Java & Android Reverse Engineering Suite * * Copyright (C) 2014 Konloch - Konloch.com / BytecodeViewer.com * @@ -22,6 +16,12 @@ import the.bytecode.club.bytecodeviewer.translation.TranslatedComponents; * along with this program. If not, see . * ***************************************************************************/ +package the.bytecode.club.bytecodeviewer.translation.components; + +import javax.swing.JTextField; +import the.bytecode.club.bytecodeviewer.translation.TranslatedComponentReference; +import the.bytecode.club.bytecodeviewer.translation.TranslatedComponents; + /** * @author Konloch * @since 7/8/2021 diff --git a/src/main/java/the/bytecode/club/bytecodeviewer/translation/components/TranslatedVisibleComponent.java b/src/main/java/the/bytecode/club/bytecodeviewer/translation/components/TranslatedVisibleComponent.java index 95c576b4..8150914b 100644 --- a/src/main/java/the/bytecode/club/bytecodeviewer/translation/components/TranslatedVisibleComponent.java +++ b/src/main/java/the/bytecode/club/bytecodeviewer/translation/components/TranslatedVisibleComponent.java @@ -1,9 +1,3 @@ -package the.bytecode.club.bytecodeviewer.translation.components; - -import the.bytecode.club.bytecodeviewer.gui.components.VisibleComponent; -import the.bytecode.club.bytecodeviewer.translation.TranslatedComponentReference; -import the.bytecode.club.bytecodeviewer.translation.TranslatedComponents; - /*************************************************************************** * Bytecode Viewer (BCV) - Java & Android Reverse Engineering Suite * * Copyright (C) 2014 Konloch - Konloch.com / BytecodeViewer.com * @@ -22,6 +16,12 @@ import the.bytecode.club.bytecodeviewer.translation.TranslatedComponents; * along with this program. If not, see . * ***************************************************************************/ +package the.bytecode.club.bytecodeviewer.translation.components; + +import the.bytecode.club.bytecodeviewer.gui.components.VisibleComponent; +import the.bytecode.club.bytecodeviewer.translation.TranslatedComponentReference; +import the.bytecode.club.bytecodeviewer.translation.TranslatedComponents; + /** * @author Konloch * @since 7/7/2021 diff --git a/src/main/java/the/bytecode/club/bytecodeviewer/util/APKTool.java b/src/main/java/the/bytecode/club/bytecodeviewer/util/APKTool.java index 662440b8..7cff7964 100644 --- a/src/main/java/the/bytecode/club/bytecodeviewer/util/APKTool.java +++ b/src/main/java/the/bytecode/club/bytecodeviewer/util/APKTool.java @@ -1,13 +1,3 @@ -package the.bytecode.club.bytecodeviewer.util; - -import java.io.File; -import org.apache.commons.io.FileUtils; -import the.bytecode.club.bytecodeviewer.BytecodeViewer; -import the.bytecode.club.bytecodeviewer.resources.ResourceContainer; - -import static the.bytecode.club.bytecodeviewer.Constants.fs; -import static the.bytecode.club.bytecodeviewer.Constants.tempDirectory; - /*************************************************************************** * Bytecode Viewer (BCV) - Java & Android Reverse Engineering Suite * * Copyright (C) 2014 Konloch - Konloch.com / BytecodeViewer.com * @@ -26,6 +16,16 @@ import static the.bytecode.club.bytecodeviewer.Constants.tempDirectory; * along with this program. If not, see . * ***************************************************************************/ +package the.bytecode.club.bytecodeviewer.util; + +import java.io.File; +import org.apache.commons.io.FileUtils; +import the.bytecode.club.bytecodeviewer.BytecodeViewer; +import the.bytecode.club.bytecodeviewer.resources.ResourceContainer; + +import static the.bytecode.club.bytecodeviewer.Constants.fs; +import static the.bytecode.club.bytecodeviewer.Constants.tempDirectory; + /** * @author Konloch */ diff --git a/src/main/java/the/bytecode/club/bytecodeviewer/util/BootCheck.java b/src/main/java/the/bytecode/club/bytecodeviewer/util/BootCheck.java index 47e5304e..a4d697f5 100644 --- a/src/main/java/the/bytecode/club/bytecodeviewer/util/BootCheck.java +++ b/src/main/java/the/bytecode/club/bytecodeviewer/util/BootCheck.java @@ -1,18 +1,3 @@ -package the.bytecode.club.bytecodeviewer.util; - -import java.io.File; -import java.util.ArrayList; -import java.util.List; -import javax.swing.JOptionPane; -import the.bytecode.club.bytecodeviewer.BytecodeViewer; -import the.bytecode.club.bytecodeviewer.CommandLineInput; -import the.bytecode.club.bytecodeviewer.bootloader.Boot; -import the.bytecode.club.bytecodeviewer.bootloader.loader.ILoader; -import the.bytecode.club.bytecodeviewer.bootloader.resource.external.EmptyExternalResource; -import the.bytecode.club.bytecodeviewer.bootloader.resource.external.ExternalResource; - -import static the.bytecode.club.bytecodeviewer.Constants.nl; - /*************************************************************************** * Bytecode Viewer (BCV) - Java & Android Reverse Engineering Suite * * Copyright (C) 2014 Konloch - Konloch.com / BytecodeViewer.com * @@ -31,6 +16,21 @@ import static the.bytecode.club.bytecodeviewer.Constants.nl; * along with this program. If not, see . * ***************************************************************************/ +package the.bytecode.club.bytecodeviewer.util; + +import java.io.File; +import java.util.ArrayList; +import java.util.List; +import javax.swing.JOptionPane; +import the.bytecode.club.bytecodeviewer.BytecodeViewer; +import the.bytecode.club.bytecodeviewer.CommandLineInput; +import the.bytecode.club.bytecodeviewer.bootloader.Boot; +import the.bytecode.club.bytecodeviewer.bootloader.loader.ILoader; +import the.bytecode.club.bytecodeviewer.bootloader.resource.external.EmptyExternalResource; +import the.bytecode.club.bytecodeviewer.bootloader.resource.external.ExternalResource; + +import static the.bytecode.club.bytecodeviewer.Constants.nl; + /** * Loads the libraries on boot. If booting failed for some reason, this kicks in as a fail safe. * diff --git a/src/main/java/the/bytecode/club/bytecodeviewer/util/ClassFileUtils.java b/src/main/java/the/bytecode/club/bytecodeviewer/util/ClassFileUtils.java index 475e7498..b714a0d7 100644 --- a/src/main/java/the/bytecode/club/bytecodeviewer/util/ClassFileUtils.java +++ b/src/main/java/the/bytecode/club/bytecodeviewer/util/ClassFileUtils.java @@ -1,10 +1,3 @@ -package the.bytecode.club.bytecodeviewer.util; - -import java.io.ByteArrayOutputStream; -import java.io.IOException; -import java.io.InputStream; -import java.util.Objects; - /*************************************************************************** * Bytecode Viewer (BCV) - Java & Android Reverse Engineering Suite * * Copyright (C) 2014 Konloch - Konloch.com / BytecodeViewer.com * @@ -23,6 +16,13 @@ import java.util.Objects; * along with this program. If not, see . * ***************************************************************************/ +package the.bytecode.club.bytecodeviewer.util; + +import java.io.ByteArrayOutputStream; +import java.io.IOException; +import java.io.InputStream; +import java.util.Objects; + /** * @author Konloch * @since 7/6/2021 diff --git a/src/main/java/the/bytecode/club/bytecodeviewer/util/Dex2Jar.java b/src/main/java/the/bytecode/club/bytecodeviewer/util/Dex2Jar.java index 69e195b8..a1b530be 100644 --- a/src/main/java/the/bytecode/club/bytecodeviewer/util/Dex2Jar.java +++ b/src/main/java/the/bytecode/club/bytecodeviewer/util/Dex2Jar.java @@ -1,15 +1,3 @@ -package the.bytecode.club.bytecodeviewer.util; - -import com.googlecode.d2j.DexException; -import com.googlecode.d2j.Method; -import com.googlecode.d2j.dex.Dex2jar; -import com.googlecode.d2j.dex.DexExceptionHandler; -import com.googlecode.d2j.node.DexMethodNode; -import com.googlecode.dex2jar.tools.Jar2Dex; -import java.io.File; -import org.objectweb.asm.MethodVisitor; -import the.bytecode.club.bytecodeviewer.BytecodeViewer; - /*************************************************************************** * Bytecode Viewer (BCV) - Java & Android Reverse Engineering Suite * * Copyright (C) 2014 Konloch - Konloch.com / BytecodeViewer.com * @@ -28,6 +16,18 @@ import the.bytecode.club.bytecodeviewer.BytecodeViewer; * along with this program. If not, see . * ***************************************************************************/ +package the.bytecode.club.bytecodeviewer.util; + +import com.googlecode.d2j.DexException; +import com.googlecode.d2j.Method; +import com.googlecode.d2j.dex.Dex2jar; +import com.googlecode.d2j.dex.DexExceptionHandler; +import com.googlecode.d2j.node.DexMethodNode; +import com.googlecode.dex2jar.tools.Jar2Dex; +import java.io.File; +import org.objectweb.asm.MethodVisitor; +import the.bytecode.club.bytecodeviewer.BytecodeViewer; + /** * A simple wrapper for Dex2Jar. * diff --git a/src/main/java/the/bytecode/club/bytecodeviewer/util/DialogUtils.java b/src/main/java/the/bytecode/club/bytecodeviewer/util/DialogUtils.java index 987bf5d9..94c120d8 100644 --- a/src/main/java/the/bytecode/club/bytecodeviewer/util/DialogUtils.java +++ b/src/main/java/the/bytecode/club/bytecodeviewer/util/DialogUtils.java @@ -1,19 +1,3 @@ -package the.bytecode.club.bytecodeviewer.util; - -import java.io.File; -import java.util.Arrays; -import java.util.HashSet; -import java.util.Set; -import javax.swing.JFileChooser; -import javax.swing.filechooser.FileFilter; -import the.bytecode.club.bytecodeviewer.BytecodeViewer; -import the.bytecode.club.bytecodeviewer.Configuration; -import the.bytecode.club.bytecodeviewer.gui.components.FileChooser; -import the.bytecode.club.bytecodeviewer.gui.components.MultipleChoiceDialog; -import the.bytecode.club.bytecodeviewer.translation.TranslatedStrings; - -import static the.bytecode.club.bytecodeviewer.gui.components.FileChooser.EVERYTHING; - /*************************************************************************** * Bytecode Viewer (BCV) - Java & Android Reverse Engineering Suite * * Copyright (C) 2014 Konloch - Konloch.com / BytecodeViewer.com * @@ -32,6 +16,22 @@ import static the.bytecode.club.bytecodeviewer.gui.components.FileChooser.EVERYT * along with this program. If not, see . * ***************************************************************************/ +package the.bytecode.club.bytecodeviewer.util; + +import java.io.File; +import java.util.Arrays; +import java.util.HashSet; +import java.util.Set; +import javax.swing.JFileChooser; +import javax.swing.filechooser.FileFilter; +import the.bytecode.club.bytecodeviewer.BytecodeViewer; +import the.bytecode.club.bytecodeviewer.Configuration; +import the.bytecode.club.bytecodeviewer.gui.components.FileChooser; +import the.bytecode.club.bytecodeviewer.gui.components.MultipleChoiceDialog; +import the.bytecode.club.bytecodeviewer.translation.TranslatedStrings; + +import static the.bytecode.club.bytecodeviewer.gui.components.FileChooser.EVERYTHING; + /** * @author Konloch * @since 7/1/2021 diff --git a/src/main/java/the/bytecode/club/bytecodeviewer/util/EncodeUtils.java b/src/main/java/the/bytecode/club/bytecodeviewer/util/EncodeUtils.java index 544a1b72..5c186927 100644 --- a/src/main/java/the/bytecode/club/bytecodeviewer/util/EncodeUtils.java +++ b/src/main/java/the/bytecode/club/bytecodeviewer/util/EncodeUtils.java @@ -1,11 +1,3 @@ -package the.bytecode.club.bytecodeviewer.util; - -import java.io.UnsupportedEncodingException; -import java.nio.charset.StandardCharsets; -import java.util.regex.Matcher; -import java.util.regex.Pattern; -import org.apache.commons.lang3.StringUtils; - /*************************************************************************** * Bytecode Viewer (BCV) - Java & Android Reverse Engineering Suite * * Copyright (C) 2014 Konloch - Konloch.com / BytecodeViewer.com * @@ -24,6 +16,14 @@ import org.apache.commons.lang3.StringUtils; * along with this program. If not, see . * ***************************************************************************/ +package the.bytecode.club.bytecodeviewer.util; + +import java.io.UnsupportedEncodingException; +import java.nio.charset.StandardCharsets; +import java.util.regex.Matcher; +import java.util.regex.Pattern; +import org.apache.commons.lang3.StringUtils; + /** * Encoding Convert Utils * diff --git a/src/main/java/the/bytecode/club/bytecodeviewer/util/Enjarify.java b/src/main/java/the/bytecode/club/bytecodeviewer/util/Enjarify.java index 3196458d..6151031f 100644 --- a/src/main/java/the/bytecode/club/bytecodeviewer/util/Enjarify.java +++ b/src/main/java/the/bytecode/club/bytecodeviewer/util/Enjarify.java @@ -1,13 +1,3 @@ -package the.bytecode.club.bytecodeviewer.util; - -import java.io.File; -import java.util.concurrent.atomic.AtomicBoolean; -import the.bytecode.club.bytecodeviewer.BytecodeViewer; -import the.bytecode.club.bytecodeviewer.Configuration; -import the.bytecode.club.bytecodeviewer.resources.ExternalResources; - -import static the.bytecode.club.bytecodeviewer.Constants.enjarifyWorkingDirectory; - /*************************************************************************** * Bytecode Viewer (BCV) - Java & Android Reverse Engineering Suite * * Copyright (C) 2014 Konloch - Konloch.com / BytecodeViewer.com * @@ -26,6 +16,16 @@ import static the.bytecode.club.bytecodeviewer.Constants.enjarifyWorkingDirector * along with this program. If not, see . * ***************************************************************************/ +package the.bytecode.club.bytecodeviewer.util; + +import java.io.File; +import java.util.concurrent.atomic.AtomicBoolean; +import the.bytecode.club.bytecodeviewer.BytecodeViewer; +import the.bytecode.club.bytecodeviewer.Configuration; +import the.bytecode.club.bytecodeviewer.resources.ExternalResources; + +import static the.bytecode.club.bytecodeviewer.Constants.enjarifyWorkingDirectory; + /** * A simple wrapper for Enjarify. * diff --git a/src/main/java/the/bytecode/club/bytecodeviewer/util/FileDrop.java b/src/main/java/the/bytecode/club/bytecodeviewer/util/FileDrop.java index 1c1e9a28..ade19c29 100644 --- a/src/main/java/the/bytecode/club/bytecodeviewer/util/FileDrop.java +++ b/src/main/java/the/bytecode/club/bytecodeviewer/util/FileDrop.java @@ -1,3 +1,21 @@ +/*************************************************************************** + * Bytecode Viewer (BCV) - Java & Android Reverse Engineering Suite * + * Copyright (C) 2014 Konloch - Konloch.com / BytecodeViewer.com * + * * + * This program is free software: you can redistribute it and/or modify * + * it under the terms of the GNU General Public License as published by * + * the Free Software Foundation, either version 3 of the License, or * + * (at your option) any later version. * + * * + * This program is distributed in the hope that it will be useful, * + * but WITHOUT ANY WARRANTY; without even the implied warranty of * + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * + * GNU General Public License for more details. * + * * + * You should have received a copy of the GNU General Public License * + * along with this program. If not, see . * + ***************************************************************************/ + package the.bytecode.club.bytecodeviewer.util; import java.awt.Color; @@ -22,24 +40,6 @@ import javax.swing.JComponent; import javax.swing.border.Border; import the.bytecode.club.bytecodeviewer.BytecodeViewer; -/*************************************************************************** - * Bytecode Viewer (BCV) - Java & Android Reverse Engineering Suite * - * Copyright (C) 2014 Konloch - Konloch.com / BytecodeViewer.com * - * * - * This program is free software: you can redistribute it and/or modify * - * it under the terms of the GNU General Public License as published by * - * the Free Software Foundation, either version 3 of the License, or * - * (at your option) any later version. * - * * - * This program is distributed in the hope that it will be useful, * - * but WITHOUT ANY WARRANTY; without even the implied warranty of * - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * - * GNU General Public License for more details. * - * * - * You should have received a copy of the GNU General Public License * - * along with this program. If not, see . * - ***************************************************************************/ - /** * This class makes it easy to drag and drop files from the operating system to * a Java program. Any Component can be dropped onto, but only diff --git a/src/main/java/the/bytecode/club/bytecodeviewer/util/FileHeaderUtils.java b/src/main/java/the/bytecode/club/bytecodeviewer/util/FileHeaderUtils.java index 6abc3433..ce30662e 100644 --- a/src/main/java/the/bytecode/club/bytecodeviewer/util/FileHeaderUtils.java +++ b/src/main/java/the/bytecode/club/bytecodeviewer/util/FileHeaderUtils.java @@ -1,7 +1,3 @@ -package the.bytecode.club.bytecodeviewer.util; - -import org.apache.commons.lang3.StringUtils; - /*************************************************************************** * Bytecode Viewer (BCV) - Java & Android Reverse Engineering Suite * * Copyright (C) 2014 Konloch - Konloch.com / BytecodeViewer.com * @@ -20,6 +16,10 @@ import org.apache.commons.lang3.StringUtils; * along with this program. If not, see . * ***************************************************************************/ +package the.bytecode.club.bytecodeviewer.util; + +import org.apache.commons.lang3.StringUtils; + /** * @author Konloch * @since 8/21/2024 diff --git a/src/main/java/the/bytecode/club/bytecodeviewer/util/JRTExtractor.java b/src/main/java/the/bytecode/club/bytecodeviewer/util/JRTExtractor.java index 8b2f553e..60ac06ea 100644 --- a/src/main/java/the/bytecode/club/bytecodeviewer/util/JRTExtractor.java +++ b/src/main/java/the/bytecode/club/bytecodeviewer/util/JRTExtractor.java @@ -1,19 +1,21 @@ +/** + * Copyright 2017 Robert Grosse + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + package the.bytecode.club.bytecodeviewer.util; -// Copyright 2017 Robert Grosse - -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at - -// http://www.apache.org/licenses/LICENSE-2.0 - -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - import java.net.URI; import java.nio.file.FileSystem; import java.nio.file.FileSystems; diff --git a/src/main/java/the/bytecode/club/bytecodeviewer/util/JTextAreaUtils.java b/src/main/java/the/bytecode/club/bytecodeviewer/util/JTextAreaUtils.java index 287bfc9c..fbf1a6d7 100644 --- a/src/main/java/the/bytecode/club/bytecodeviewer/util/JTextAreaUtils.java +++ b/src/main/java/the/bytecode/club/bytecodeviewer/util/JTextAreaUtils.java @@ -1,12 +1,3 @@ -package the.bytecode.club.bytecodeviewer.util; - -import java.awt.Color; -import javax.swing.JTextArea; -import javax.swing.text.DefaultHighlighter; -import javax.swing.text.Document; -import javax.swing.text.Highlighter; -import the.bytecode.club.bytecodeviewer.BytecodeViewer; - /*************************************************************************** * Bytecode Viewer (BCV) - Java & Android Reverse Engineering Suite * * Copyright (C) 2014 Konloch - Konloch.com / BytecodeViewer.com * @@ -25,6 +16,15 @@ import the.bytecode.club.bytecodeviewer.BytecodeViewer; * along with this program. If not, see . * ***************************************************************************/ +package the.bytecode.club.bytecodeviewer.util; + +import java.awt.Color; +import javax.swing.JTextArea; +import javax.swing.text.DefaultHighlighter; +import javax.swing.text.Document; +import javax.swing.text.Highlighter; +import the.bytecode.club.bytecodeviewer.BytecodeViewer; + /** * This allows functionality to main the same between JTextArea and RSyntaxTextArea text panels * diff --git a/src/main/java/the/bytecode/club/bytecodeviewer/util/JarUtils.java b/src/main/java/the/bytecode/club/bytecodeviewer/util/JarUtils.java index 078a0a01..2891b041 100644 --- a/src/main/java/the/bytecode/club/bytecodeviewer/util/JarUtils.java +++ b/src/main/java/the/bytecode/club/bytecodeviewer/util/JarUtils.java @@ -1,3 +1,21 @@ +/*************************************************************************** + * Bytecode Viewer (BCV) - Java & Android Reverse Engineering Suite * + * Copyright (C) 2014 Konloch - Konloch.com / BytecodeViewer.com * + * * + * This program is free software: you can redistribute it and/or modify * + * it under the terms of the GNU General Public License as published by * + * the Free Software Foundation, either version 3 of the License, or * + * (at your option) any later version. * + * * + * This program is distributed in the hope that it will be useful, * + * but WITHOUT ANY WARRANTY; without even the implied warranty of * + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * + * GNU General Public License for more details. * + * * + * You should have received a copy of the GNU General Public License * + * along with this program. If not, see . * + ***************************************************************************/ + package the.bytecode.club.bytecodeviewer.util; import java.io.File; @@ -28,24 +46,6 @@ import the.bytecode.club.bytecodeviewer.resources.ResourceContainer; import static the.bytecode.club.bytecodeviewer.Constants.fs; -/*************************************************************************** - * Bytecode Viewer (BCV) - Java & Android Reverse Engineering Suite * - * Copyright (C) 2014 Konloch - Konloch.com / BytecodeViewer.com * - * * - * This program is free software: you can redistribute it and/or modify * - * it under the terms of the GNU General Public License as published by * - * the Free Software Foundation, either version 3 of the License, or * - * (at your option) any later version. * - * * - * This program is distributed in the hope that it will be useful, * - * but WITHOUT ANY WARRANTY; without even the implied warranty of * - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * - * GNU General Public License for more details. * - * * - * You should have received a copy of the GNU General Public License * - * along with this program. If not, see . * - ***************************************************************************/ - /** * Loading and saving jars * diff --git a/src/main/java/the/bytecode/club/bytecodeviewer/util/KeyEventDispatch.java b/src/main/java/the/bytecode/club/bytecodeviewer/util/KeyEventDispatch.java index e5047ba7..b4e0ee59 100644 --- a/src/main/java/the/bytecode/club/bytecodeviewer/util/KeyEventDispatch.java +++ b/src/main/java/the/bytecode/club/bytecodeviewer/util/KeyEventDispatch.java @@ -1,10 +1,3 @@ -package the.bytecode.club.bytecodeviewer.util; - -import java.awt.KeyEventDispatcher; -import java.awt.event.KeyEvent; -import the.bytecode.club.bytecodeviewer.GlobalHotKeys; -import the.bytecode.club.bytecodeviewer.gui.components.SearchableRSyntaxTextArea; - /*************************************************************************** * Bytecode Viewer (BCV) - Java & Android Reverse Engineering Suite * * Copyright (C) 2014 Konloch - Konloch.com / BytecodeViewer.com * @@ -23,6 +16,13 @@ import the.bytecode.club.bytecodeviewer.gui.components.SearchableRSyntaxTextArea * along with this program. If not, see . * ***************************************************************************/ +package the.bytecode.club.bytecodeviewer.util; + +import java.awt.KeyEventDispatcher; +import java.awt.event.KeyEvent; +import the.bytecode.club.bytecodeviewer.GlobalHotKeys; +import the.bytecode.club.bytecodeviewer.gui.components.SearchableRSyntaxTextArea; + /** * @author Konloch * @since 6/21/2021 diff --git a/src/main/java/the/bytecode/club/bytecodeviewer/util/LazyNameUtil.java b/src/main/java/the/bytecode/club/bytecodeviewer/util/LazyNameUtil.java index 36aa1b3c..9a851dd0 100644 --- a/src/main/java/the/bytecode/club/bytecodeviewer/util/LazyNameUtil.java +++ b/src/main/java/the/bytecode/club/bytecodeviewer/util/LazyNameUtil.java @@ -1,10 +1,3 @@ -package the.bytecode.club.bytecodeviewer.util; - -import java.util.HashMap; -import java.util.Map; -import org.apache.commons.io.FilenameUtils; -import org.apache.commons.lang3.StringUtils; - /*************************************************************************** * Bytecode Viewer (BCV) - Java & Android Reverse Engineering Suite * * Copyright (C) 2014 Konloch - Konloch.com / BytecodeViewer.com * @@ -23,6 +16,13 @@ import org.apache.commons.lang3.StringUtils; * along with this program. If not, see . * ***************************************************************************/ +package the.bytecode.club.bytecodeviewer.util; + +import java.util.HashMap; +import java.util.Map; +import org.apache.commons.io.FilenameUtils; +import org.apache.commons.lang3.StringUtils; + /** * Prevents name path collisions by allowing the same name to be used in multiple resource containers. * diff --git a/src/main/java/the/bytecode/club/bytecodeviewer/util/MethodParser.java b/src/main/java/the/bytecode/club/bytecodeviewer/util/MethodParser.java index 3c028383..8940c85b 100644 --- a/src/main/java/the/bytecode/club/bytecodeviewer/util/MethodParser.java +++ b/src/main/java/the/bytecode/club/bytecodeviewer/util/MethodParser.java @@ -1,11 +1,3 @@ -package the.bytecode.club.bytecodeviewer.util; - -import java.util.Arrays; -import java.util.List; -import java.util.Map; -import java.util.TreeMap; -import java.util.regex.Pattern; - /*************************************************************************** * Bytecode Viewer (BCV) - Java & Android Reverse Engineering Suite * * Copyright (C) 2014 Konloch - Konloch.com / BytecodeViewer.com * @@ -24,6 +16,14 @@ import java.util.regex.Pattern; * along with this program. If not, see . * ***************************************************************************/ +package the.bytecode.club.bytecodeviewer.util; + +import java.util.Arrays; +import java.util.List; +import java.util.Map; +import java.util.TreeMap; +import java.util.regex.Pattern; + /** * Methods parser. * diff --git a/src/main/java/the/bytecode/club/bytecodeviewer/util/MiscUtils.java b/src/main/java/the/bytecode/club/bytecodeviewer/util/MiscUtils.java index 16222705..43b13f04 100644 --- a/src/main/java/the/bytecode/club/bytecodeviewer/util/MiscUtils.java +++ b/src/main/java/the/bytecode/club/bytecodeviewer/util/MiscUtils.java @@ -1,3 +1,21 @@ +/*************************************************************************** + * Bytecode Viewer (BCV) - Java & Android Reverse Engineering Suite * + * Copyright (C) 2014 Konloch - Konloch.com / BytecodeViewer.com * + * * + * This program is free software: you can redistribute it and/or modify * + * it under the terms of the GNU General Public License as published by * + * the Free Software Foundation, either version 3 of the License, or * + * (at your option) any later version. * + * * + * This program is distributed in the hope that it will be useful, * + * but WITHOUT ANY WARRANTY; without even the implied warranty of * + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * + * GNU General Public License for more details. * + * * + * You should have received a copy of the GNU General Public License * + * along with this program. If not, see . * + ***************************************************************************/ + package the.bytecode.club.bytecodeviewer.util; import java.awt.image.BufferedImage; @@ -26,24 +44,6 @@ import the.bytecode.club.bytecodeviewer.translation.Language; import static the.bytecode.club.bytecodeviewer.BytecodeViewer.gson; -/*************************************************************************** - * Bytecode Viewer (BCV) - Java & Android Reverse Engineering Suite * - * Copyright (C) 2014 Konloch - Konloch.com / BytecodeViewer.com * - * * - * This program is free software: you can redistribute it and/or modify * - * it under the terms of the GNU General Public License as published by * - * the Free Software Foundation, either version 3 of the License, or * - * (at your option) any later version. * - * * - * This program is distributed in the hope that it will be useful, * - * but WITHOUT ANY WARRANTY; without even the implied warranty of * - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * - * GNU General Public License for more details. * - * * - * You should have received a copy of the GNU General Public License * - * along with this program. If not, see . * - ***************************************************************************/ - /** * A collection of Misc Utils. * diff --git a/src/main/java/the/bytecode/club/bytecodeviewer/util/NewlineOutputStream.java b/src/main/java/the/bytecode/club/bytecodeviewer/util/NewlineOutputStream.java index 203d3069..fa0d97a8 100644 --- a/src/main/java/the/bytecode/club/bytecodeviewer/util/NewlineOutputStream.java +++ b/src/main/java/the/bytecode/club/bytecodeviewer/util/NewlineOutputStream.java @@ -1,11 +1,3 @@ -package the.bytecode.club.bytecodeviewer.util; - -import java.io.FilterOutputStream; -import java.io.IOException; -import java.io.OutputStream; -import java.nio.charset.StandardCharsets; -import org.jetbrains.annotations.NotNull; - /*************************************************************************** * Bytecode Viewer (BCV) - Java & Android Reverse Engineering Suite * * Copyright (C) 2014 Konloch - Konloch.com / BytecodeViewer.com * @@ -24,6 +16,14 @@ import org.jetbrains.annotations.NotNull; * along with this program. If not, see . * ***************************************************************************/ +package the.bytecode.club.bytecodeviewer.util; + +import java.io.FilterOutputStream; +import java.io.IOException; +import java.io.OutputStream; +import java.nio.charset.StandardCharsets; +import org.jetbrains.annotations.NotNull; + /** * Convert the various newline conventions to the local platform's newline convention. * diff --git a/src/main/java/the/bytecode/club/bytecodeviewer/util/PingBack.java b/src/main/java/the/bytecode/club/bytecodeviewer/util/PingBack.java index 81bb6936..7c0232bc 100644 --- a/src/main/java/the/bytecode/club/bytecodeviewer/util/PingBack.java +++ b/src/main/java/the/bytecode/club/bytecodeviewer/util/PingBack.java @@ -1,9 +1,3 @@ -package the.bytecode.club.bytecodeviewer.util; - -import java.net.URL; -import com.konloch.httprequest.HTTPRequest; -import the.bytecode.club.bytecodeviewer.Configuration; - /*************************************************************************** * Bytecode Viewer (BCV) - Java & Android Reverse Engineering Suite * * Copyright (C) 2014 Konloch - Konloch.com / BytecodeViewer.com * @@ -22,6 +16,12 @@ import the.bytecode.club.bytecodeviewer.Configuration; * along with this program. If not, see . * ***************************************************************************/ +package the.bytecode.club.bytecodeviewer.util; + +import java.net.URL; +import com.konloch.httprequest.HTTPRequest; +import the.bytecode.club.bytecodeviewer.Configuration; + /** * Pings back to bytecodeviewer.com to be added into the total running statistics * diff --git a/src/main/java/the/bytecode/club/bytecodeviewer/util/SecurityMan.java b/src/main/java/the/bytecode/club/bytecodeviewer/util/SecurityMan.java index 4fee9bf6..19807029 100644 --- a/src/main/java/the/bytecode/club/bytecodeviewer/util/SecurityMan.java +++ b/src/main/java/the/bytecode/club/bytecodeviewer/util/SecurityMan.java @@ -1,3 +1,21 @@ +/*************************************************************************** + * Bytecode Viewer (BCV) - Java & Android Reverse Engineering Suite * + * Copyright (C) 2014 Konloch - Konloch.com / BytecodeViewer.com * + * * + * This program is free software: you can redistribute it and/or modify * + * it under the terms of the GNU General Public License as published by * + * the Free Software Foundation, either version 3 of the License, or * + * (at your option) any later version. * + * * + * This program is distributed in the hope that it will be useful, * + * but WITHOUT ANY WARRANTY; without even the implied warranty of * + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * + * GNU General Public License for more details. * + * * + * You should have received a copy of the GNU General Public License * + * along with this program. If not, see . * + ***************************************************************************/ + package the.bytecode.club.bytecodeviewer.util; import java.io.File; @@ -19,24 +37,6 @@ import the.bytecode.club.bytecodeviewer.decompilers.impl.KrakatauDisassembler; import the.bytecode.club.bytecodeviewer.decompilers.impl.ProcyonDecompiler; import the.bytecode.club.bytecodeviewer.resources.ExternalResources; -/*************************************************************************** - * Bytecode Viewer (BCV) - Java & Android Reverse Engineering Suite * - * Copyright (C) 2014 Konloch - Konloch.com / BytecodeViewer.com * - * * - * This program is free software: you can redistribute it and/or modify * - * it under the terms of the GNU General Public License as published by * - * the Free Software Foundation, either version 3 of the License, or * - * (at your option) any later version. * - * * - * This program is distributed in the hope that it will be useful, * - * but WITHOUT ANY WARRANTY; without even the implied warranty of * - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * - * GNU General Public License for more details. * - * * - * You should have received a copy of the GNU General Public License * - * along with this program. If not, see . * - ***************************************************************************/ - /** * An awesome security manager. * diff --git a/src/main/java/the/bytecode/club/bytecodeviewer/util/SeqAndCount.java b/src/main/java/the/bytecode/club/bytecodeviewer/util/SeqAndCount.java index c2baa191..27ced280 100644 --- a/src/main/java/the/bytecode/club/bytecodeviewer/util/SeqAndCount.java +++ b/src/main/java/the/bytecode/club/bytecodeviewer/util/SeqAndCount.java @@ -1,5 +1,3 @@ -package the.bytecode.club.bytecodeviewer.util; - /*************************************************************************** * Bytecode Viewer (BCV) - Java & Android Reverse Engineering Suite * * Copyright (C) 2014 Konloch - Konloch.com / BytecodeViewer.com * @@ -18,6 +16,8 @@ package the.bytecode.club.bytecodeviewer.util; * along with this program. If not, see . * ***************************************************************************/ +package the.bytecode.club.bytecodeviewer.util; + /** * @author Hupan * @since 11/20/2019 diff --git a/src/main/java/the/bytecode/club/bytecodeviewer/util/SleepUtil.java b/src/main/java/the/bytecode/club/bytecodeviewer/util/SleepUtil.java index d134673d..c1c666c0 100644 --- a/src/main/java/the/bytecode/club/bytecodeviewer/util/SleepUtil.java +++ b/src/main/java/the/bytecode/club/bytecodeviewer/util/SleepUtil.java @@ -1,3 +1,21 @@ +/*************************************************************************** + * Bytecode Viewer (BCV) - Java & Android Reverse Engineering Suite * + * Copyright (C) 2014 Konloch - Konloch.com / BytecodeViewer.com * + * * + * This program is free software: you can redistribute it and/or modify * + * it under the terms of the GNU General Public License as published by * + * the Free Software Foundation, either version 3 of the License, or * + * (at your option) any later version. * + * * + * This program is distributed in the hope that it will be useful, * + * but WITHOUT ANY WARRANTY; without even the implied warranty of * + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * + * GNU General Public License for more details. * + * * + * You should have received a copy of the GNU General Public License * + * along with this program. If not, see . * + ***************************************************************************/ + package the.bytecode.club.bytecodeviewer.util; /** diff --git a/src/main/java/the/bytecode/club/bytecodeviewer/util/SyntaxLanguage.java b/src/main/java/the/bytecode/club/bytecodeviewer/util/SyntaxLanguage.java index a9c6009d..5eb5c59a 100644 --- a/src/main/java/the/bytecode/club/bytecodeviewer/util/SyntaxLanguage.java +++ b/src/main/java/the/bytecode/club/bytecodeviewer/util/SyntaxLanguage.java @@ -1,11 +1,3 @@ -package the.bytecode.club.bytecodeviewer.util; - -import java.io.File; -import java.util.function.BiFunction; -import org.fife.ui.rsyntaxtextarea.FileTypeUtil; -import org.fife.ui.rsyntaxtextarea.RSyntaxTextArea; -import org.fife.ui.rsyntaxtextarea.SyntaxConstants; - /*************************************************************************** * Bytecode Viewer (BCV) - Java & Android Reverse Engineering Suite * * Copyright (C) 2014 Konloch - Konloch.com / BytecodeViewer.com * @@ -24,6 +16,14 @@ import org.fife.ui.rsyntaxtextarea.SyntaxConstants; * along with this program. If not, see . * ***************************************************************************/ +package the.bytecode.club.bytecodeviewer.util; + +import java.io.File; +import java.util.function.BiFunction; +import org.fife.ui.rsyntaxtextarea.FileTypeUtil; +import org.fife.ui.rsyntaxtextarea.RSyntaxTextArea; +import org.fife.ui.rsyntaxtextarea.SyntaxConstants; + /** * @author ThexXTURBOXx */ diff --git a/src/main/java/the/bytecode/club/bytecodeviewer/util/WindowClosingAdapter.java b/src/main/java/the/bytecode/club/bytecodeviewer/util/WindowClosingAdapter.java index a5d03aee..f14bdbdc 100644 --- a/src/main/java/the/bytecode/club/bytecodeviewer/util/WindowClosingAdapter.java +++ b/src/main/java/the/bytecode/club/bytecodeviewer/util/WindowClosingAdapter.java @@ -1,9 +1,3 @@ -package the.bytecode.club.bytecodeviewer.util; - -import java.awt.event.WindowAdapter; -import java.awt.event.WindowEvent; -import the.bytecode.club.bytecodeviewer.Configuration; - /*************************************************************************** * Bytecode Viewer (BCV) - Java & Android Reverse Engineering Suite * * Copyright (C) 2014 Konloch - Konloch.com / BytecodeViewer.com * @@ -22,6 +16,12 @@ import the.bytecode.club.bytecodeviewer.Configuration; * along with this program. If not, see . * ***************************************************************************/ +package the.bytecode.club.bytecodeviewer.util; + +import java.awt.event.WindowAdapter; +import java.awt.event.WindowEvent; +import the.bytecode.club.bytecodeviewer.Configuration; + /** * @author Konloch * @since 6/21/2021 diff --git a/src/main/java/the/bytecode/club/bytecodeviewer/util/WindowStateChangeAdapter.java b/src/main/java/the/bytecode/club/bytecodeviewer/util/WindowStateChangeAdapter.java index b4560f9c..85ec4b50 100644 --- a/src/main/java/the/bytecode/club/bytecodeviewer/util/WindowStateChangeAdapter.java +++ b/src/main/java/the/bytecode/club/bytecodeviewer/util/WindowStateChangeAdapter.java @@ -1,10 +1,3 @@ -package the.bytecode.club.bytecodeviewer.util; - -import java.awt.Frame; -import java.awt.event.WindowAdapter; -import java.awt.event.WindowEvent; -import the.bytecode.club.bytecodeviewer.gui.MainViewerGUI; - /*************************************************************************** * Bytecode Viewer (BCV) - Java & Android Reverse Engineering Suite * * Copyright (C) 2014 Konloch - Konloch.com / BytecodeViewer.com * @@ -23,6 +16,13 @@ import the.bytecode.club.bytecodeviewer.gui.MainViewerGUI; * along with this program. If not, see . * ***************************************************************************/ +package the.bytecode.club.bytecodeviewer.util; + +import java.awt.Frame; +import java.awt.event.WindowAdapter; +import java.awt.event.WindowEvent; +import the.bytecode.club.bytecodeviewer.gui.MainViewerGUI; + /** * @author Konloch * @since 6/21/2021 diff --git a/src/main/java/the/bytecode/club/bytecodeviewer/util/ZipUtils.java b/src/main/java/the/bytecode/club/bytecodeviewer/util/ZipUtils.java index a9571d24..b7bc1628 100644 --- a/src/main/java/the/bytecode/club/bytecodeviewer/util/ZipUtils.java +++ b/src/main/java/the/bytecode/club/bytecodeviewer/util/ZipUtils.java @@ -1,17 +1,3 @@ -package the.bytecode.club.bytecodeviewer.util; - -import java.io.File; -import java.io.FileInputStream; -import java.io.FileOutputStream; -import java.io.IOException; -import java.io.InputStream; -import java.util.Enumeration; -import java.util.Objects; -import java.util.jar.JarEntry; -import java.util.jar.JarFile; -import java.util.zip.ZipEntry; -import java.util.zip.ZipOutputStream; - /*************************************************************************** * Bytecode Viewer (BCV) - Java & Android Reverse Engineering Suite * * Copyright (C) 2014 Konloch - Konloch.com / BytecodeViewer.com * @@ -30,6 +16,20 @@ import java.util.zip.ZipOutputStream; * along with this program. If not, see . * ***************************************************************************/ +package the.bytecode.club.bytecodeviewer.util; + +import java.io.File; +import java.io.FileInputStream; +import java.io.FileOutputStream; +import java.io.IOException; +import java.io.InputStream; +import java.util.Enumeration; +import java.util.Objects; +import java.util.jar.JarEntry; +import java.util.jar.JarFile; +import java.util.zip.ZipEntry; +import java.util.zip.ZipOutputStream; + /** * Rudimentary utility class for Zip archives. */ diff --git a/src/main/java/the/bytecode/club/uikit/tabpopup/AbstractJTabbedPanePopupMenuHandler.java b/src/main/java/the/bytecode/club/uikit/tabpopup/AbstractJTabbedPanePopupMenuHandler.java index d5a80995..16b530de 100644 --- a/src/main/java/the/bytecode/club/uikit/tabpopup/AbstractJTabbedPanePopupMenuHandler.java +++ b/src/main/java/the/bytecode/club/uikit/tabpopup/AbstractJTabbedPanePopupMenuHandler.java @@ -1,3 +1,21 @@ +/*************************************************************************** + * Bytecode Viewer (BCV) - Java & Android Reverse Engineering Suite * + * Copyright (C) 2014 Konloch - Konloch.com / BytecodeViewer.com * + * * + * This program is free software: you can redistribute it and/or modify * + * it under the terms of the GNU General Public License as published by * + * the Free Software Foundation, either version 3 of the License, or * + * (at your option) any later version. * + * * + * This program is distributed in the hope that it will be useful, * + * but WITHOUT ANY WARRANTY; without even the implied warranty of * + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * + * GNU General Public License for more details. * + * * + * You should have received a copy of the GNU General Public License * + * along with this program. If not, see . * + ***************************************************************************/ + package the.bytecode.club.uikit.tabpopup; import java.awt.Component; diff --git a/src/main/java/the/bytecode/club/uikit/tabpopup/ITabPopupEventListener.java b/src/main/java/the/bytecode/club/uikit/tabpopup/ITabPopupEventListener.java index 5f28e5c5..bb792485 100644 --- a/src/main/java/the/bytecode/club/uikit/tabpopup/ITabPopupEventListener.java +++ b/src/main/java/the/bytecode/club/uikit/tabpopup/ITabPopupEventListener.java @@ -1,3 +1,21 @@ +/*************************************************************************** + * Bytecode Viewer (BCV) - Java & Android Reverse Engineering Suite * + * Copyright (C) 2014 Konloch - Konloch.com / BytecodeViewer.com * + * * + * This program is free software: you can redistribute it and/or modify * + * it under the terms of the GNU General Public License as published by * + * the Free Software Foundation, either version 3 of the License, or * + * (at your option) any later version. * + * * + * This program is distributed in the hope that it will be useful, * + * but WITHOUT ANY WARRANTY; without even the implied warranty of * + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * + * GNU General Public License for more details. * + * * + * You should have received a copy of the GNU General Public License * + * along with this program. If not, see . * + ***************************************************************************/ + package the.bytecode.club.uikit.tabpopup; import javax.swing.JTabbedPane; diff --git a/src/main/java/the/bytecode/club/uikit/tabpopup/ITabZeroComponentEventListener.java b/src/main/java/the/bytecode/club/uikit/tabpopup/ITabZeroComponentEventListener.java index 5cc1b131..0a5020d1 100644 --- a/src/main/java/the/bytecode/club/uikit/tabpopup/ITabZeroComponentEventListener.java +++ b/src/main/java/the/bytecode/club/uikit/tabpopup/ITabZeroComponentEventListener.java @@ -1,3 +1,21 @@ +/*************************************************************************** + * Bytecode Viewer (BCV) - Java & Android Reverse Engineering Suite * + * Copyright (C) 2014 Konloch - Konloch.com / BytecodeViewer.com * + * * + * This program is free software: you can redistribute it and/or modify * + * it under the terms of the GNU General Public License as published by * + * the Free Software Foundation, either version 3 of the License, or * + * (at your option) any later version. * + * * + * This program is distributed in the hope that it will be useful, * + * but WITHOUT ANY WARRANTY; without even the implied warranty of * + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * + * GNU General Public License for more details. * + * * + * You should have received a copy of the GNU General Public License * + * along with this program. If not, see . * + ***************************************************************************/ + package the.bytecode.club.uikit.tabpopup; import javax.swing.JTabbedPane; diff --git a/src/main/java/the/bytecode/club/uikit/tabpopup/JTabbedPanePopupEventHandler.java b/src/main/java/the/bytecode/club/uikit/tabpopup/JTabbedPanePopupEventHandler.java index 26f41bf1..661e491d 100644 --- a/src/main/java/the/bytecode/club/uikit/tabpopup/JTabbedPanePopupEventHandler.java +++ b/src/main/java/the/bytecode/club/uikit/tabpopup/JTabbedPanePopupEventHandler.java @@ -1,3 +1,21 @@ +/*************************************************************************** + * Bytecode Viewer (BCV) - Java & Android Reverse Engineering Suite * + * Copyright (C) 2014 Konloch - Konloch.com / BytecodeViewer.com * + * * + * This program is free software: you can redistribute it and/or modify * + * it under the terms of the GNU General Public License as published by * + * the Free Software Foundation, either version 3 of the License, or * + * (at your option) any later version. * + * * + * This program is distributed in the hope that it will be useful, * + * but WITHOUT ANY WARRANTY; without even the implied warranty of * + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * + * GNU General Public License for more details. * + * * + * You should have received a copy of the GNU General Public License * + * along with this program. If not, see . * + ***************************************************************************/ + package the.bytecode.club.uikit.tabpopup; import java.awt.Component; diff --git a/src/main/java/the/bytecode/club/uikit/tabpopup/TabPopupEvent.java b/src/main/java/the/bytecode/club/uikit/tabpopup/TabPopupEvent.java index 6450ea27..52c928e9 100644 --- a/src/main/java/the/bytecode/club/uikit/tabpopup/TabPopupEvent.java +++ b/src/main/java/the/bytecode/club/uikit/tabpopup/TabPopupEvent.java @@ -1,3 +1,21 @@ +/*************************************************************************** + * Bytecode Viewer (BCV) - Java & Android Reverse Engineering Suite * + * Copyright (C) 2014 Konloch - Konloch.com / BytecodeViewer.com * + * * + * This program is free software: you can redistribute it and/or modify * + * it under the terms of the GNU General Public License as published by * + * the Free Software Foundation, either version 3 of the License, or * + * (at your option) any later version. * + * * + * This program is distributed in the hope that it will be useful, * + * but WITHOUT ANY WARRANTY; without even the implied warranty of * + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * + * GNU General Public License for more details. * + * * + * You should have received a copy of the GNU General Public License * + * along with this program. If not, see . * + ***************************************************************************/ + package the.bytecode.club.uikit.tabpopup; import java.awt.Component; diff --git a/src/main/java/the/bytecode/club/uikit/tabpopup/closer/JTabbedPaneCloser.java b/src/main/java/the/bytecode/club/uikit/tabpopup/closer/JTabbedPaneCloser.java index cad0e355..c70fabdb 100644 --- a/src/main/java/the/bytecode/club/uikit/tabpopup/closer/JTabbedPaneCloser.java +++ b/src/main/java/the/bytecode/club/uikit/tabpopup/closer/JTabbedPaneCloser.java @@ -1,3 +1,21 @@ +/*************************************************************************** + * Bytecode Viewer (BCV) - Java & Android Reverse Engineering Suite * + * Copyright (C) 2014 Konloch - Konloch.com / BytecodeViewer.com * + * * + * This program is free software: you can redistribute it and/or modify * + * it under the terms of the GNU General Public License as published by * + * the Free Software Foundation, either version 3 of the License, or * + * (at your option) any later version. * + * * + * This program is distributed in the hope that it will be useful, * + * but WITHOUT ANY WARRANTY; without even the implied warranty of * + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * + * GNU General Public License for more details. * + * * + * You should have received a copy of the GNU General Public License * + * along with this program. If not, see . * + ***************************************************************************/ + package the.bytecode.club.uikit.tabpopup.closer; import java.awt.Component; diff --git a/src/main/java/the/bytecode/club/uikit/tabpopup/closer/JTabbedPanePopupMenuTabsCloser.java b/src/main/java/the/bytecode/club/uikit/tabpopup/closer/JTabbedPanePopupMenuTabsCloser.java index b7893933..27e65b55 100644 --- a/src/main/java/the/bytecode/club/uikit/tabpopup/closer/JTabbedPanePopupMenuTabsCloser.java +++ b/src/main/java/the/bytecode/club/uikit/tabpopup/closer/JTabbedPanePopupMenuTabsCloser.java @@ -1,3 +1,21 @@ +/*************************************************************************** + * Bytecode Viewer (BCV) - Java & Android Reverse Engineering Suite * + * Copyright (C) 2014 Konloch - Konloch.com / BytecodeViewer.com * + * * + * This program is free software: you can redistribute it and/or modify * + * it under the terms of the GNU General Public License as published by * + * the Free Software Foundation, either version 3 of the License, or * + * (at your option) any later version. * + * * + * This program is distributed in the hope that it will be useful, * + * but WITHOUT ANY WARRANTY; without even the implied warranty of * + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * + * GNU General Public License for more details. * + * * + * You should have received a copy of the GNU General Public License * + * along with this program. If not, see . * + ***************************************************************************/ + package the.bytecode.club.uikit.tabpopup.closer; import java.awt.Component; diff --git a/src/main/java/the/bytecode/club/uikit/tabpopup/closer/PopupMenuTabsCloseConfiguration.java b/src/main/java/the/bytecode/club/uikit/tabpopup/closer/PopupMenuTabsCloseConfiguration.java index 128fedfa..db5e2fb4 100644 --- a/src/main/java/the/bytecode/club/uikit/tabpopup/closer/PopupMenuTabsCloseConfiguration.java +++ b/src/main/java/the/bytecode/club/uikit/tabpopup/closer/PopupMenuTabsCloseConfiguration.java @@ -1,3 +1,21 @@ +/*************************************************************************** + * Bytecode Viewer (BCV) - Java & Android Reverse Engineering Suite * + * Copyright (C) 2014 Konloch - Konloch.com / BytecodeViewer.com * + * * + * This program is free software: you can redistribute it and/or modify * + * it under the terms of the GNU General Public License as published by * + * the Free Software Foundation, either version 3 of the License, or * + * (at your option) any later version. * + * * + * This program is distributed in the hope that it will be useful, * + * but WITHOUT ANY WARRANTY; without even the implied warranty of * + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * + * GNU General Public License for more details. * + * * + * You should have received a copy of the GNU General Public License * + * along with this program. If not, see . * + ***************************************************************************/ + package the.bytecode.club.uikit.tabpopup.closer; /**