From c02116fb56dd0a3481878357bd5240438d1cd08f Mon Sep 17 00:00:00 2001 From: Konloch Date: Wed, 21 Aug 2024 09:26:54 -0600 Subject: [PATCH 01/26] Fix Overzealous Final Usage --- .../club/bytecodeviewer/BytecodeViewer.java | 2 +- .../bytecodeviewer/api/ASMResourceUtil.java | 3 +- .../club/bytecodeviewer/api/ASMUtil.java | 2 +- .../bootloader/loader/LibraryClassLoader.java | 2 +- .../compilers/impl/SmaliAssembler.java | 2 +- .../impl/FernFlowerDecompiler.java | 4 +- .../decompilers/impl/JADXDecompiler.java | 2 +- .../decompilers/impl/JDGUIDecompiler.java | 2 +- .../decompilers/impl/ProcyonDecompiler.java | 7 +- .../decompilers/impl/SmaliDisassembler.java | 2 +- .../bytecodeviewer/gui/MainViewerGUI.java | 2 +- .../gui/components/ButtonHoverAnimation.java | 4 +- .../gui/components/ExportJar.java | 2 +- .../gui/components/JFrameConsole.java | 2 +- .../gui/components/VisibleComponent.java | 2 +- .../gui/hexviewer/ValuesPanel.java | 4 +- .../gui/resourcelist/ResourceListPane.java | 21 +++-- .../gui/resourcelist/ResourceTree.java | 4 +- .../gui/resourcelist/ResourceTreeNode.java | 10 +-- .../gui/resourcelist/SearchKeyAdapter.java | 2 +- .../gui/resourcesearch/SearchBoxPane.java | 4 +- .../gui/resourcesearch/SearchType.java | 2 +- .../resourceviewer/CloseButtonComponent.java | 2 +- .../resourceviewer/DraggableTabbedPane.java | 2 +- .../gui/resourceviewer/TabExitButton.java | 4 +- .../gui/resourceviewer/TabbedPane.java | 2 +- .../gui/resourceviewer/Workspace.java | 6 +- .../resourceviewer/viewer/ClassViewer.java | 7 +- .../gui/resourceviewer/viewer/FileViewer.java | 2 +- .../resourceviewer/viewer/ResourceViewer.java | 2 +- .../mapping/RemappingAnnotationAdapter.java | 8 +- .../mapping/RemappingClassAdapter.java | 5 +- .../mapping/RemappingFieldAdapter.java | 5 +- .../mapping/RemappingMethodAdapter.java | 12 +-- .../mapping/RemappingSignatureAdapter.java | 6 +- .../preinstalled/AllatoriStringDecrypter.java | 2 +- .../resources/importing/ImportResource.java | 4 +- .../searching/RegexInsnFinder.java | 39 +++++----- .../searching/impl/LDCSearch.java | 3 +- .../impl/MemberWithAnnotationSearch.java | 2 +- .../searching/impl/MethodCallSearch.java | 2 +- .../searching/impl/RegexSearch.java | 2 +- .../club/bytecodeviewer/util/FileDrop.java | 78 +++++++++---------- .../club/bytecodeviewer/util/JarUtils.java | 10 +-- .../club/bytecodeviewer/util/MiscUtils.java | 2 +- 45 files changed, 137 insertions(+), 157 deletions(-) diff --git a/src/main/java/the/bytecode/club/bytecodeviewer/BytecodeViewer.java b/src/main/java/the/bytecode/club/bytecodeviewer/BytecodeViewer.java index 8da7b7ff..717b165a 100644 --- a/src/main/java/the/bytecode/club/bytecodeviewer/BytecodeViewer.java +++ b/src/main/java/the/bytecode/club/bytecodeviewer/BytecodeViewer.java @@ -522,7 +522,7 @@ public class BytecodeViewer * @param files the file(s) you wish to open * @param recentFiles if it should append to the recent files menu */ - public static void openFiles(final File[] files, boolean recentFiles) + public static void openFiles(File[] files, boolean recentFiles) { if (recentFiles) { 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 2646b38d..4c23acc1 100644 --- a/src/main/java/the/bytecode/club/bytecodeviewer/api/ASMResourceUtil.java +++ b/src/main/java/the/bytecode/club/bytecodeviewer/api/ASMResourceUtil.java @@ -143,8 +143,7 @@ public final class ASMResourceUtil } } - public static void renameClassNode(final String oldName, - final String newName) + public static void renameClassNode(String oldName, String newName) { for (ClassNode c : BytecodeViewer.getLoadedClasses()) { 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 b06def09..d4facff1 100644 --- a/src/main/java/the/bytecode/club/bytecodeviewer/api/ASMUtil.java +++ b/src/main/java/the/bytecode/club/bytecodeviewer/api/ASMUtil.java @@ -32,7 +32,7 @@ public class ASMUtil /** * Creates a new ClassNode instances from the provided byte[] */ - public static ClassNode bytesToNode(final byte[] b) + public static ClassNode bytesToNode(byte[] b) { ClassReader cr = new ClassReader(b); ClassNode cn = new ClassNode(); 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 5fd830a2..e549771f 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 @@ -118,7 +118,7 @@ public class LibraryClassLoader extends ClassLoader implements ILoader { 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 a40d9342..46919096 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 @@ -30,7 +30,7 @@ import javax.swing.AbstractButton; public class ButtonHoverAnimation extends MouseAdapter { @Override - public void mouseEntered(final MouseEvent e) + public void mouseEntered(MouseEvent e) { final Component component = e.getComponent(); if (component instanceof AbstractButton) @@ -41,7 +41,7 @@ public class ButtonHoverAnimation extends MouseAdapter } @Override - public void mouseExited(final MouseEvent e) + public void mouseExited(MouseEvent e) { final Component component = e.getComponent(); if (component instanceof AbstractButton) 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 efae12f0..cb0c1065 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 @@ -36,7 +36,7 @@ import the.bytecode.club.bytecodeviewer.util.JarUtils; public class ExportJar extends JFrame { - public ExportJar(final String jarPath) + public ExportJar(String jarPath) { setSize(new Dimension(250, 277)); setResizable(false); 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 4597d506..e821e02b 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 @@ -123,7 +123,7 @@ public class JFrameConsole extends JFrame /** * Trims the console text to prevent killing the swing thread */ - public String trimConsoleText(final String s) + public String trimConsoleText(String s) { int len = s.length(); 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 8b2b017f..6521f114 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 @@ -35,7 +35,7 @@ import the.bytecode.club.bytecodeviewer.resources.IconResources; public abstract class VisibleComponent extends JInternalFrame { - public VisibleComponent(final String title) + public VisibleComponent(String title) { super(title, false, false, false, false); this.setDefaultIcon(); 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 eb2f0d6f..bd419e1d 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 @@ -762,7 +762,7 @@ public class ValuesPanel extends javax.swing.JPanel { } } - private void scheduleNextStep(final ValuesPanelField valuesPanelField) { + private void scheduleNextStep(ValuesPanelField valuesPanelField) { SwingUtilities.invokeLater(() -> updateValue(valuesPanelField)); } @@ -770,7 +770,7 @@ public class ValuesPanel extends javax.swing.JPanel { return updateInProgress; } - private void updateValue(final ValuesPanelField valuesPanelField) { + private void updateValue(ValuesPanelField valuesPanelField) { if (valuesPanelField.ordinal() == 0) { long dataSize = codeArea.getDataSize(); clearFields = dataPosition >= dataSize; 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 faa4b2f0..c24deecf 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 @@ -134,7 +134,7 @@ public class ResourceListPane extends TranslatedVisibleComponent implements File } @Override - public void filesDropped(final File[] files) + public void filesDropped(File[] files) { if (files.length < 1) return; @@ -204,7 +204,7 @@ public class ResourceListPane extends TranslatedVisibleComponent implements File if (!container.resourceFiles.isEmpty()) { - for (final Entry entry : container.resourceFiles.entrySet()) + for (Entry entry : container.resourceFiles.entrySet()) { String name = entry.getKey(); final String[] spl = name.split("/"); @@ -215,7 +215,7 @@ public class ResourceListPane extends TranslatedVisibleComponent implements File else { ResourceTreeNode parent = root; - for (final String s : spl) + for (String s : spl) { ResourceTreeNode child = parent.getChildByUserObject(s); @@ -233,14 +233,13 @@ public class ResourceListPane extends TranslatedVisibleComponent implements File } @SuppressWarnings("rawtypes") - public void expandAll(final JTree tree, final TreePath parent, - final boolean expand) { + public void expandAll(JTree tree, TreePath parent, boolean expand) { // Traverse children final TreeNode node = (TreeNode) parent.getLastPathComponent(); if (node.getChildCount() >= 0) { - for (final Enumeration e = node.children(); e.hasMoreElements(); ) { - final TreeNode n = (TreeNode) e.nextElement(); - final TreePath path = parent.pathByAddingChild(n); + for (Enumeration e = node.children(); e.hasMoreElements(); ) { + TreeNode n = (TreeNode) e.nextElement(); + TreePath path = parent.pathByAddingChild(n); expandAll(tree, path, expand); } } @@ -253,7 +252,7 @@ public class ResourceListPane extends TranslatedVisibleComponent implements File } } - public void removeNode(final JTree tree, final TreePath nodePath) + public void removeNode(JTree tree, TreePath nodePath) { MutableTreeNode node = findNodeByPath(nodePath); @@ -542,7 +541,7 @@ public class ResourceListPane extends TranslatedVisibleComponent implements File quickSearch.addFocusListener(new FocusListener() { @Override - public void focusGained(final FocusEvent arg0) + public void focusGained(FocusEvent arg0) { if (quickSearch.getText().equals(TranslatedStrings.QUICK_FILE_SEARCH_NO_FILE_EXTENSION.toString())) { @@ -554,7 +553,7 @@ public class ResourceListPane extends TranslatedVisibleComponent implements File } @Override - public void focusLost(final FocusEvent arg0) + public void focusLost(FocusEvent arg0) { if (quickSearch.getText().isEmpty()) { 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 0150ab88..2bfa7504 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 @@ -36,7 +36,7 @@ public class ResourceTree extends JTree private static final long serialVersionUID = -2355167326094772096L; DefaultMutableTreeNode treeRoot; - public ResourceTree(final DefaultMutableTreeNode treeRoot) + public ResourceTree(DefaultMutableTreeNode treeRoot) { super(treeRoot); this.treeRoot = treeRoot; @@ -45,7 +45,7 @@ public class ResourceTree extends JTree StringMetricsUtil m = null; @Override - public void paint(final Graphics graphics) + public void paint(Graphics graphics) { try { 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 ef18444d..d5493f33 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 @@ -36,13 +36,13 @@ public class ResourceTreeNode extends DefaultMutableTreeNode private static final int CHILD_MAP_BUILD_THRESHOLD = 3; private HashMap userObjectToChildMap = null; - public ResourceTreeNode(final Object o) + public ResourceTreeNode(Object o) { super(o); } @Override - public void insert(final MutableTreeNode newChild, final int childIndex) + public void insert(MutableTreeNode newChild, int childIndex) { super.insert(newChild, childIndex); addToMap((ResourceTreeNode) newChild); @@ -54,7 +54,7 @@ public class ResourceTreeNode extends DefaultMutableTreeNode } @SuppressWarnings("unchecked") - private void recursiveSort(final ResourceTreeNode node) + private void recursiveSort(ResourceTreeNode node) { node.children.sort(nodeComparator); for (TreeNode nextNode : (Iterable) node.children) @@ -145,7 +145,7 @@ public class ResourceTreeNode extends DefaultMutableTreeNode protected Comparator nodeComparator = new Comparator() { @Override - public int compare(final TreeNode o1, final TreeNode o2) + public int compare(TreeNode o1, TreeNode o2) { // To make sure nodes with children are always on top final int firstOffset = o1.getChildCount() > 0 ? -1000 : 0; @@ -155,7 +155,7 @@ public class ResourceTreeNode extends DefaultMutableTreeNode } @Override - public boolean equals(final Object obj) + public boolean equals(Object obj) { return false; } 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 a11bd6c3..03799689 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 @@ -41,7 +41,7 @@ public class SearchKeyAdapter extends KeyAdapter } @Override - public void keyPressed(final KeyEvent ke) + public void keyPressed(KeyEvent ke) { //only trigger on enter if (ke.getKeyCode() != KeyEvent.VK_ENTER) 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 c8df46b8..db338c09 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 @@ -76,7 +76,7 @@ public class SearchBoxPane extends TranslatedVisibleComponent DefaultComboBoxModel radiusModel = new DefaultComboBoxModel<>(); - for (final SearchRadius st : SEARCH_RADII) + for (SearchRadius st : SEARCH_RADII) radiusModel.addElement(st); searchRadiusBox = new JComboBox<>(radiusModel); @@ -84,7 +84,7 @@ public class SearchBoxPane extends TranslatedVisibleComponent searchOpts.add(searchRadiusOpt); DefaultComboBoxModel typeModel = new DefaultComboBoxModel<>(); - for (final SearchType st : SEARCH_TYPES) + for (SearchType st : SEARCH_TYPES) typeModel.addElement(st); typeBox = new JComboBox<>(typeModel); 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 ec3cd451..09e8536c 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 @@ -36,7 +36,7 @@ public enum SearchType public final SearchPanel panel; - SearchType(final SearchPanel panel) + SearchType(SearchPanel panel) { this.panel = 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 e6563dd8..e1d1d0f4 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 @@ -12,7 +12,7 @@ public class CloseButtonComponent extends JPanel { private final JTabbedPane pane; - public CloseButtonComponent(final JTabbedPane pane) { + public CloseButtonComponent(JTabbedPane pane) { super(new FlowLayout(FlowLayout.LEFT, 0, 0)); if (pane == null) { throw new NullPointerException("TabbedPane is null"); 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 97a62943..b8ae1c38 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 @@ -238,7 +238,7 @@ public class DraggableTabbedPane extends JTabbedPane { public void dropActionChanged(DropTargetDragEvent e) { } - public void dragOver(final DropTargetDragEvent e) { + public void dragOver(DropTargetDragEvent e) { TabTransferData data = getTabTransferData(e); if (data == null) return; 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 07828705..e06bb4f0 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 @@ -69,7 +69,7 @@ public class TabExitButton extends JButton implements ActionListener { } @Override - public void actionPerformed(final ActionEvent e) { + public void actionPerformed(ActionEvent e) { final int i = tabbedPane.tabs.indexOfTabComponent(tabbedPane); if (i != -1) { tabbedPane.tabs.remove(i); @@ -83,7 +83,7 @@ public class TabExitButton extends JButton implements ActionListener { // paint the cross @Override - protected void paintComponent(final Graphics g) { + protected void paintComponent(Graphics g) { super.paintComponent(g); final Graphics2D g2 = (Graphics2D) g.create(); // shift the image for pressed buttons 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 a0215fd0..73fff32e 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 @@ -47,7 +47,7 @@ public class TabbedPane extends JPanel { public final static MouseListener buttonHoverAnimation = new ButtonHoverAnimation(); public static final Color BLANK_COLOR = new Color(0, 0, 0, 0); - public TabbedPane(int tabIndex, String tabWorkingName, String fileContainerName, String name, final JTabbedPane existingTabs, ResourceViewer resource) { + public TabbedPane(int tabIndex, String tabWorkingName, String fileContainerName, String name, JTabbedPane existingTabs, ResourceViewer resource) { // unset default FlowLayout' gaps super(new FlowLayout(FlowLayout.LEFT, 0, 0)); 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 8db0c739..497e4a18 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 @@ -90,16 +90,16 @@ public class Workspace extends TranslatedVisibleComponent { } //load class resources - public void addClassResource(final ResourceContainer container, final String name) { + public void addClassResource(ResourceContainer container, String name) { addResource(container, name, new ClassViewer(container, name)); } //Load file resources - public void addFileResource(final ResourceContainer container, final String name) { + public void addFileResource(ResourceContainer container, String name) { addResource(container, name, new FileViewer(container, name)); } - private void addResource(final ResourceContainer container, final String name, final ResourceViewer resourceView) { + private void addResource(ResourceContainer container, String name, ResourceViewer resourceView) { // Warn user and prevent 'nothing' from opening if no Decompiler is selected if (BytecodeViewer.viewer.viewPane1.getSelectedDecompiler() == Decompiler.NONE && BytecodeViewer.viewer.viewPane2.getSelectedDecompiler() == Decompiler.NONE && 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 010af702..2bc819f6 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 @@ -63,7 +63,7 @@ public class ClassViewer extends ResourceViewer public List methods = Arrays.asList(new MethodParser(), new MethodParser(), new MethodParser()); - public ClassViewer(final ResourceContainer container, final String name) + public ClassViewer(ResourceContainer container, String name) { super(new Resource(name, container.getWorkingName(name), container)); @@ -82,7 +82,7 @@ public class ClassViewer extends ResourceViewer } @Override - public void refresh(final JButton button) + public void refresh(JButton button) { setPanes(); refreshTitle(); @@ -292,8 +292,7 @@ public class ClassViewer extends ResourceViewer /** * Whoever wrote this function, THANK YOU! */ - public static JSplitPane setDividerLocation(final JSplitPane splitter, - final double proportion) + public static JSplitPane setDividerLocation(JSplitPane splitter, double proportion) { if (splitter.isShowing()) { if (splitter.getWidth() > 0 && splitter.getHeight() > 0) { 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 25e5d5df..74db5cfa 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 @@ -56,7 +56,7 @@ public class FileViewer extends ResourceViewer public boolean canRefresh; public int zoomSteps = 0; - public FileViewer(final ResourceContainer container, final String name) + public FileViewer(ResourceContainer container, String name) { super(new Resource(name, container.getWorkingName(name), container)); 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 e5701ddb..b45c1396 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 @@ -62,7 +62,7 @@ public abstract class ResourceViewer extends JPanel } - public abstract void refresh(final JButton button); + public abstract void refresh(JButton button); /** * Updates the tab's title diff --git a/src/main/java/the/bytecode/club/bytecodeviewer/obfuscators/mapping/RemappingAnnotationAdapter.java b/src/main/java/the/bytecode/club/bytecodeviewer/obfuscators/mapping/RemappingAnnotationAdapter.java index df86279c..7226ad1c 100644 --- a/src/main/java/the/bytecode/club/bytecodeviewer/obfuscators/mapping/RemappingAnnotationAdapter.java +++ b/src/main/java/the/bytecode/club/bytecodeviewer/obfuscators/mapping/RemappingAnnotationAdapter.java @@ -41,15 +41,13 @@ import the.bytecode.club.bytecodeviewer.Constants; */ public class RemappingAnnotationAdapter extends AnnotationVisitor { - protected final org.objectweb.asm.commons.Remapper remapper; + protected final Remapper remapper; - public RemappingAnnotationAdapter(final AnnotationVisitor av, - final org.objectweb.asm.commons.Remapper remapper) { + public RemappingAnnotationAdapter(AnnotationVisitor av, Remapper remapper) { this(Constants.ASM_VERSION, av, remapper); } - protected RemappingAnnotationAdapter(final int api, - final AnnotationVisitor av, final Remapper remapper) { + protected RemappingAnnotationAdapter(int api, AnnotationVisitor av, Remapper remapper) { super(api, av); this.remapper = remapper; } 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 2c65144f..9027a6da 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 @@ -48,12 +48,11 @@ public class RemappingClassAdapter extends ClassVisitor { protected String className; - public RemappingClassAdapter(final ClassVisitor cv, final Remapper remapper) { + public RemappingClassAdapter(ClassVisitor cv, Remapper remapper) { this(Constants.ASM_VERSION, cv, remapper); } - protected RemappingClassAdapter(final int api, final ClassVisitor cv, - final Remapper remapper) { + protected RemappingClassAdapter(int api, ClassVisitor cv, Remapper remapper) { super(api, cv); this.remapper = remapper; } diff --git a/src/main/java/the/bytecode/club/bytecodeviewer/obfuscators/mapping/RemappingFieldAdapter.java b/src/main/java/the/bytecode/club/bytecodeviewer/obfuscators/mapping/RemappingFieldAdapter.java index 9167ed1a..b87e479a 100644 --- a/src/main/java/the/bytecode/club/bytecodeviewer/obfuscators/mapping/RemappingFieldAdapter.java +++ b/src/main/java/the/bytecode/club/bytecodeviewer/obfuscators/mapping/RemappingFieldAdapter.java @@ -45,12 +45,11 @@ public class RemappingFieldAdapter extends FieldVisitor { private final org.objectweb.asm.commons.Remapper remapper; - public RemappingFieldAdapter(final FieldVisitor fv, final org.objectweb.asm.commons.Remapper remapper) { + public RemappingFieldAdapter(FieldVisitor fv, org.objectweb.asm.commons.Remapper remapper) { this(Constants.ASM_VERSION, fv, remapper); } - protected RemappingFieldAdapter(final int api, final FieldVisitor fv, - final Remapper remapper) { + protected RemappingFieldAdapter(int api, FieldVisitor fv, Remapper remapper) { super(api, fv); this.remapper = remapper; } diff --git a/src/main/java/the/bytecode/club/bytecodeviewer/obfuscators/mapping/RemappingMethodAdapter.java b/src/main/java/the/bytecode/club/bytecodeviewer/obfuscators/mapping/RemappingMethodAdapter.java index f341fbd8..95ed11e6 100644 --- a/src/main/java/the/bytecode/club/bytecodeviewer/obfuscators/mapping/RemappingMethodAdapter.java +++ b/src/main/java/the/bytecode/club/bytecodeviewer/obfuscators/mapping/RemappingMethodAdapter.java @@ -49,13 +49,11 @@ public class RemappingMethodAdapter extends LocalVariablesSorter { protected final org.objectweb.asm.commons.Remapper remapper; - public RemappingMethodAdapter(final int access, final String desc, - final MethodVisitor mv, final org.objectweb.asm.commons.Remapper remapper) { + public RemappingMethodAdapter(int access, String desc, MethodVisitor mv, org.objectweb.asm.commons.Remapper remapper) { this(Constants.ASM_VERSION, access, desc, mv, remapper); } - protected RemappingMethodAdapter(final int api, final int access, - final String desc, final MethodVisitor mv, final Remapper remapper) { + protected RemappingMethodAdapter(int api, int access, String desc, MethodVisitor mv, Remapper remapper) { super(api, access, desc, mv); this.remapper = remapper; } @@ -124,8 +122,7 @@ public class RemappingMethodAdapter extends LocalVariablesSorter { @Deprecated @Override - public void visitMethodInsn(final int opcode, final String owner, - final String name, final String desc) { + public void visitMethodInsn(int opcode, String owner, String name, String desc) { if (api >= Constants.ASM_VERSION) { super.visitMethodInsn(opcode, owner, name, desc); return; @@ -135,8 +132,7 @@ public class RemappingMethodAdapter extends LocalVariablesSorter { } @Override - public void visitMethodInsn(final int opcode, final String owner, - final String name, final String desc, final boolean itf) { + public void visitMethodInsn(int opcode, String owner, String name, String desc, boolean itf) { if (api < Constants.ASM_VERSION) { super.visitMethodInsn(opcode, owner, name, desc, itf); return; diff --git a/src/main/java/the/bytecode/club/bytecodeviewer/obfuscators/mapping/RemappingSignatureAdapter.java b/src/main/java/the/bytecode/club/bytecodeviewer/obfuscators/mapping/RemappingSignatureAdapter.java index 1191714c..50ad5cc3 100644 --- a/src/main/java/the/bytecode/club/bytecodeviewer/obfuscators/mapping/RemappingSignatureAdapter.java +++ b/src/main/java/the/bytecode/club/bytecodeviewer/obfuscators/mapping/RemappingSignatureAdapter.java @@ -47,13 +47,11 @@ public class RemappingSignatureAdapter extends SignatureVisitor { private String className; - public RemappingSignatureAdapter(final SignatureVisitor v, - final org.objectweb.asm.commons.Remapper remapper) { + public RemappingSignatureAdapter(SignatureVisitor v, Remapper remapper) { this(Constants.ASM_VERSION, v, remapper); } - protected RemappingSignatureAdapter(final int api, - final SignatureVisitor v, final Remapper remapper) { + protected RemappingSignatureAdapter(int api, SignatureVisitor v, Remapper remapper) { super(api); this.v = v; this.remapper = remapper; 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 27a9209f..cb570d02 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 @@ -114,7 +114,7 @@ public class AllatoriStringDecrypter extends Plugin scanMethodNode(classNode, method); } - public int readUnsignedShort(byte[] b, final int index) + public int readUnsignedShort(byte[] b, int index) { return ((b[index] & 0xFF) << 8) | (b[index + 1] & 0xFF); } 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 0774d12c..4f87a817 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 @@ -37,7 +37,7 @@ public class ImportResource implements Runnable { try { - for (final File file : files) + for (File file : files) { final String fn = file.getName(); System.out.println("Opening..." + file.getAbsolutePath()); @@ -60,7 +60,7 @@ public class ImportResource implements Runnable Import.FILE.getImporter().open(file); } } - catch (final Exception e) + catch (Exception e) { BytecodeViewer.handleException(e); } 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 dfca79f8..6a0738c3 100644 --- a/src/main/java/the/bytecode/club/bytecodeviewer/searching/RegexInsnFinder.java +++ b/src/main/java/the/bytecode/club/bytecodeviewer/searching/RegexInsnFinder.java @@ -137,8 +137,7 @@ public class RegexInsnFinder { private static final String opcodesAnys = buildRegexItems(opcodesAny, false, false); - private static String buildRegexItems(final String[] items, - final boolean capture, final boolean stdRepl) { + private static String buildRegexItems(String[] items, boolean capture, boolean stdRepl) { if (items.length == 0) return "()"; StringBuilder result = new StringBuilder((stdRepl ? "\\b" : "") + "(" + (capture ? "" : "?:") @@ -150,11 +149,11 @@ public class RegexInsnFinder { return result.toString(); } - private static String buildRegexItems(final String[] items) { + private static String buildRegexItems(String[] items) { return buildRegexItems(items, true, true); } - public static String processRegex(final String regex) { + public static String processRegex(String regex) { String result = regex.trim(); result = result.replaceAll("\\bANYINSN *", opcodesAnys); result = result.replaceAll(opcodesInts @@ -207,11 +206,11 @@ public class RegexInsnFinder { private int[] offsets; private String insnString; - public RegexInsnFinder(final ClassNode clazz, final MethodNode method) { + public RegexInsnFinder(ClassNode clazz, MethodNode method) { setMethod(clazz, method); } - private AbstractInsnNode[] cleanInsn(final InsnList insnList) { + private AbstractInsnNode[] cleanInsn(InsnList insnList) { final List il = new ArrayList<>(); for (AbstractInsnNode node : insnList) { @@ -229,7 +228,7 @@ public class RegexInsnFinder { public void refresh() { origInstructions = cleanInsn(mn.instructions); final List il = new ArrayList<>(); - for (final AbstractInsnNode ain : mn.instructions.toArray()) + for (AbstractInsnNode ain : mn.instructions.toArray()) if (ain.getOpcode() >= 0) { il.add(ain); } @@ -245,7 +244,7 @@ public class RegexInsnFinder { throw new UnexpectedException( "Unknown opcode encountered: " + ain.getOpcode()); - } catch (final UnexpectedException e) { + } catch (UnexpectedException e) { BytecodeViewer.handleException(e); } } @@ -262,7 +261,7 @@ public class RegexInsnFinder { // without building a string of the whole method. public static boolean staticScan(ClassNode node, MethodNode mn, Pattern pattern) { final List il = new ArrayList<>(); - for (final AbstractInsnNode ain : mn.instructions.toArray()) + for (AbstractInsnNode ain : mn.instructions.toArray()) if (ain.getOpcode() >= 0) { il.add(ain); } @@ -273,7 +272,7 @@ public class RegexInsnFinder { throw new UnexpectedException( "Unknown opcode encountered: " + ain.getOpcode()); - } catch (final UnexpectedException e) { + } catch (UnexpectedException e) { BytecodeViewer.handleException(e); } } @@ -326,12 +325,12 @@ public class RegexInsnFinder { return insnString; } - public void setMethod(final ClassNode ci, final MethodNode mi) { + public void setMethod(ClassNode ci, MethodNode mi) { this.mn = mi; refresh(); } - private AbstractInsnNode[] makeResult(final int start, final int end) { + private AbstractInsnNode[] makeResult(int start, int end) { int startIndex = 0; int endIndex = -1; for (int i = 0; i < offsets.length - 1; i++) { @@ -359,13 +358,13 @@ public class RegexInsnFinder { * @param regex the regular expression * @return the matching instructions */ - public AbstractInsnNode[] find(final String regex) { + public AbstractInsnNode[] find(String regex) { try { final Matcher regexMatcher = Pattern.compile(processRegex(regex), Pattern.MULTILINE).matcher(insnString); if (regexMatcher.find()) return makeResult(regexMatcher.start(), regexMatcher.end()); - } catch (final PatternSyntaxException ex) { + } catch (PatternSyntaxException ex) { //ignore, they fucked up regex } return new AbstractInsnNode[0]; @@ -377,7 +376,7 @@ public class RegexInsnFinder { * @param regex the regular expression * @return a list with all sets of matching instructions */ - public List findAll(final String regex) { + public List findAll(String regex) { final List results = new ArrayList<>(); try { final Matcher regexMatcher = Pattern.compile(processRegex(regex), @@ -385,7 +384,7 @@ public class RegexInsnFinder { while (regexMatcher.find()) { results.add(makeResult(regexMatcher.start(), regexMatcher.end())); } - } catch (final PatternSyntaxException ex) { + } catch (PatternSyntaxException ex) { BytecodeViewer.handleException(ex); } return results; @@ -398,7 +397,7 @@ public class RegexInsnFinder { * @param regex the regular expression * @return the groups with matching instructions */ - public AbstractInsnNode[][] findGroups(final String regex) { + public AbstractInsnNode[][] findGroups(String regex) { try { final Matcher regexMatcher = Pattern.compile(processRegex(regex), Pattern.MULTILINE).matcher(insnString); @@ -411,7 +410,7 @@ public class RegexInsnFinder { } return result; } - } catch (final PatternSyntaxException ex) { + } catch (PatternSyntaxException ex) { BytecodeViewer.handleException(ex); } return new AbstractInsnNode[0][0]; @@ -424,7 +423,7 @@ public class RegexInsnFinder { * @param regex the regular expression * @return a list with all sets of groups with matching instructions */ - public List findAllGroups(final String regex) { + public List findAllGroups(String regex) { final List results = new ArrayList<>(); try { final Matcher regexMatcher = Pattern.compile(processRegex(regex), @@ -438,7 +437,7 @@ public class RegexInsnFinder { } results.add(result); } - } catch (final PatternSyntaxException ex) { + } catch (PatternSyntaxException ex) { BytecodeViewer.handleException(ex); } return results; 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 4ec27f6f..f9142a08 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 @@ -71,8 +71,7 @@ public class LDCSearch implements SearchPanel return myPanel; } - public void search(final ResourceContainer container, final String resourceWorkingName, final ClassNode node, - boolean caseSensitive) + public void search(ResourceContainer container, String resourceWorkingName, ClassNode node, boolean caseSensitive) { final Iterator methods = node.methods.iterator(); final String srchText = searchText.getText(); 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 ec7da6e4..51ad75ca 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 @@ -63,7 +63,7 @@ public class MemberWithAnnotationSearch implements SearchPanel { return myPanel; } - public void search(final ResourceContainer container, final String resourceWorkingName, final ClassNode node, boolean caseSensitive) { + public void search(ResourceContainer container, String resourceWorkingName, ClassNode node, boolean caseSensitive) { final String srchText = annotation.getText().trim(); if (srchText.isEmpty()) return; 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 25e5721a..4bf79271 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 @@ -143,7 +143,7 @@ public class MethodCallSearch implements SearchPanel } } - public void found(final ResourceContainer container, final String resourceWorkingName, final ClassNode node, final MethodNode method, final AbstractInsnNode insnNode) + public void found(ResourceContainer container, String resourceWorkingName, ClassNode node, MethodNode method, AbstractInsnNode insnNode) { BytecodeViewer.viewer.searchBoxPane.treeRoot.add(new LDCSearchTreeNodeResult( container, 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 8e37fca2..5ede7454 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 @@ -73,7 +73,7 @@ public class RegexSearch implements SearchPanel } @Override - public void search(final ResourceContainer container, final String resourceWorkingName, final ClassNode node, boolean exact) + public void search(ResourceContainer container, String resourceWorkingName, ClassNode node, boolean exact) { final Iterator methods = node.methods.iterator(); final String srchText = searchText.getText(); 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 1170669a..a22504b2 100644 --- a/src/main/java/the/bytecode/club/bytecodeviewer/util/FileDrop.java +++ b/src/main/java/the/bytecode/club/bytecodeviewer/util/FileDrop.java @@ -102,7 +102,7 @@ public class FileDrop { * @param listener Listens for filesDropped. * @since 1.0 */ - public FileDrop(final Component c, final Listener listener) { + public FileDrop(Component c, Listener listener) { this(null, // Logging stream c, // Drop target BorderFactory.createMatteBorder(2, 2, 2, 2, @@ -122,8 +122,8 @@ public class FileDrop { * @param listener Listens for filesDropped. * @since 1.0 */ - public FileDrop(final Component c, final boolean recursive, - final Listener listener) { + public FileDrop(Component c, boolean recursive, + Listener listener) { this(null, // Logging stream c, // Drop target BorderFactory.createMatteBorder(2, 2, 2, 2, @@ -144,8 +144,8 @@ public class FileDrop { * @param listener Listens for filesDropped. * @since 1.0 */ - public FileDrop(final PrintStream out, final Component c, - final Listener listener) { + public FileDrop(PrintStream out, Component c, + Listener listener) { this(out, // Logging stream c, // Drop target BorderFactory.createMatteBorder(2, 2, 2, 2, @@ -169,8 +169,8 @@ public class FileDrop { * @param listener Listens for filesDropped. * @since 1.0 */ - public FileDrop(final PrintStream out, final Component c, - final boolean recursive, final Listener listener) { + public FileDrop(PrintStream out, Component c, + boolean recursive, Listener listener) { this(out, // Logging stream c, // Drop target BorderFactory.createMatteBorder(2, 2, 2, 2, @@ -187,8 +187,8 @@ public class FileDrop { * @param listener Listens for filesDropped. * @since 1.0 */ - public FileDrop(final Component c, - final Border dragBorder, final Listener listener) { + public FileDrop(Component c, + Border dragBorder, Listener listener) { this(null, // Logging stream c, // Drop target dragBorder, // Drag border @@ -208,9 +208,9 @@ public class FileDrop { * @param listener Listens for filesDropped. * @since 1.0 */ - public FileDrop(final Component c, - final Border dragBorder, - final boolean recursive, final Listener listener) { + public FileDrop(Component c, + Border dragBorder, + boolean recursive, Listener listener) { this(null, c, dragBorder, recursive, listener); } // end constructor @@ -227,8 +227,8 @@ public class FileDrop { * @param listener Listens for filesDropped. * @since 1.0 */ - public FileDrop(final PrintStream out, final Component c, - final Border dragBorder, final Listener listener) { + public FileDrop(PrintStream out, Component c, + Border dragBorder, Listener listener) { this(out, // Logging stream c, // Drop target dragBorder, // Drag border @@ -250,14 +250,14 @@ public class FileDrop { * @param listener Listens for filesDropped. * @since 1.0 */ - public FileDrop(final PrintStream out, final Component c, - final Border dragBorder, - final boolean recursive, final Listener listener) { + public FileDrop(PrintStream out, Component c, + Border dragBorder, + boolean recursive, Listener listener) { if (supportsDnD()) { // Make a drop listener dropListener = new DropTargetListener() { @Override - public void dragEnter(final DropTargetDragEvent evt) { + public void dragEnter(DropTargetDragEvent evt) { log(out, "FileDrop: dragEnter event."); // Is this an acceptable drag event? @@ -284,7 +284,7 @@ public class FileDrop { } // end dragEnter @Override - public void dragOver(final DropTargetDragEvent evt) { // This + public void dragOver(DropTargetDragEvent evt) { // This // is // called // continually @@ -301,7 +301,7 @@ public class FileDrop { } // end dragOver @Override - public void drop(final DropTargetDropEvent evt) { + public void drop(DropTargetDropEvent evt) { log(out, "FileDrop: drop event."); try { // Get whatever was dropped final Transferable tr = evt @@ -380,12 +380,12 @@ public class FileDrop { // (KDE/Gnome) support added. } // end else: not a file list } // end try - catch (final IOException io) { + catch (IOException io) { log(out, "FileDrop: IOException - abort:"); BytecodeViewer.handleException(io); evt.rejectDrop(); } // end catch IOException - catch (final UnsupportedFlavorException ufe) { + catch (UnsupportedFlavorException ufe) { log(out, "FileDrop: UnsupportedFlavorException - abort:"); BytecodeViewer.handleException( @@ -403,7 +403,7 @@ public class FileDrop { } // end drop @Override - public void dragExit(final DropTargetEvent evt) { + public void dragExit(DropTargetEvent evt) { log(out, "FileDrop: dragExit event."); // If it's a Swing component, reset its border if (c instanceof JComponent) { @@ -447,7 +447,7 @@ public class FileDrop { .forName("java.awt.dnd.DnDConstants"); support = true; } // end try - catch (final Throwable t) { + catch (Throwable t) { support = false; } // end catch supportsDnD = support; @@ -458,8 +458,7 @@ public class FileDrop { // BEGIN 2007-09-12 Nathan Blomquist -- Linux (KDE/Gnome) support added. private static final String ZERO_CHAR_STRING = "" + (char) 0; - private static File[] createFileArray(final BufferedReader bReader, - final PrintStream out) { + private static File[] createFileArray(BufferedReader bReader, PrintStream out) { try { final java.util.List list = new java.util.ArrayList(); java.lang.String line; @@ -473,13 +472,13 @@ public class FileDrop { final File file = new File( new java.net.URI(line)); list.add(file); - } catch (final Exception ex) { + } catch (Exception ex) { log(out, "Error with " + line + ": " + ex.getMessage()); } } return (File[]) list.toArray(new File[0]); - } catch (final IOException ex) { + } catch (IOException ex) { log(out, "FileDrop: IOException"); } return new File[0]; @@ -487,14 +486,13 @@ public class FileDrop { // END 2007-09-12 Nathan Blomquist -- Linux (KDE/Gnome) support added. - private void makeDropTarget(final PrintStream out, - final Component c, final boolean recursive) { + private void makeDropTarget(PrintStream out, Component c, boolean recursive) { // Make drop target final DropTarget dt = new DropTarget(); try { dt.addDropTargetListener(dropListener); } // end try - catch (final java.util.TooManyListenersException e) { + catch (java.util.TooManyListenersException e) { BytecodeViewer.handleException(e); log(out, "FileDrop: Drop will not work due to previous error. Do you have another listener attached?"); @@ -536,8 +534,7 @@ public class FileDrop { /** * Determine if the dragged data is a file list. */ - private boolean isDragOk(final PrintStream out, - final DropTargetDragEvent evt) { + private boolean isDragOk(PrintStream out, DropTargetDragEvent evt) { boolean ok = false; // Get data flavors being dragged @@ -577,7 +574,7 @@ public class FileDrop { /** * Outputs message to out if it's not null. */ - private static void log(final PrintStream out, final String message) { // Log + private static void log(PrintStream out, String message) { // Log // message // if // requested @@ -596,7 +593,7 @@ public class FileDrop { * @param c The component to unregister as a drop target * @since 1.0 */ - public static boolean remove(final Component c) { + public static boolean remove(Component c) { return remove(null, c, true); } // end remove @@ -611,8 +608,7 @@ public class FileDrop { * @param recursive Recursively unregister components within a container * @since 1.0 */ - public static boolean remove(final PrintStream out, - final Component c, final boolean recursive) { // Make sure + public static boolean remove(PrintStream out, Component c, boolean recursive) { // Make sure // we // support // @@ -691,7 +687,7 @@ public class FileDrop { * @param source The event source * @since 1.1 */ - public Event(final File[] files, final Object source) { + public Event(File[] files, Object source) { super(source); this.files = files; } // end constructor @@ -796,7 +792,7 @@ public class FileDrop { * @param data The data to transfer * @since 1.1 */ - public TransferableObject(final Object data) { + public TransferableObject(Object data) { this.data = data; this.customFlavor = new DataFlavor( data.getClass(), MIME_TYPE); @@ -811,7 +807,7 @@ public class FileDrop { * @see Fetcher * @since 1.1 */ - public TransferableObject(final Fetcher fetcher) { + public TransferableObject(Fetcher fetcher) { this.fetcher = fetcher; } // end constructor @@ -829,7 +825,7 @@ public class FileDrop { * @see Fetcher * @since 1.1 */ - public TransferableObject(final Class dataClass, final Fetcher fetcher) { + public TransferableObject(Class dataClass, Fetcher fetcher) { this.fetcher = fetcher; this.customFlavor = new DataFlavor(dataClass, MIME_TYPE); 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 fb105234..ee2895ef 100644 --- a/src/main/java/the/bytecode/club/bytecodeviewer/util/JarUtils.java +++ b/src/main/java/the/bytecode/club/bytecodeviewer/util/JarUtils.java @@ -67,7 +67,7 @@ public class JarUtils * @param jarFile the input jar file * @throws IOException */ - public static void importArchiveA(final File jarFile) throws IOException + public static void importArchiveA(File jarFile) throws IOException { ResourceContainer container = new ResourceContainer(jarFile); Map files = new LinkedHashMap<>(); @@ -118,7 +118,7 @@ public class JarUtils * @param jarFile the input jar file * @throws IOException */ - public static void importArchiveB(final File jarFile) throws IOException + public static void importArchiveB(File jarFile) throws IOException { //if this ever fails, worst case import Sun's jarsigner code from JDK 7 re-sign the jar to rebuild the CRC, // should also rebuild the archive byte offsets @@ -160,7 +160,7 @@ public class JarUtils BytecodeViewer.addResourceContainer(container); } - public static List loadClasses(final File jarFile) throws IOException + public static List loadClasses(File jarFile) throws IOException { List classes = new ArrayList<>(); try (FileInputStream fis = new FileInputStream(jarFile); @@ -200,7 +200,7 @@ public class JarUtils * @param zipFile the input zip file * @throws IOException */ - public static Map loadResources(final File zipFile) throws IOException { + public static Map loadResources(File zipFile) throws IOException { if (!zipFile.exists()) return new LinkedHashMap<>(); // just ignore (don't return null for null-safety!) @@ -234,7 +234,7 @@ public class JarUtils * @param bytez the class file's byte[] * @return the ClassNode instance */ - public static ClassNode getNode(final byte[] bytez) + public static ClassNode getNode(byte[] bytez) { //TODO figure out why is this synchronized and if it's actually needed (probably not) synchronized (LOCK) 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 335bd4b0..6be19c50 100644 --- a/src/main/java/the/bytecode/club/bytecodeviewer/util/MiscUtils.java +++ b/src/main/java/the/bytecode/club/bytecodeviewer/util/MiscUtils.java @@ -333,7 +333,7 @@ public class MiscUtils * @return the read byte[] * @throws IOException */ - public static byte[] getBytes(final InputStream is) throws IOException + public static byte[] getBytes(InputStream is) throws IOException { try (ByteArrayOutputStream baos = new ByteArrayOutputStream()) { From e138680d7c3059ee4bbe93c7868508ccde7a63ff Mon Sep 17 00:00:00 2001 From: Konloch Date: Wed, 21 Aug 2024 09:37:54 -0600 Subject: [PATCH 02/26] Remove Unused DelayTabbedPaneThread --- .../gui/resourceviewer/TabbedPane.java | 2 - .../gui/util/DelayTabbedPaneThread.java | 37 ------------------- 2 files changed, 39 deletions(-) delete mode 100644 src/main/java/the/bytecode/club/bytecodeviewer/gui/util/DelayTabbedPaneThread.java 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 73fff32e..7f216b4f 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 @@ -3,7 +3,6 @@ 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 the.bytecode.club.bytecodeviewer.gui.util.DelayTabbedPaneThread; import javax.swing.*; import java.awt.*; @@ -38,7 +37,6 @@ public class TabbedPane extends JPanel { public final JTabbedPane tabs; public final JLabel label; - private DelayTabbedPaneThread probablyABadIdea; private long startedDragging = 0; public final String tabName; public final String fileContainerName; diff --git a/src/main/java/the/bytecode/club/bytecodeviewer/gui/util/DelayTabbedPaneThread.java b/src/main/java/the/bytecode/club/bytecodeviewer/gui/util/DelayTabbedPaneThread.java deleted file mode 100644 index a43fe76a..00000000 --- a/src/main/java/the/bytecode/club/bytecodeviewer/gui/util/DelayTabbedPaneThread.java +++ /dev/null @@ -1,37 +0,0 @@ -package the.bytecode.club.bytecodeviewer.gui.util; - -import java.awt.Color; -import javax.swing.SwingUtilities; -import the.bytecode.club.bytecodeviewer.gui.resourceviewer.TabbedPane; - -/** - * @author Konloch - */ -public class DelayTabbedPaneThread extends Thread -{ - public boolean stopped = false; - private final TabbedPane pane; - - public DelayTabbedPaneThread(TabbedPane pane) { - this.pane = pane; - } - - @Override - public void run() { - try { - sleep(200); - } catch (InterruptedException e) { - e.printStackTrace(); - } - if (!stopped) { - SwingUtilities.invokeLater(() -> { - if (stopped) - return; - - pane.label.setOpaque(true); - pane.label.setBackground(Color.MAGENTA); - pane.label.updateUI(); - }); - } - } -} From de433f6d842119d6a857e6d6119ad3127b1a2e35 Mon Sep 17 00:00:00 2001 From: Konloch Date: Wed, 21 Aug 2024 09:41:51 -0600 Subject: [PATCH 03/26] Fix Thread.sleep Usage --- .../bytecode/club/bytecodeviewer/api/BCV.java | 12 ++++------- .../compilers/impl/JavaCompiler.java | 14 +++++-------- .../club/bytecodeviewer/util/BootCheck.java | 9 +-------- .../club/bytecodeviewer/util/SleepUtil.java | 20 +++++++++++++++++++ 4 files changed, 30 insertions(+), 25 deletions(-) create mode 100644 src/main/java/the/bytecode/club/bytecodeviewer/util/SleepUtil.java 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 98e62a09..aadc3c16 100644 --- a/src/main/java/the/bytecode/club/bytecodeviewer/api/BCV.java +++ b/src/main/java/the/bytecode/club/bytecodeviewer/api/BCV.java @@ -22,6 +22,7 @@ import the.bytecode.club.bytecodeviewer.plugin.preinstalled.EZInjection; import the.bytecode.club.bytecodeviewer.util.DialogUtils; import the.bytecode.club.bytecodeviewer.util.JarUtils; import the.bytecode.club.bytecodeviewer.util.MiscUtils; +import the.bytecode.club.bytecodeviewer.util.SleepUtil; import static the.bytecode.club.bytecodeviewer.Constants.DEV_MODE; import static the.bytecode.club.bytecodeviewer.Constants.fs; @@ -290,14 +291,9 @@ public class BCV */ public static void hideFrame(JFrame frame, long milliseconds) { - new Thread(()->{ - long started = System.currentTimeMillis(); - while(System.currentTimeMillis()-started <= milliseconds) - { - try { - Thread.sleep(100); - } catch (InterruptedException ignored) { } - } + new Thread(()-> + { + SleepUtil.sleep(milliseconds); frame.setVisible(false); }, "Timed Swing Hide").start(); 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 edc262fa..54fcec43 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 @@ -13,6 +13,7 @@ import the.bytecode.club.bytecodeviewer.resources.ExternalResources; import the.bytecode.club.bytecodeviewer.translation.TranslatedStrings; import the.bytecode.club.bytecodeviewer.util.JarUtils; import the.bytecode.club.bytecodeviewer.util.MiscUtils; +import the.bytecode.club.bytecodeviewer.util.SleepUtil; import static the.bytecode.club.bytecodeviewer.Constants.fs; import static the.bytecode.club.bytecodeviewer.Constants.nl; @@ -95,15 +96,10 @@ public class JavaCompiler extends InternalCompiler Process process = pb.start(); BytecodeViewer.createdProcesses.add(process); - Thread failSafe = new Thread(() -> { - long started = System.currentTimeMillis(); - while (System.currentTimeMillis() - started <= 10_000) { - try { - Thread.sleep(100); - } catch (InterruptedException e) { - e.printStackTrace(); - } - } + Thread failSafe = new Thread(() -> + { + //wait 10 seconds + SleepUtil.sleep(10_000); if (process.isAlive()) { 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 d7c5000e..ad89b081 100644 --- a/src/main/java/the/bytecode/club/bytecodeviewer/util/BootCheck.java +++ b/src/main/java/the/bytecode/club/bytecodeviewer/util/BootCheck.java @@ -47,15 +47,8 @@ public class BootCheck implements Runnable @Override public void run() { - long start = System.currentTimeMillis(); - //7 second failsafe - while (System.currentTimeMillis() - start < 7000) - { - try { - Thread.sleep(100); - } catch (InterruptedException ignored) { } - } + SleepUtil.sleep(7000); //if it's failed to boot and it's not downloading attempt to load the libraries failSafeLoadLibraries(); diff --git a/src/main/java/the/bytecode/club/bytecodeviewer/util/SleepUtil.java b/src/main/java/the/bytecode/club/bytecodeviewer/util/SleepUtil.java new file mode 100644 index 00000000..d134673d --- /dev/null +++ b/src/main/java/the/bytecode/club/bytecodeviewer/util/SleepUtil.java @@ -0,0 +1,20 @@ +package the.bytecode.club.bytecodeviewer.util; + +/** + * @author Konloch + * @since 8/21/2024 + */ +public class SleepUtil +{ + public static void sleep(long ms) + { + try + { + Thread.sleep(ms); + } + catch (InterruptedException e) + { + e.printStackTrace(); + } + } +} From eb09cebf045544f06370e15f4fc8550479eb3725 Mon Sep 17 00:00:00 2001 From: Konloch Date: Wed, 21 Aug 2024 09:49:13 -0600 Subject: [PATCH 04/26] Added FileHeaderUtils --- .../gui/resourcelist/ResourceListPane.java | 3 +- .../CompiledJavaPluginLaunchStrategy.java | 3 +- .../resources/ResourceContainerImporter.java | 3 +- .../importing/impl/ClassResourceImporter.java | 3 +- .../impl/DirectoryResourceImporter.java | 3 +- .../bytecodeviewer/util/FileHeaderUtils.java | 31 +++++++++++++++++++ .../club/bytecodeviewer/util/JarUtils.java | 6 ++-- .../club/bytecodeviewer/util/MiscUtils.java | 9 ------ 8 files changed, 44 insertions(+), 17 deletions(-) create mode 100644 src/main/java/the/bytecode/club/bytecodeviewer/util/FileHeaderUtils.java 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 c24deecf..c0ca2b72 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 @@ -37,6 +37,7 @@ import the.bytecode.club.bytecodeviewer.translation.components.TranslatedJCheckB import the.bytecode.club.bytecodeviewer.translation.components.TranslatedJTextField; import the.bytecode.club.bytecodeviewer.translation.components.TranslatedVisibleComponent; import the.bytecode.club.bytecodeviewer.util.FileDrop; +import the.bytecode.club.bytecodeviewer.util.FileHeaderUtils; import the.bytecode.club.bytecodeviewer.util.LazyNameUtil; import the.bytecode.club.bytecodeviewer.util.MiscUtils; @@ -346,7 +347,7 @@ public class ResourceListPane extends TranslatedVisibleComponent implements File } //view classes - if (content != null && MiscUtils.getFileHeaderMagicNumber(content).equalsIgnoreCase("cafebabe") + if (content != null && FileHeaderUtils.doesFileHeaderMatch(content, FileHeaderUtils.JAVA_CLASS_FILE_HEADER) || name.endsWith(".class")) { try 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 4d20c6b8..fb6a08a6 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 @@ -10,6 +10,7 @@ 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; /*************************************************************************** @@ -82,7 +83,7 @@ public class CompiledJavaPluginLaunchStrategy implements PluginLaunchStrategy { String name = entry.getName(); if (name.endsWith(".class")) { byte[] bytes = MiscUtils.getBytes(jis); - if (MiscUtils.getFileHeaderMagicNumber(bytes).equalsIgnoreCase("cafebabe")) { + if (FileHeaderUtils.doesFileHeaderMatch(bytes, FileHeaderUtils.JAVA_CLASS_FILE_HEADER)) { try { ClassReader cr = new ClassReader(bytes); ClassNode cn = new ClassNode(); 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 f9f0fe60..b873250a 100644 --- a/src/main/java/the/bytecode/club/bytecodeviewer/resources/ResourceContainerImporter.java +++ b/src/main/java/the/bytecode/club/bytecodeviewer/resources/ResourceContainerImporter.java @@ -11,6 +11,7 @@ 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; /*************************************************************************** @@ -109,7 +110,7 @@ public class ResourceContainerImporter public ResourceContainerImporter addClassResource(String name, InputStream stream) throws IOException { byte[] bytes = MiscUtils.getBytes(stream); - if (MiscUtils.getFileHeaderMagicNumber(bytes).equalsIgnoreCase("cafebabe")) + if (FileHeaderUtils.doesFileHeaderMatch(bytes, FileHeaderUtils.JAVA_CLASS_FILE_HEADER)) { try { 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 15f2306a..e3e53fe2 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 @@ -7,6 +7,7 @@ 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; @@ -42,7 +43,7 @@ public class ClassResourceImporter implements Importer byte[] bytes = MiscUtils.getBytes(fis); ResourceContainer container = new ResourceContainer(file); - if (MiscUtils.getFileHeaderMagicNumber(bytes).equalsIgnoreCase("cafebabe")) + if (FileHeaderUtils.doesFileHeaderMatch(bytes, FileHeaderUtils.JAVA_CLASS_FILE_HEADER)) { final ClassNode cn = JarUtils.getNode(bytes); 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 3c2f1a90..3a83ed4a 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 @@ -13,6 +13,7 @@ import the.bytecode.club.bytecodeviewer.BytecodeViewer; import the.bytecode.club.bytecodeviewer.resources.ResourceContainer; import the.bytecode.club.bytecodeviewer.resources.importing.ImportResource; 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; @@ -80,7 +81,7 @@ public class DirectoryResourceImporter implements Importer if (fileName.endsWith(".class")) { byte[] bytes = Files.readAllBytes(Paths.get(child.getAbsolutePath())); - if (MiscUtils.getFileHeaderMagicNumber(bytes).equalsIgnoreCase("cafebabe")) + if (FileHeaderUtils.doesFileHeaderMatch(bytes, FileHeaderUtils.JAVA_CLASS_FILE_HEADER)) { final ClassNode cn = JarUtils.getNode(bytes); allDirectoryClasses.put(FilenameUtils.removeExtension(trimmedPath), cn); diff --git a/src/main/java/the/bytecode/club/bytecodeviewer/util/FileHeaderUtils.java b/src/main/java/the/bytecode/club/bytecodeviewer/util/FileHeaderUtils.java new file mode 100644 index 00000000..cc305ec9 --- /dev/null +++ b/src/main/java/the/bytecode/club/bytecodeviewer/util/FileHeaderUtils.java @@ -0,0 +1,31 @@ +package the.bytecode.club.bytecodeviewer.util; + +import org.apache.commons.lang3.StringUtils; + +/** + * @author Konloch + * @since 8/21/2024 + */ +public class FileHeaderUtils +{ + public static final int JAVA_CLASS_FILE_HEADER = 0xCAFEBABE; + + public static boolean doesFileHeaderMatch(byte[] bytes, int fileHeader) + { + int bytesHeader = ((bytes[0] & 0xFF) << 24) | + ((bytes[1] & 0xFF) << 16) | + ((bytes[2] & 0xFF) << 8) | + ((bytes[3] & 0xFF)); + + return bytesHeader == fileHeader; + } + + public static String getFileHeaderAsString(byte[] bytes) + { + if(bytes == null || bytes.length < 4) + return StringUtils.EMPTY; + + return String.format("%02X%02X%02X%02X", + bytes[0], bytes[1], bytes[2],bytes[3]); + } +} 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 ee2895ef..2ba21133 100644 --- a/src/main/java/the/bytecode/club/bytecodeviewer/util/JarUtils.java +++ b/src/main/java/the/bytecode/club/bytecodeviewer/util/JarUtils.java @@ -83,7 +83,7 @@ public class JarUtils if (!entry.isDirectory()) files.put(name, bytes); } else { - if (MiscUtils.getFileHeaderMagicNumber(bytes).equalsIgnoreCase("cafebabe")) { + if (FileHeaderUtils.doesFileHeaderMatch(bytes, FileHeaderUtils.JAVA_CLASS_FILE_HEADER)) { try { final ClassNode cn = getNode(bytes); container.resourceClasses.put(FilenameUtils.removeExtension(name), cn); @@ -138,7 +138,7 @@ public class JarUtils if (!name.endsWith(".class")) { files.put(name, bytes); } else { - if (MiscUtils.getFileHeaderMagicNumber(bytes).equalsIgnoreCase("cafebabe")) + if (FileHeaderUtils.doesFileHeaderMatch(bytes, FileHeaderUtils.JAVA_CLASS_FILE_HEADER)) { try { final ClassNode cn = getNode(bytes); @@ -171,7 +171,7 @@ public class JarUtils final String name = entry.getName(); if (name.endsWith(".class")) { byte[] bytes = MiscUtils.getBytes(jis); - if (MiscUtils.getFileHeaderMagicNumber(bytes).equalsIgnoreCase("cafebabe")) { + if (FileHeaderUtils.doesFileHeaderMatch(bytes, FileHeaderUtils.JAVA_CLASS_FILE_HEADER)) { try { final ClassNode cn = getNode(bytes); classes.add(cn); 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 6be19c50..c5c4b46a 100644 --- a/src/main/java/the/bytecode/club/bytecodeviewer/util/MiscUtils.java +++ b/src/main/java/the/bytecode/club/bytecodeviewer/util/MiscUtils.java @@ -166,15 +166,6 @@ public class MiscUtils } return i; } - - public static String getFileHeaderMagicNumber(byte[] fileContents) - { - if(fileContents == null || fileContents.length < 4) - return StringUtils.EMPTY; - - return String.format("%02X%02X%02X%02X", fileContents[0], - fileContents[1], fileContents[2],fileContents[3]); - } public static File autoAppendFileExtension(String extension, File file) { From d3c11307a16c050e04e1228b02fabbd0ff2bbaf3 Mon Sep 17 00:00:00 2001 From: Konloch Date: Wed, 21 Aug 2024 09:52:37 -0600 Subject: [PATCH 05/26] General Refactoring --- .../bytecode/club/bytecodeviewer/api/BCV.java | 22 +++++++++---------- 1 file changed, 11 insertions(+), 11 deletions(-) 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 aadc3c16..d7b91d66 100644 --- a/src/main/java/the/bytecode/club/bytecodeviewer/api/BCV.java +++ b/src/main/java/the/bytecode/club/bytecodeviewer/api/BCV.java @@ -96,7 +96,7 @@ public class BCV return cl.loadClass(cn.name); } catch (Exception classLoadException) { - the.bytecode.club.bytecodeviewer.BytecodeViewer.handleException(classLoadException); + BytecodeViewer.handleException(classLoadException); } return null; @@ -134,14 +134,14 @@ public class BCV try { ret.add(cl.loadClass(className)); } catch (Exception classLoadException) { - the.bytecode.club.bytecodeviewer.BytecodeViewer.handleException(classLoadException); + BytecodeViewer.handleException(classLoadException); } } } return ret; } catch (Exception e) { - the.bytecode.club.bytecodeviewer.BytecodeViewer.handleException(e); + BytecodeViewer.handleException(e); } return null; } @@ -160,7 +160,7 @@ public class BCV * @param plugin the file of the plugin */ public static void startPlugin(File plugin) { - the.bytecode.club.bytecodeviewer.BytecodeViewer.startPlugin(plugin); + BytecodeViewer.startPlugin(plugin); } /** @@ -170,7 +170,7 @@ public class BCV * @param recentFiles if it should save to the recent files menu. */ public static void openFiles(File[] files, boolean recentFiles) { - the.bytecode.club.bytecodeviewer.BytecodeViewer.openFiles(files, recentFiles); + BytecodeViewer.openFiles(files, recentFiles); } /** @@ -179,7 +179,7 @@ public class BCV * @return The opened class node or a null if nothing is opened */ public static ClassNode getCurrentlyOpenedClassNode() { - return the.bytecode.club.bytecodeviewer.BytecodeViewer.getCurrentlyOpenedClassNode(); + return BytecodeViewer.getCurrentlyOpenedClassNode(); } /** @@ -224,7 +224,7 @@ public class BCV * @return the ClassNode */ public static ClassNode getClassNode(String name) { - return the.bytecode.club.bytecodeviewer.BytecodeViewer + return BytecodeViewer .blindlySearchForClassNode(name); } @@ -234,7 +234,7 @@ public class BCV * @return the loaded classes */ public static List getLoadedClasses() { - return the.bytecode.club.bytecodeviewer.BytecodeViewer + return BytecodeViewer .getLoadedClasses(); } @@ -254,7 +254,7 @@ public class BCV * @param ask if it should ask the user about resetting the workspace */ public static void resetWorkSpace(boolean ask) { - the.bytecode.club.bytecodeviewer.BytecodeViewer.resetWorkspace(ask); + BytecodeViewer.resetWorkspace(ask); } /** @@ -264,7 +264,7 @@ public class BCV * @param busy if it should display the busy icon or not */ public static void setBusy(boolean busy) { - the.bytecode.club.bytecodeviewer.BytecodeViewer.updateBusyStatus(busy); + BytecodeViewer.updateBusyStatus(busy); } /** @@ -273,7 +273,7 @@ public class BCV * @param message the message you want to display */ public static void showMessage(String message) { - the.bytecode.club.bytecodeviewer.BytecodeViewer.showMessage(message); + BytecodeViewer.showMessage(message); } /** From 22de1b06b793bedb28a9415b77c7bdbd9352f1a2 Mon Sep 17 00:00:00 2001 From: Konloch Date: Wed, 21 Aug 2024 09:59:25 -0600 Subject: [PATCH 06/26] Copyright Header Update --- .../club/bytecodeviewer/BytecodeViewer.java | 2 +- .../club/bytecodeviewer/CommandLineInput.java | 2 +- .../club/bytecodeviewer/Configuration.java | 2 +- .../club/bytecodeviewer/Constants.java | 2 +- .../club/bytecodeviewer/GlobalHotKeys.java | 2 +- .../bytecode/club/bytecodeviewer/Settings.java | 2 +- .../bytecodeviewer/SettingsSerializer.java | 2 +- .../bytecodeviewer/api/ASMResourceUtil.java | 2 +- .../club/bytecodeviewer/api/ASMUtil.java | 2 +- .../bytecode/club/bytecodeviewer/api/BCV.java | 8 +++----- .../club/bytecodeviewer/api/BytecodeHook.java | 2 +- .../bytecodeviewer/api/ClassNodeLoader.java | 2 +- .../club/bytecodeviewer/api/ExceptionUI.java | 2 +- .../club/bytecodeviewer/api/Plugin.java | 2 +- .../club/bytecodeviewer/api/PluginConsole.java | 2 +- .../club/bytecodeviewer/bootloader/Boot.java | 2 +- .../bytecodeviewer/bootloader/BootState.java | 2 +- .../bootloader/InitialBootScreen.java | 2 +- .../bootloader/InstallFatJar.java | 2 +- .../bytecodeviewer/bootloader/UpdateCheck.java | 2 +- .../bootloader/classtree/ClassHelper.java | 2 +- .../bootloader/classtree/ClassTree.java | 2 +- .../nullpermablehashmap/NullCreator.java | 2 +- .../NullPermeableHashMap.java | 2 +- .../nullpermablehashmap/SetCreator.java | 2 +- .../nullpermablehashmap/ValueCreator.java | 2 +- .../loader/AbstractLoaderFactory.java | 2 +- .../bootloader/loader/ClassPathLoader.java | 2 +- .../bootloader/loader/ILoader.java | 2 +- .../bootloader/loader/LibraryClassLoader.java | 2 +- .../bootloader/loader/LoaderFactory.java | 2 +- .../bootloader/resource/DataContainer.java | 2 +- .../external/EmptyExternalResource.java | 2 +- .../resource/external/ExternalLibrary.java | 2 +- .../resource/external/ExternalResource.java | 2 +- .../bootloader/resource/jar/JarInfo.java | 2 +- .../bootloader/resource/jar/JarResource.java | 2 +- .../bootloader/resource/jar/JarType.java | 2 +- .../resource/jar/contents/JarContents.java | 2 +- .../jar/contents/LocateableJarContents.java | 2 +- .../bytecodeviewer/compilers/Compiler.java | 2 +- .../compilers/InternalCompiler.java | 2 +- .../compilers/impl/JavaCompiler.java | 2 +- .../compilers/impl/KrakatauAssembler.java | 2 +- .../compilers/impl/SmaliAssembler.java | 2 +- .../bytecodeviewer/decompilers/Decompiler.java | 2 +- .../decompilers/InternalDecompiler.java | 2 +- .../bytecode/ClassNodeDecompiler.java | 2 +- .../bytecode/FieldNodeDecompiler.java | 2 +- .../bytecode/InstructionPattern.java | 2 +- .../bytecode/InstructionPrinter.java | 2 +- .../bytecode/InstructionSearcher.java | 2 +- .../bytecode/MethodNodeDecompiler.java | 2 +- .../bytecode/PrefixedStringBuilder.java | 2 +- .../decompilers/bytecode/TypeAndName.java | 2 +- .../impl/ASMTextifierDisassembler.java | 2 +- .../decompilers/impl/ASMifierGenerator.java | 2 +- .../decompilers/impl/BytecodeDisassembler.java | 2 +- .../decompilers/impl/CFRDecompiler.java | 2 +- .../decompilers/impl/FernFlowerDecompiler.java | 2 +- .../decompilers/impl/JADXDecompiler.java | 2 +- .../decompilers/impl/JDGUIDecompiler.java | 2 +- .../decompilers/impl/JavapDisassembler.java | 2 +- .../decompilers/impl/KrakatauDecompiler.java | 2 +- .../decompilers/impl/KrakatauDisassembler.java | 2 +- .../decompilers/impl/ProcyonDecompiler.java | 2 +- .../decompilers/impl/SmaliDisassembler.java | 2 +- .../club/bytecodeviewer/gui/MainViewerGUI.java | 2 +- .../gui/components/AboutWindow.java | 2 +- .../gui/components/ButtonHoverAnimation.java | 2 +- .../components/DecompilerViewComponent.java | 2 +- .../gui/components/ExportJar.java | 2 +- .../gui/components/ExtendedJOptionPane.java | 2 +- .../gui/components/FileChooser.java | 2 +- .../gui/components/HTMLPane.java | 2 +- .../gui/components/ImageJLabel.java | 2 +- .../gui/components/JFrameConsole.java | 2 +- .../components/JFrameConsolePrintStream.java | 2 +- .../gui/components/JFrameConsoleTabbed.java | 2 +- .../gui/components/JMenuItemIcon.java | 2 +- .../gui/components/JTextAreaOutputStream.java | 2 +- .../gui/components/MaxWidthJLabel.java | 2 +- .../gui/components/MethodsRenderer.java | 2 +- .../gui/components/MultipleChoiceDialog.java | 2 +- .../gui/components/RunOptions.java | 2 +- .../gui/components/SearchableJTextArea.java | 2 +- .../components/SearchableRSyntaxTextArea.java | 2 +- .../gui/components/SettingsDialog.java | 2 +- .../gui/components/SystemConsole.java | 2 +- .../gui/components/VisibleComponent.java | 2 +- .../gui/components/WaitBusyIcon.java | 2 +- .../listeners/MouseClickedListener.java | 2 +- .../components/listeners/PressKeyListener.java | 2 +- .../listeners/ReleaseKeyListener.java | 2 +- .../gui/contextmenu/BuildContextMenuItem.java | 2 +- .../gui/contextmenu/ContextMenu.java | 2 +- .../gui/contextmenu/ContextMenuItem.java | 2 +- .../gui/contextmenu/ContextMenuType.java | 2 +- .../gui/contextmenu/resourcelist/Collapse.java | 2 +- .../gui/contextmenu/resourcelist/Delete.java | 2 +- .../gui/contextmenu/resourcelist/Expand.java | 2 +- .../gui/contextmenu/resourcelist/New.java | 2 +- .../gui/contextmenu/resourcelist/Open.java | 2 +- .../contextmenu/resourcelist/QuickEdit.java | 2 +- .../contextmenu/resourcelist/QuickOpen.java | 2 +- .../gui/contextmenu/searchbox/Open.java | 2 +- .../gui/contextmenu/searchbox/QuickEdit.java | 2 +- .../gui/contextmenu/searchbox/QuickOpen.java | 2 +- .../gui/plugins/GraphicalReflectionKit.java | 2 +- .../plugins/MaliciousCodeScannerOptions.java | 2 +- .../gui/plugins/ReplaceStringsOptions.java | 2 +- .../gui/resourcelist/ResourceListPane.java | 2 +- .../gui/resourcelist/ResourceTree.java | 2 +- .../gui/resourcelist/ResourceTreeNode.java | 2 +- .../gui/resourcelist/SearchKeyAdapter.java | 2 +- .../gui/resourcesearch/PerformSearch.java | 2 +- .../gui/resourcesearch/SearchBoxPane.java | 2 +- .../gui/resourcesearch/SearchRadius.java | 2 +- .../gui/resourcesearch/SearchType.java | 2 +- .../gui/resourceviewer/BytecodeViewPanel.java | 2 +- .../DecompilerSelectionPane.java | 2 +- .../gui/resourceviewer/TabExitButton.java | 2 +- .../gui/resourceviewer/TabRemovalEvent.java | 2 +- .../gui/resourceviewer/TabbedPane.java | 2 +- .../gui/resourceviewer/Workspace.java | 2 +- .../gui/resourceviewer/WorkspaceRefresh.java | 2 +- .../resourceviewer/WorkspaceRefreshEvent.java | 2 +- .../gui/resourceviewer/viewer/ClassViewer.java | 2 +- .../resourceviewer/viewer/ComponentViewer.java | 2 +- .../gui/resourceviewer/viewer/FileViewer.java | 2 +- .../resourceviewer/viewer/ResourceViewer.java | 2 +- .../viewer/synchronizedscroll/MethodData.java | 2 +- .../bytecodeviewer/gui/theme/LAFTheme.java | 2 +- .../bytecodeviewer/gui/theme/RSTATheme.java | 2 +- .../gui/util/BytecodeViewPanelUpdater.java | 2 +- .../malwarescanner/CodeScanner.java | 2 +- .../malwarescanner/MalwareCodeScanner.java | 2 +- .../malwarescanner/MalwareScan.java | 2 +- .../malwarescanner/MalwareScanModule.java | 2 +- .../malwarescanner/impl/AWTRobotScanner.java | 2 +- .../malwarescanner/impl/JavaIOScanner.java | 2 +- .../malwarescanner/impl/JavaNetScanner.java | 2 +- .../impl/JavaRuntimeScanner.java | 2 +- .../impl/NullSecurityManagerScanner.java | 2 +- .../malwarescanner/impl/ReflectionScanner.java | 2 +- .../malwarescanner/impl/URLScanner.java | 2 +- .../util/MaliciousCodeOptions.java | 2 +- .../malwarescanner/util/SearchableString.java | 2 +- .../obfuscators/JavaObfuscator.java | 2 +- .../obfuscators/RenameClasses.java | 2 +- .../obfuscators/RenameFields.java | 2 +- .../obfuscators/RenameMethods.java | 2 +- .../obfuscators/mapping/HookMap.java | 2 +- .../obfuscators/mapping/RefactorMapper.java | 2 +- .../obfuscators/mapping/Refactorer.java | 2 +- .../mapping/data/FieldMappingData.java | 2 +- .../obfuscators/mapping/data/MappingData.java | 2 +- .../mapping/data/MethodMappingData.java | 2 +- .../obfuscators/rename/RenameClasses.java | 2 +- .../obfuscators/rename/RenameFields.java | 2 +- .../obfuscators/rename/RenameMethods.java | 2 +- .../plugin/PluginLaunchStrategy.java | 2 +- .../bytecodeviewer/plugin/PluginManager.java | 2 +- .../bytecodeviewer/plugin/PluginTemplate.java | 2 +- .../bytecodeviewer/plugin/PluginWriter.java | 2 +- .../preinstalled/AllatoriStringDecrypter.java | 2 +- .../preinstalled/CodeSequenceDiagram.java | 2 +- .../plugin/preinstalled/EZInjection.java | 2 +- .../preinstalled/MaliciousCodeScanner.java | 2 +- .../plugin/preinstalled/ReplaceStrings.java | 2 +- .../plugin/preinstalled/ShowAllStrings.java | 2 +- .../plugin/preinstalled/ShowMainMethods.java | 2 +- .../preinstalled/ZKMStringDecrypter.java | 2 +- .../preinstalled/ZStringArrayDecrypter.java | 2 +- .../CompiledJavaPluginLaunchStrategy.java | 2 +- .../strategies/GroovyPluginLaunchStrategy.java | 2 +- .../strategies/JavaPluginLaunchStrategy.java | 2 +- .../JavascriptPluginLaunchStrategy.java | 2 +- .../strategies/PythonPluginLaunchStrategy.java | 2 +- .../strategies/RubyPluginLaunchStrategy.java | 2 +- .../resources/ExternalResources.java | 2 +- .../resources/IconResources.java | 2 +- .../bytecodeviewer/resources/Resource.java | 2 +- .../resources/ResourceContainer.java | 2 +- .../resources/ResourceContainerImporter.java | 2 +- .../resources/ResourceDecompiling.java | 2 +- .../bytecodeviewer/resources/ResourceType.java | 2 +- .../resources/exporting/Export.java | 2 +- .../resources/exporting/Exporter.java | 2 +- .../resources/exporting/impl/APKExport.java | 2 +- .../resources/exporting/impl/DexExport.java | 2 +- .../exporting/impl/RunnableJarExporter.java | 2 +- .../resources/exporting/impl/ZipExport.java | 2 +- .../resources/importing/Import.java | 2 +- .../resources/importing/ImportResource.java | 2 +- .../resources/importing/Importer.java | 2 +- .../importing/impl/APKResourceImporter.java | 2 +- .../importing/impl/ClassResourceImporter.java | 2 +- .../importing/impl/DEXResourceImporter.java | 2 +- .../impl/DirectoryResourceImporter.java | 2 +- .../importing/impl/FileResourceImporter.java | 2 +- .../importing/impl/XAPKResourceImporter.java | 2 +- .../importing/impl/ZipResourceImporter.java | 2 +- .../searching/BackgroundSearchThread.java | 2 +- .../searching/EnterKeyEvent.java | 2 +- .../searching/LDCSearchTreeNodeResult.java | 2 +- .../searching/RegexInsnFinder.java | 2 +- .../bytecodeviewer/searching/SearchPanel.java | 2 +- .../searching/impl/FieldCallSearch.java | 2 +- .../searching/impl/LDCSearch.java | 2 +- .../impl/MemberWithAnnotationSearch.java | 2 +- .../searching/impl/MethodCallSearch.java | 2 +- .../searching/impl/RegexSearch.java | 2 +- .../bytecodeviewer/translation/Language.java | 2 +- .../TranslatedComponentReference.java | 2 +- .../translation/TranslatedComponents.java | 2 +- .../translation/TranslatedStrings.java | 2 +- .../TranslatedDefaultMutableTreeNode.java | 2 +- .../components/TranslatedJButton.java | 2 +- .../components/TranslatedJCheckBox.java | 2 +- .../TranslatedJCheckBoxMenuItem.java | 2 +- .../components/TranslatedJLabel.java | 2 +- .../components/TranslatedJMenu.java | 2 +- .../components/TranslatedJMenuItem.java | 2 +- .../TranslatedJRadioButtonMenuItem.java | 2 +- .../components/TranslatedJTextField.java | 2 +- .../components/TranslatedVisibleComponent.java | 2 +- .../club/bytecodeviewer/util/APKTool.java | 2 +- .../club/bytecodeviewer/util/BootCheck.java | 2 +- .../bytecodeviewer/util/ClassFileUtils.java | 2 +- .../club/bytecodeviewer/util/Dex2Jar.java | 2 +- .../club/bytecodeviewer/util/DialogUtils.java | 2 +- .../club/bytecodeviewer/util/EncodeUtils.java | 2 +- .../club/bytecodeviewer/util/Enjarify.java | 2 +- .../club/bytecodeviewer/util/FileDrop.java | 2 +- .../bytecodeviewer/util/FileHeaderUtils.java | 18 ++++++++++++++++++ .../bytecodeviewer/util/JTextAreaUtils.java | 2 +- .../club/bytecodeviewer/util/JarUtils.java | 2 +- .../bytecodeviewer/util/KeyEventDispatch.java | 2 +- .../club/bytecodeviewer/util/LazyNameUtil.java | 2 +- .../club/bytecodeviewer/util/MethodParser.java | 2 +- .../club/bytecodeviewer/util/MiscUtils.java | 2 +- .../util/NewlineOutputStream.java | 2 +- .../club/bytecodeviewer/util/PingBack.java | 2 +- .../club/bytecodeviewer/util/SecurityMan.java | 2 +- .../club/bytecodeviewer/util/SeqAndCount.java | 2 +- .../bytecodeviewer/util/SyntaxLanguage.java | 2 +- .../util/WindowClosingAdapter.java | 2 +- .../util/WindowStateChangeAdapter.java | 2 +- .../club/bytecodeviewer/util/ZipUtils.java | 2 +- 250 files changed, 269 insertions(+), 253 deletions(-) diff --git a/src/main/java/the/bytecode/club/bytecodeviewer/BytecodeViewer.java b/src/main/java/the/bytecode/club/bytecodeviewer/BytecodeViewer.java index 717b165a..11cdeb91 100644 --- a/src/main/java/the/bytecode/club/bytecodeviewer/BytecodeViewer.java +++ b/src/main/java/the/bytecode/club/bytecodeviewer/BytecodeViewer.java @@ -48,7 +48,7 @@ import static the.bytecode.club.bytecodeviewer.Constants.tempDirectory; /*************************************************************************** * Bytecode Viewer (BCV) - Java & Android Reverse Engineering Suite * - * Copyright (C) 2014 Kalen 'Konloch' Kinloch - http://bytecodeviewer.com * + * 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 * diff --git a/src/main/java/the/bytecode/club/bytecodeviewer/CommandLineInput.java b/src/main/java/the/bytecode/club/bytecodeviewer/CommandLineInput.java index 87e52207..55ebed65 100644 --- a/src/main/java/the/bytecode/club/bytecodeviewer/CommandLineInput.java +++ b/src/main/java/the/bytecode/club/bytecodeviewer/CommandLineInput.java @@ -19,7 +19,7 @@ import static the.bytecode.club.bytecodeviewer.Constants.tempDirectory; /*************************************************************************** * Bytecode Viewer (BCV) - Java & Android Reverse Engineering Suite * - * Copyright (C) 2014 Kalen 'Konloch' Kinloch - http://bytecodeviewer.com * + * 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 * diff --git a/src/main/java/the/bytecode/club/bytecodeviewer/Configuration.java b/src/main/java/the/bytecode/club/bytecodeviewer/Configuration.java index 99bda0ab..26f5e131 100644 --- a/src/main/java/the/bytecode/club/bytecodeviewer/Configuration.java +++ b/src/main/java/the/bytecode/club/bytecodeviewer/Configuration.java @@ -11,7 +11,7 @@ import the.bytecode.club.bytecodeviewer.translation.Language; /*************************************************************************** * Bytecode Viewer (BCV) - Java & Android Reverse Engineering Suite * - * Copyright (C) 2014 Kalen 'Konloch' Kinloch - http://bytecodeviewer.com * + * 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 * diff --git a/src/main/java/the/bytecode/club/bytecodeviewer/Constants.java b/src/main/java/the/bytecode/club/bytecodeviewer/Constants.java index 5a788810..5ea67011 100644 --- a/src/main/java/the/bytecode/club/bytecodeviewer/Constants.java +++ b/src/main/java/the/bytecode/club/bytecodeviewer/Constants.java @@ -8,7 +8,7 @@ import the.bytecode.club.bytecodeviewer.resources.ResourceType; /*************************************************************************** * Bytecode Viewer (BCV) - Java & Android Reverse Engineering Suite * - * Copyright (C) 2014 Kalen 'Konloch' Kinloch - http://bytecodeviewer.com * + * 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 * diff --git a/src/main/java/the/bytecode/club/bytecodeviewer/GlobalHotKeys.java b/src/main/java/the/bytecode/club/bytecodeviewer/GlobalHotKeys.java index 5358bc97..ec70ae3a 100644 --- a/src/main/java/the/bytecode/club/bytecodeviewer/GlobalHotKeys.java +++ b/src/main/java/the/bytecode/club/bytecodeviewer/GlobalHotKeys.java @@ -11,7 +11,7 @@ import the.bytecode.club.bytecodeviewer.util.MiscUtils; /*************************************************************************** * Bytecode Viewer (BCV) - Java & Android Reverse Engineering Suite * - * Copyright (C) 2014 Kalen 'Konloch' Kinloch - http://bytecodeviewer.com * + * 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 * diff --git a/src/main/java/the/bytecode/club/bytecodeviewer/Settings.java b/src/main/java/the/bytecode/club/bytecodeviewer/Settings.java index 35f73cd0..29d31488 100644 --- a/src/main/java/the/bytecode/club/bytecodeviewer/Settings.java +++ b/src/main/java/the/bytecode/club/bytecodeviewer/Settings.java @@ -18,7 +18,7 @@ import static the.bytecode.club.bytecodeviewer.Constants.pluginsName; /*************************************************************************** * Bytecode Viewer (BCV) - Java & Android Reverse Engineering Suite * - * Copyright (C) 2014 Kalen 'Konloch' Kinloch - http://bytecodeviewer.com * + * 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 * diff --git a/src/main/java/the/bytecode/club/bytecodeviewer/SettingsSerializer.java b/src/main/java/the/bytecode/club/bytecodeviewer/SettingsSerializer.java index 3d9d57e7..2caee043 100644 --- a/src/main/java/the/bytecode/club/bytecodeviewer/SettingsSerializer.java +++ b/src/main/java/the/bytecode/club/bytecodeviewer/SettingsSerializer.java @@ -14,7 +14,7 @@ import static the.bytecode.club.bytecodeviewer.Constants.settingsName; /*************************************************************************** * Bytecode Viewer (BCV) - Java & Android Reverse Engineering Suite * - * Copyright (C) 2014 Kalen 'Konloch' Kinloch - http://bytecodeviewer.com * + * 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 * 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 4c23acc1..ed492e13 100644 --- a/src/main/java/the/bytecode/club/bytecodeviewer/api/ASMResourceUtil.java +++ b/src/main/java/the/bytecode/club/bytecodeviewer/api/ASMResourceUtil.java @@ -13,7 +13,7 @@ import the.bytecode.club.bytecodeviewer.BytecodeViewer; /*************************************************************************** * Bytecode Viewer (BCV) - Java & Android Reverse Engineering Suite * - * Copyright (C) 2014 Kalen 'Konloch' Kinloch - http://bytecodeviewer.com * + * 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 * 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 d4facff1..e1373be1 100644 --- a/src/main/java/the/bytecode/club/bytecodeviewer/api/ASMUtil.java +++ b/src/main/java/the/bytecode/club/bytecodeviewer/api/ASMUtil.java @@ -7,7 +7,7 @@ import org.objectweb.asm.tree.MethodNode; /*************************************************************************** * Bytecode Viewer (BCV) - Java & Android Reverse Engineering Suite * - * Copyright (C) 2014 Kalen 'Konloch' Kinloch - http://bytecodeviewer.com * + * 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 * 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 d7b91d66..0e48c6ac 100644 --- a/src/main/java/the/bytecode/club/bytecodeviewer/api/BCV.java +++ b/src/main/java/the/bytecode/club/bytecodeviewer/api/BCV.java @@ -30,7 +30,7 @@ import static the.bytecode.club.bytecodeviewer.Constants.tempDirectory; /*************************************************************************** * Bytecode Viewer (BCV) - Java & Android Reverse Engineering Suite * - * Copyright (C) 2014 Kalen 'Konloch' Kinloch - http://bytecodeviewer.com * + * 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 * @@ -224,8 +224,7 @@ public class BCV * @return the ClassNode */ public static ClassNode getClassNode(String name) { - return BytecodeViewer - .blindlySearchForClassNode(name); + return BytecodeViewer.blindlySearchForClassNode(name); } /** @@ -234,8 +233,7 @@ public class BCV * @return the loaded classes */ public static List getLoadedClasses() { - return BytecodeViewer - .getLoadedClasses(); + return BytecodeViewer.getLoadedClasses(); } /** 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 0585d05b..bb8dbab1 100644 --- a/src/main/java/the/bytecode/club/bytecodeviewer/api/BytecodeHook.java +++ b/src/main/java/the/bytecode/club/bytecodeviewer/api/BytecodeHook.java @@ -2,7 +2,7 @@ package the.bytecode.club.bytecodeviewer.api; /*************************************************************************** * Bytecode Viewer (BCV) - Java & Android Reverse Engineering Suite * - * Copyright (C) 2014 Kalen 'Konloch' Kinloch - http://bytecodeviewer.com * + * 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 * 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 8492a8ea..897eec9b 100644 --- a/src/main/java/the/bytecode/club/bytecodeviewer/api/ClassNodeLoader.java +++ b/src/main/java/the/bytecode/club/bytecodeviewer/api/ClassNodeLoader.java @@ -15,7 +15,7 @@ import org.objectweb.asm.tree.ClassNode; /*************************************************************************** * Bytecode Viewer (BCV) - Java & Android Reverse Engineering Suite * - * Copyright (C) 2014 Kalen 'Konloch' Kinloch - http://bytecodeviewer.com * + * 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 * 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 c381b48c..b0f8660b 100644 --- a/src/main/java/the/bytecode/club/bytecodeviewer/api/ExceptionUI.java +++ b/src/main/java/the/bytecode/club/bytecodeviewer/api/ExceptionUI.java @@ -18,7 +18,7 @@ import static the.bytecode.club.bytecodeviewer.Constants.nl; /*************************************************************************** * Bytecode Viewer (BCV) - Java & Android Reverse Engineering Suite * - * Copyright (C) 2014 Kalen 'Konloch' Kinloch - http://bytecodeviewer.com * + * 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 * 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 fb7d3610..2e59b0bd 100644 --- a/src/main/java/the/bytecode/club/bytecodeviewer/api/Plugin.java +++ b/src/main/java/the/bytecode/club/bytecodeviewer/api/Plugin.java @@ -8,7 +8,7 @@ import the.bytecode.club.bytecodeviewer.resources.ResourceContainer; /*************************************************************************** * Bytecode Viewer (BCV) - Java & Android Reverse Engineering Suite * - * Copyright (C) 2014 Kalen 'Konloch' Kinloch - http://bytecodeviewer.com * + * 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 * 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 c0200a26..176d10fe 100644 --- a/src/main/java/the/bytecode/club/bytecodeviewer/api/PluginConsole.java +++ b/src/main/java/the/bytecode/club/bytecodeviewer/api/PluginConsole.java @@ -7,7 +7,7 @@ import the.bytecode.club.bytecodeviewer.translation.TranslatedStrings; /*************************************************************************** * Bytecode Viewer (BCV) - Java & Android Reverse Engineering Suite * - * Copyright (C) 2014 Kalen 'Konloch' Kinloch - http://bytecodeviewer.com * + * 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 * 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 5ea76081..00a8e425 100644 --- a/src/main/java/the/bytecode/club/bytecodeviewer/bootloader/Boot.java +++ b/src/main/java/the/bytecode/club/bytecodeviewer/bootloader/Boot.java @@ -30,7 +30,7 @@ import static the.bytecode.club.bytecodeviewer.Constants.nl; /*************************************************************************** * Bytecode Viewer (BCV) - Java & Android Reverse Engineering Suite * - * Copyright (C) 2014 Kalen 'Konloch' Kinloch - http://bytecodeviewer.com * + * 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 * 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 9fc05162..38e953ea 100644 --- a/src/main/java/the/bytecode/club/bytecodeviewer/bootloader/BootState.java +++ b/src/main/java/the/bytecode/club/bytecodeviewer/bootloader/BootState.java @@ -2,7 +2,7 @@ package the.bytecode.club.bytecodeviewer.bootloader; /*************************************************************************** * Bytecode Viewer (BCV) - Java & Android Reverse Engineering Suite * - * Copyright (C) 2014 Kalen 'Konloch' Kinloch - http://bytecodeviewer.com * + * 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 * 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 4e7e32d0..941576c4 100644 --- a/src/main/java/the/bytecode/club/bytecodeviewer/bootloader/InitialBootScreen.java +++ b/src/main/java/the/bytecode/club/bytecodeviewer/bootloader/InitialBootScreen.java @@ -19,7 +19,7 @@ import static the.bytecode.club.bytecodeviewer.Configuration.language; /*************************************************************************** * Bytecode Viewer (BCV) - Java & Android Reverse Engineering Suite * - * Copyright (C) 2014 Kalen 'Konloch' Kinloch - http://bytecodeviewer.com * + * 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 * 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 a133773f..68879dd7 100644 --- a/src/main/java/the/bytecode/club/bytecodeviewer/bootloader/InstallFatJar.java +++ b/src/main/java/the/bytecode/club/bytecodeviewer/bootloader/InstallFatJar.java @@ -4,7 +4,7 @@ import static the.bytecode.club.bytecodeviewer.Constants.AUTOMATIC_LIBRARY_UPDAT /*************************************************************************** * Bytecode Viewer (BCV) - Java & Android Reverse Engineering Suite * - * Copyright (C) 2014 Kalen 'Konloch' Kinloch - http://bytecodeviewer.com * + * 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 * 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 62f8f0ec..93684c75 100644 --- a/src/main/java/the/bytecode/club/bytecodeviewer/bootloader/UpdateCheck.java +++ b/src/main/java/the/bytecode/club/bytecodeviewer/bootloader/UpdateCheck.java @@ -23,7 +23,7 @@ import static the.bytecode.club.bytecodeviewer.Constants.nl; /*************************************************************************** * Bytecode Viewer (BCV) - Java & Android Reverse Engineering Suite * - * Copyright (C) 2014 Kalen 'Konloch' Kinloch - http://bytecodeviewer.com * + * 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 * 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 cabc70d0..4a2a07ab 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 @@ -7,7 +7,7 @@ import org.objectweb.asm.tree.ClassNode; /*************************************************************************** * Bytecode Viewer (BCV) - Java & Android Reverse Engineering Suite * - * Copyright (C) 2014 Kalen 'Konloch' Kinloch - http://bytecodeviewer.com * + * 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 * 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 8a01f152..58fa41be 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 @@ -16,7 +16,7 @@ import static the.bytecode.club.bytecodeviewer.bootloader.classtree.ClassHelper. /*************************************************************************** * Bytecode Viewer (BCV) - Java & Android Reverse Engineering Suite * - * Copyright (C) 2014 Kalen 'Konloch' Kinloch - http://bytecodeviewer.com * + * 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 * 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 b0082bf4..c34cb94a 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 @@ -2,7 +2,7 @@ package the.bytecode.club.bytecodeviewer.bootloader.classtree.nullpermablehashma /*************************************************************************** * Bytecode Viewer (BCV) - Java & Android Reverse Engineering Suite * - * Copyright (C) 2014 Kalen 'Konloch' Kinloch - http://bytecodeviewer.com * + * 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 * 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 7b9f7315..3bb5af40 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 @@ -4,7 +4,7 @@ import java.util.HashMap; /*************************************************************************** * Bytecode Viewer (BCV) - Java & Android Reverse Engineering Suite * - * Copyright (C) 2014 Kalen 'Konloch' Kinloch - http://bytecodeviewer.com * + * 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 * 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 d066c1b9..5869e188 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 @@ -5,7 +5,7 @@ import java.util.Set; /*************************************************************************** * Bytecode Viewer (BCV) - Java & Android Reverse Engineering Suite * - * Copyright (C) 2014 Kalen 'Konloch' Kinloch - http://bytecodeviewer.com * + * 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 * 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 a586876c..1bbf5144 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 @@ -2,7 +2,7 @@ package the.bytecode.club.bytecodeviewer.bootloader.classtree.nullpermablehashma /*************************************************************************** * Bytecode Viewer (BCV) - Java & Android Reverse Engineering Suite * - * Copyright (C) 2014 Kalen 'Konloch' Kinloch - http://bytecodeviewer.com * + * 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 * 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 cc559f2e..909249d0 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 @@ -6,7 +6,7 @@ import the.bytecode.club.bytecodeviewer.bootloader.resource.external.ExternalRes /*************************************************************************** * Bytecode Viewer (BCV) - Java & Android Reverse Engineering Suite * - * Copyright (C) 2014 Kalen 'Konloch' Kinloch - http://bytecodeviewer.com * + * 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 * 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 ea687999..a2563528 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 @@ -8,7 +8,7 @@ import the.bytecode.club.bytecodeviewer.bootloader.resource.external.ExternalRes /*************************************************************************** * Bytecode Viewer (BCV) - Java & Android Reverse Engineering Suite * - * Copyright (C) 2014 Kalen 'Konloch' Kinloch - http://bytecodeviewer.com * + * 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 * 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 9fe8a1f2..1405fb8c 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 @@ -4,7 +4,7 @@ import the.bytecode.club.bytecodeviewer.bootloader.resource.external.ExternalRes /*************************************************************************** * Bytecode Viewer (BCV) - Java & Android Reverse Engineering Suite * - * Copyright (C) 2014 Kalen 'Konloch' Kinloch - http://bytecodeviewer.com * + * 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 * 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 e549771f..5b7af53c 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 @@ -15,7 +15,7 @@ import the.bytecode.club.bytecodeviewer.bootloader.resource.jar.contents.JarCont /*************************************************************************** * Bytecode Viewer (BCV) - Java & Android Reverse Engineering Suite * - * Copyright (C) 2014 Kalen 'Konloch' Kinloch - http://bytecodeviewer.com * + * 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 * 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 b2eadd98..159e4810 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 @@ -2,7 +2,7 @@ package the.bytecode.club.bytecodeviewer.bootloader.loader; /*************************************************************************** * Bytecode Viewer (BCV) - Java & Android Reverse Engineering Suite * - * Copyright (C) 2014 Kalen 'Konloch' Kinloch - http://bytecodeviewer.com * + * 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 * 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 0919a631..9d9947b7 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 @@ -6,7 +6,7 @@ import java.util.Map; /*************************************************************************** * Bytecode Viewer (BCV) - Java & Android Reverse Engineering Suite * - * Copyright (C) 2014 Kalen 'Konloch' Kinloch - http://bytecodeviewer.com * + * 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 * 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 c86836f7..07b54ae4 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 @@ -4,7 +4,7 @@ import java.net.URL; /*************************************************************************** * Bytecode Viewer (BCV) - Java & Android Reverse Engineering Suite * - * Copyright (C) 2014 Kalen 'Konloch' Kinloch - http://bytecodeviewer.com * + * 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 * 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 99c9c493..98db667e 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 @@ -17,7 +17,7 @@ import the.bytecode.club.bytecodeviewer.bootloader.resource.jar.contents.JarCont /*************************************************************************** * Bytecode Viewer (BCV) - Java & Android Reverse Engineering Suite * - * Copyright (C) 2014 Kalen 'Konloch' Kinloch - http://bytecodeviewer.com * + * 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 * 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 3f333cfb..cb95bdcf 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 @@ -5,7 +5,7 @@ import java.net.URL; /*************************************************************************** * Bytecode Viewer (BCV) - Java & Android Reverse Engineering Suite * - * Copyright (C) 2014 Kalen 'Konloch' Kinloch - http://bytecodeviewer.com * + * 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 * 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 05a3423a..515255cf 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 @@ -7,7 +7,7 @@ import java.net.URL; /*************************************************************************** * Bytecode Viewer (BCV) - Java & Android Reverse Engineering Suite * - * Copyright (C) 2014 Kalen 'Konloch' Kinloch - http://bytecodeviewer.com * + * 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 * 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 13aee8b0..96858183 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 @@ -4,7 +4,7 @@ import java.util.Arrays; /*************************************************************************** * Bytecode Viewer (BCV) - Java & Android Reverse Engineering Suite * - * Copyright (C) 2014 Kalen 'Konloch' Kinloch - http://bytecodeviewer.com * + * 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 * 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 5d470a11..1396019e 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 @@ -2,7 +2,7 @@ package the.bytecode.club.bytecodeviewer.bootloader.resource.jar; /*************************************************************************** * Bytecode Viewer (BCV) - Java & Android Reverse Engineering Suite * - * Copyright (C) 2014 Kalen 'Konloch' Kinloch - http://bytecodeviewer.com * + * 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 * 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 4ff808a1..221cc1f2 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 @@ -12,7 +12,7 @@ import the.bytecode.club.bytecodeviewer.bootloader.resource.jar.JarResource; /*************************************************************************** * Bytecode Viewer (BCV) - Java & Android Reverse Engineering Suite * - * Copyright (C) 2014 Kalen 'Konloch' Kinloch - http://bytecodeviewer.com * + * 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 * 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 118828a3..f301166e 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 @@ -7,7 +7,7 @@ import the.bytecode.club.bytecodeviewer.bootloader.resource.jar.JarResource; /*************************************************************************** * Bytecode Viewer (BCV) - Java & Android Reverse Engineering Suite * - * Copyright (C) 2014 Kalen 'Konloch' Kinloch - http://bytecodeviewer.com * + * 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 * 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 e32fae5a..adbf4f04 100644 --- a/src/main/java/the/bytecode/club/bytecodeviewer/compilers/Compiler.java +++ b/src/main/java/the/bytecode/club/bytecodeviewer/compilers/Compiler.java @@ -2,7 +2,7 @@ package the.bytecode.club.bytecodeviewer.compilers; /*************************************************************************** * Bytecode Viewer (BCV) - Java & Android Reverse Engineering Suite * - * Copyright (C) 2014 Kalen 'Konloch' Kinloch - http://bytecodeviewer.com * + * 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 * 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 b41b1295..6a4aaf23 100644 --- a/src/main/java/the/bytecode/club/bytecodeviewer/compilers/InternalCompiler.java +++ b/src/main/java/the/bytecode/club/bytecodeviewer/compilers/InternalCompiler.java @@ -2,7 +2,7 @@ package the.bytecode.club.bytecodeviewer.compilers; /*************************************************************************** * Bytecode Viewer (BCV) - Java & Android Reverse Engineering Suite * - * Copyright (C) 2014 Kalen 'Konloch' Kinloch - http://bytecodeviewer.com * + * 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 * 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 54fcec43..c2aa2598 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 @@ -21,7 +21,7 @@ import static the.bytecode.club.bytecodeviewer.Constants.tempDirectory; /*************************************************************************** * Bytecode Viewer (BCV) - Java & Android Reverse Engineering Suite * - * Copyright (C) 2014 Kalen 'Konloch' Kinloch - http://bytecodeviewer.com * + * 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 * 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 bb1b72e9..bb9b2207 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 @@ -23,7 +23,7 @@ import static the.bytecode.club.bytecodeviewer.Constants.nl; /*************************************************************************** * Bytecode Viewer (BCV) - Java & Android Reverse Engineering Suite * - * Copyright (C) 2014 Kalen 'Konloch' Kinloch - http://bytecodeviewer.com * + * 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 * 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 0946afc6..b6bd9e1e 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 @@ -16,7 +16,7 @@ import static the.bytecode.club.bytecodeviewer.Constants.tempDirectory; /*************************************************************************** * Bytecode Viewer (BCV) - Java & Android Reverse Engineering Suite * - * Copyright (C) 2014 Kalen 'Konloch' Kinloch - http://bytecodeviewer.com * + * 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 * 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 033b11d8..3207415d 100644 --- a/src/main/java/the/bytecode/club/bytecodeviewer/decompilers/Decompiler.java +++ b/src/main/java/the/bytecode/club/bytecodeviewer/decompilers/Decompiler.java @@ -4,7 +4,7 @@ import the.bytecode.club.bytecodeviewer.decompilers.impl.*; /*************************************************************************** * Bytecode Viewer (BCV) - Java & Android Reverse Engineering Suite * - * Copyright (C) 2014 Kalen 'Konloch' Kinloch - http://bytecodeviewer.com * + * 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 * 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 801e86a5..f44de5b2 100644 --- a/src/main/java/the/bytecode/club/bytecodeviewer/decompilers/InternalDecompiler.java +++ b/src/main/java/the/bytecode/club/bytecodeviewer/decompilers/InternalDecompiler.java @@ -4,7 +4,7 @@ import org.objectweb.asm.tree.ClassNode; /*************************************************************************** * Bytecode Viewer (BCV) - Java & Android Reverse Engineering Suite * - * Copyright (C) 2014 Kalen 'Konloch' Kinloch - http://bytecodeviewer.com * + * 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 * 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 1959a1cb..fa3ff959 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 @@ -14,7 +14,7 @@ import static the.bytecode.club.bytecodeviewer.Constants.nl; /*************************************************************************** * Bytecode Viewer (BCV) - Java & Android Reverse Engineering Suite * - * Copyright (C) 2014 Kalen 'Konloch' Kinloch - http://bytecodeviewer.com * + * 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 * 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 3f61e715..8c897877 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 @@ -8,7 +8,7 @@ import org.objectweb.asm.tree.FieldNode; /*************************************************************************** * Bytecode Viewer (BCV) - Java & Android Reverse Engineering Suite * - * Copyright (C) 2014 Kalen 'Konloch' Kinloch - http://bytecodeviewer.com * + * 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 * 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 0d116027..9554f77c 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 @@ -27,7 +27,7 @@ import org.objectweb.asm.tree.VarInsnNode; /*************************************************************************** * Bytecode Viewer (BCV) - Java & Android Reverse Engineering Suite * - * Copyright (C) 2014 Kalen 'Konloch' Kinloch - http://bytecodeviewer.com * + * 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 * 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 797d5727..0f66a388 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 @@ -17,7 +17,7 @@ import java.util.stream.Collectors; /*************************************************************************** * Bytecode Viewer (BCV) - Java & Android Reverse Engineering Suite * - * Copyright (C) 2014 Kalen 'Konloch' Kinloch - http://bytecodeviewer.com * + * 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 * 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 ff6e3a2f..522e256a 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 @@ -10,7 +10,7 @@ import org.objectweb.asm.tree.LineNumberNode; /*************************************************************************** * Bytecode Viewer (BCV) - Java & Android Reverse Engineering Suite * - * Copyright (C) 2014 Kalen 'Konloch' Kinloch - http://bytecodeviewer.com * + * 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 * 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 d452fc49..c4c5381e 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 @@ -16,7 +16,7 @@ import static the.bytecode.club.bytecodeviewer.Constants.nl; /*************************************************************************** * Bytecode Viewer (BCV) - Java & Android Reverse Engineering Suite * - * Copyright (C) 2014 Kalen 'Konloch' Kinloch - http://bytecodeviewer.com * + * 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 * 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 80b076e2..b53b4e14 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 @@ -2,7 +2,7 @@ package the.bytecode.club.bytecodeviewer.decompilers.bytecode; /*************************************************************************** * Bytecode Viewer (BCV) - Java & Android Reverse Engineering Suite * - * Copyright (C) 2014 Kalen 'Konloch' Kinloch - http://bytecodeviewer.com * + * 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 * 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 f1a90905..e9d63c9d 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 @@ -4,7 +4,7 @@ import org.objectweb.asm.Type; /*************************************************************************** * Bytecode Viewer (BCV) - Java & Android Reverse Engineering Suite * - * Copyright (C) 2014 Kalen 'Konloch' Kinloch - http://bytecodeviewer.com * + * 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 * 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 e6ddf033..e1ff7391 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 @@ -9,7 +9,7 @@ import the.bytecode.club.bytecodeviewer.decompilers.InternalDecompiler; /*************************************************************************** * Bytecode Viewer (BCV) - Java & Android Reverse Engineering Suite * - * Copyright (C) 2014 Kalen 'Konloch' Kinloch - http://bytecodeviewer.com * + * 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 * 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 a2031f41..ab23ef8c 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 @@ -11,7 +11,7 @@ import java.io.StringWriter; /*************************************************************************** * Bytecode Viewer (BCV) - Java & Android Reverse Engineering Suite * - * Copyright (C) 2014 Kalen 'Konloch' Kinloch - http://bytecodeviewer.com * + * 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 * 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 57217f97..12b47409 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 @@ -8,7 +8,7 @@ import the.bytecode.club.bytecodeviewer.decompilers.bytecode.PrefixedStringBuild /*************************************************************************** * Bytecode Viewer (BCV) - Java & Android Reverse Engineering Suite * - * Copyright (C) 2014 Kalen 'Konloch' Kinloch - http://bytecodeviewer.com * + * 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 * 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 86883766..5ae3910f 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 @@ -43,7 +43,7 @@ import static the.bytecode.club.bytecodeviewer.translation.TranslatedStrings.ERR /*************************************************************************** * Bytecode Viewer (BCV) - Java & Android Reverse Engineering Suite * - * Copyright (C) 2014 Kalen 'Konloch' Kinloch - http://bytecodeviewer.com * + * 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 * 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 910baf19..8e2c0899 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 @@ -22,7 +22,7 @@ import static the.bytecode.club.bytecodeviewer.translation.TranslatedStrings.FER /*************************************************************************** * Bytecode Viewer (BCV) - Java & Android Reverse Engineering Suite * - * Copyright (C) 2014 Kalen 'Konloch' Kinloch - http://bytecodeviewer.com * + * 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 * 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 863ae1d5..756d5af3 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 @@ -24,7 +24,7 @@ import static the.bytecode.club.bytecodeviewer.translation.TranslatedStrings.JAD /*************************************************************************** * Bytecode Viewer (BCV) - Java & Android Reverse Engineering Suite * - * Copyright (C) 2014 Kalen 'Konloch' Kinloch - http://bytecodeviewer.com * + * 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 * 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 1084dd80..e75912f0 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 @@ -27,7 +27,7 @@ import static the.bytecode.club.bytecodeviewer.translation.TranslatedStrings.JDG /*************************************************************************** * Bytecode Viewer (BCV) - Java & Android Reverse Engineering Suite * - * Copyright (C) 2014 Kalen 'Konloch' Kinloch - http://bytecodeviewer.com * + * 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 * 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 23dce962..bd4bc0de 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 @@ -20,7 +20,7 @@ import static the.bytecode.club.bytecodeviewer.api.ExceptionUI.SEND_STACKTRACE_T /*************************************************************************** * Bytecode Viewer (BCV) - Java & Android Reverse Engineering Suite * - * Copyright (C) 2014 Kalen 'Konloch' Kinloch - http://bytecodeviewer.com * + * 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 * 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 b828b016..46eb02f4 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 @@ -28,7 +28,7 @@ import static the.bytecode.club.bytecodeviewer.Constants.nl; /*************************************************************************** * Bytecode Viewer (BCV) - Java & Android Reverse Engineering Suite * - * Copyright (C) 2014 Kalen 'Konloch' Kinloch - http://bytecodeviewer.com * + * 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 * 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 069a32f1..d2a95fd9 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 @@ -26,7 +26,7 @@ import static the.bytecode.club.bytecodeviewer.Constants.nl; /*************************************************************************** * Bytecode Viewer (BCV) - Java & Android Reverse Engineering Suite * - * Copyright (C) 2014 Kalen 'Konloch' Kinloch - http://bytecodeviewer.com * + * 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 * 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 6036b35a..839d729f 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 @@ -46,7 +46,7 @@ import static the.bytecode.club.bytecodeviewer.translation.TranslatedStrings.PRO /*************************************************************************** * Bytecode Viewer (BCV) - Java & Android Reverse Engineering Suite * - * Copyright (C) 2014 Kalen 'Konloch' Kinloch - http://bytecodeviewer.com * + * 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 * 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 295cac6e..ec96701a 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 @@ -26,7 +26,7 @@ import static the.bytecode.club.bytecodeviewer.translation.TranslatedStrings.SMA /*************************************************************************** * Bytecode Viewer (BCV) - Java & Android Reverse Engineering Suite * - * Copyright (C) 2014 Kalen 'Konloch' Kinloch - http://bytecodeviewer.com * + * 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 * 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 cbc0a994..81ea8e85 100644 --- a/src/main/java/the/bytecode/club/bytecodeviewer/gui/MainViewerGUI.java +++ b/src/main/java/the/bytecode/club/bytecodeviewer/gui/MainViewerGUI.java @@ -69,7 +69,7 @@ import static the.bytecode.club.bytecodeviewer.Constants.fs; /*************************************************************************** * Bytecode Viewer (BCV) - Java & Android Reverse Engineering Suite * - * Copyright (C) 2014 Kalen 'Konloch' Kinloch - http://bytecodeviewer.com * + * 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 * 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 23857f4e..03979816 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 @@ -12,7 +12,7 @@ import static the.bytecode.club.bytecodeviewer.Configuration.language; /*************************************************************************** * Bytecode Viewer (BCV) - Java & Android Reverse Engineering Suite * - * Copyright (C) 2014 Kalen 'Konloch' Kinloch - http://bytecodeviewer.com * + * 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 * 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 46919096..cc43533d 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 @@ -7,7 +7,7 @@ import javax.swing.AbstractButton; /*************************************************************************** * Bytecode Viewer (BCV) - Java & Android Reverse Engineering Suite * - * Copyright (C) 2014 Kalen 'Konloch' Kinloch - http://bytecodeviewer.com * + * 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 * 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 94586528..ba84da2a 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 @@ -15,7 +15,7 @@ import static the.bytecode.club.bytecodeviewer.gui.components.DecompilerViewComp /*************************************************************************** * Bytecode Viewer (BCV) - Java & Android Reverse Engineering Suite * - * Copyright (C) 2014 Kalen 'Konloch' Kinloch - http://bytecodeviewer.com * + * 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 * 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 cb0c1065..1d35582e 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 @@ -12,7 +12,7 @@ import the.bytecode.club.bytecodeviewer.util.JarUtils; /*************************************************************************** * Bytecode Viewer (BCV) - Java & Android Reverse Engineering Suite * - * Copyright (C) 2014 Kalen 'Konloch' Kinloch - http://bytecodeviewer.com * + * 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 * 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 9174656f..be1c1fa6 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 @@ -24,7 +24,7 @@ import static javax.swing.JOptionPane.getRootFrame; /*************************************************************************** * Bytecode Viewer (BCV) - Java & Android Reverse Engineering Suite * - * Copyright (C) 2014 Kalen 'Konloch' Kinloch - http://bytecodeviewer.com * + * 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 * 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 5ce9464c..3e419542 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 @@ -10,7 +10,7 @@ import the.bytecode.club.bytecodeviewer.util.MiscUtils; /*************************************************************************** * Bytecode Viewer (BCV) - Java & Android Reverse Engineering Suite * - * Copyright (C) 2014 Kalen 'Konloch' Kinloch - http://bytecodeviewer.com * + * 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 * 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 396b81dc..9099c063 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 @@ -17,7 +17,7 @@ import static the.bytecode.club.bytecodeviewer.Constants.krakatauWorkingDirector /*************************************************************************** * Bytecode Viewer (BCV) - Java & Android Reverse Engineering Suite * - * Copyright (C) 2014 Kalen 'Konloch' Kinloch - http://bytecodeviewer.com * + * 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 * 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 9b2bb088..e0e1dc15 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 @@ -6,7 +6,7 @@ import javax.swing.JLabel; /*************************************************************************** * Bytecode Viewer (BCV) - Java & Android Reverse Engineering Suite * - * Copyright (C) 2014 Kalen 'Konloch' Kinloch - http://bytecodeviewer.com * + * 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 * 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 e821e02b..12cf1fd1 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 @@ -11,7 +11,7 @@ import static the.bytecode.club.bytecodeviewer.Constants.tempDirectory; /*************************************************************************** * Bytecode Viewer (BCV) - Java & Android Reverse Engineering Suite * - * Copyright (C) 2014 Kalen 'Konloch' Kinloch - http://bytecodeviewer.com * + * 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 * 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 0a502f77..a0f54b1d 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 @@ -8,7 +8,7 @@ import static the.bytecode.club.bytecodeviewer.Constants.nl; /*************************************************************************** * Bytecode Viewer (BCV) - Java & Android Reverse Engineering Suite * - * Copyright (C) 2014 Kalen 'Konloch' Kinloch - http://bytecodeviewer.com * + * 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 * 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 d2b7893a..62929dd0 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 @@ -9,7 +9,7 @@ import the.bytecode.club.bytecodeviewer.resources.IconResources; /*************************************************************************** * Bytecode Viewer (BCV) - Java & Android Reverse Engineering Suite * - * Copyright (C) 2014 Kalen 'Konloch' Kinloch - http://bytecodeviewer.com * + * 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 * 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 f23720d1..f2561901 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 @@ -8,7 +8,7 @@ import javax.swing.UIManager; /*************************************************************************** * Bytecode Viewer (BCV) - Java & Android Reverse Engineering Suite * - * Copyright (C) 2014 Kalen 'Konloch' Kinloch - http://bytecodeviewer.com * + * 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 * 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 a169c3d9..8924c041 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 @@ -7,7 +7,7 @@ import javax.swing.JTextArea; /*************************************************************************** * Bytecode Viewer (BCV) - Java & Android Reverse Engineering Suite * - * Copyright (C) 2014 Kalen 'Konloch' Kinloch - http://bytecodeviewer.com * + * 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 * 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 12713a7a..2450cdc2 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 @@ -5,7 +5,7 @@ import javax.swing.JLabel; /*************************************************************************** * Bytecode Viewer (BCV) - Java & Android Reverse Engineering Suite * - * Copyright (C) 2014 Kalen 'Konloch' Kinloch - http://bytecodeviewer.com * + * 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 * 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 e63fa900..f789bb82 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 @@ -12,7 +12,7 @@ import the.bytecode.club.bytecodeviewer.util.MethodParser; /*************************************************************************** * Bytecode Viewer (BCV) - Java & Android Reverse Engineering Suite * - * Copyright (C) 2014 Kalen 'Konloch' Kinloch - http://bytecodeviewer.com * + * 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 * 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 f896c125..40e56004 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 @@ -6,7 +6,7 @@ import the.bytecode.club.bytecodeviewer.BytecodeViewer; /*************************************************************************** * Bytecode Viewer (BCV) - Java & Android Reverse Engineering Suite * - * Copyright (C) 2014 Kalen 'Konloch' Kinloch - http://bytecodeviewer.com * + * 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 * 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 6e2266a8..c16a9ab0 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 @@ -13,7 +13,7 @@ import the.bytecode.club.bytecodeviewer.resources.IconResources; /*************************************************************************** * Bytecode Viewer (BCV) - Java & Android Reverse Engineering Suite * - * Copyright (C) 2014 Kalen 'Konloch' Kinloch - http://bytecodeviewer.com * + * 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 * 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 3acce26e..146ed18c 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 @@ -23,7 +23,7 @@ import the.bytecode.club.bytecodeviewer.util.JTextAreaUtils; /*************************************************************************** * Bytecode Viewer (BCV) - Java & Android Reverse Engineering Suite * - * Copyright (C) 2014 Kalen 'Konloch' Kinloch - http://bytecodeviewer.com * + * 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 * 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 ae87a662..9c06e55b 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 @@ -30,7 +30,7 @@ import the.bytecode.club.bytecodeviewer.util.JTextAreaUtils; /*************************************************************************** * Bytecode Viewer (BCV) - Java & Android Reverse Engineering Suite * - * Copyright (C) 2014 Kalen 'Konloch' Kinloch - http://bytecodeviewer.com * + * 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 * 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 06008280..849fb518 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 @@ -15,7 +15,7 @@ import static the.bytecode.club.bytecodeviewer.Configuration.useNewSettingsDialo /*************************************************************************** * Bytecode Viewer (BCV) - Java & Android Reverse Engineering Suite * - * Copyright (C) 2014 Kalen 'Konloch' Kinloch - http://bytecodeviewer.com * + * 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 * 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 6863dc7f..c4515768 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 @@ -2,7 +2,7 @@ package the.bytecode.club.bytecodeviewer.gui.components; /*************************************************************************** * Bytecode Viewer (BCV) - Java & Android Reverse Engineering Suite * - * Copyright (C) 2014 Kalen 'Konloch' Kinloch - http://bytecodeviewer.com * + * 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 * 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 6521f114..ae34e810 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 @@ -9,7 +9,7 @@ import the.bytecode.club.bytecodeviewer.resources.IconResources; /*************************************************************************** * Bytecode Viewer (BCV) - Java & Android Reverse Engineering Suite * - * Copyright (C) 2014 Kalen 'Konloch' Kinloch - http://bytecodeviewer.com * + * 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 * 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 3ff59f92..96a02790 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 @@ -12,7 +12,7 @@ import java.awt.event.*; /*************************************************************************** * Bytecode Viewer (BCV) - Java & Android Reverse Engineering Suite * - * Copyright (C) 2014 Kalen 'Konloch' Kinloch - http://bytecodeviewer.com * + * 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 * 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 1385f034..bb8b24b6 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 @@ -5,7 +5,7 @@ import java.awt.event.MouseListener; /*************************************************************************** * Bytecode Viewer (BCV) - Java & Android Reverse Engineering Suite * - * Copyright (C) 2014 Kalen 'Konloch' Kinloch - http://bytecodeviewer.com * + * 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 * 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 2634928f..a9c56db6 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 @@ -5,7 +5,7 @@ import java.awt.event.KeyListener; /*************************************************************************** * Bytecode Viewer (BCV) - Java & Android Reverse Engineering Suite * - * Copyright (C) 2014 Kalen 'Konloch' Kinloch - http://bytecodeviewer.com * + * 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 * 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 4db9b004..a8a34aeb 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 @@ -5,7 +5,7 @@ import java.awt.event.KeyListener; /*************************************************************************** * Bytecode Viewer (BCV) - Java & Android Reverse Engineering Suite * - * Copyright (C) 2014 Kalen 'Konloch' Kinloch - http://bytecodeviewer.com * + * 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 * 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 1900cceb..106d64f1 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 @@ -7,7 +7,7 @@ import the.bytecode.club.bytecodeviewer.searching.LDCSearchTreeNodeResult; /*************************************************************************** * Bytecode Viewer (BCV) - Java & Android Reverse Engineering Suite * - * Copyright (C) 2014 Kalen 'Konloch' Kinloch - http://bytecodeviewer.com * + * 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 * 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 cb30f47b..ab47effb 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 @@ -17,7 +17,7 @@ import the.bytecode.club.bytecodeviewer.searching.LDCSearchTreeNodeResult; /*************************************************************************** * Bytecode Viewer (BCV) - Java & Android Reverse Engineering Suite * - * Copyright (C) 2014 Kalen 'Konloch' Kinloch - http://bytecodeviewer.com * + * 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 * 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 0a124fda..2ef83612 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 @@ -2,7 +2,7 @@ package the.bytecode.club.bytecodeviewer.gui.contextmenu; /*************************************************************************** * Bytecode Viewer (BCV) - Java & Android Reverse Engineering Suite * - * Copyright (C) 2014 Kalen 'Konloch' Kinloch - http://bytecodeviewer.com * + * 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 * 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 b3356887..92791320 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 @@ -2,7 +2,7 @@ package the.bytecode.club.bytecodeviewer.gui.contextmenu; /*************************************************************************** * Bytecode Viewer (BCV) - Java & Android Reverse Engineering Suite * - * Copyright (C) 2014 Kalen 'Konloch' Kinloch - http://bytecodeviewer.com * + * 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 * 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 9c300174..49c25c36 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 @@ -9,7 +9,7 @@ import the.bytecode.club.bytecodeviewer.translation.TranslatedStrings; /*************************************************************************** * Bytecode Viewer (BCV) - Java & Android Reverse Engineering Suite * - * Copyright (C) 2014 Kalen 'Konloch' Kinloch - http://bytecodeviewer.com * + * 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 * 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 648de986..b0ecf75a 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 @@ -9,7 +9,7 @@ import the.bytecode.club.bytecodeviewer.translation.TranslatedStrings; /*************************************************************************** * Bytecode Viewer (BCV) - Java & Android Reverse Engineering Suite * - * Copyright (C) 2014 Kalen 'Konloch' Kinloch - http://bytecodeviewer.com * + * 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 * 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 4663dbd2..b9b15005 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 @@ -9,7 +9,7 @@ import the.bytecode.club.bytecodeviewer.translation.TranslatedStrings; /*************************************************************************** * Bytecode Viewer (BCV) - Java & Android Reverse Engineering Suite * - * Copyright (C) 2014 Kalen 'Konloch' Kinloch - http://bytecodeviewer.com * + * 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 * 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 66896200..19a71b3c 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 @@ -17,7 +17,7 @@ import the.bytecode.club.bytecodeviewer.translation.TranslatedStrings; /*************************************************************************** * Bytecode Viewer (BCV) - Java & Android Reverse Engineering Suite * - * Copyright (C) 2014 Kalen 'Konloch' Kinloch - http://bytecodeviewer.com * + * 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 * 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 a4e0c877..0245c3b5 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 @@ -9,7 +9,7 @@ import the.bytecode.club.bytecodeviewer.translation.TranslatedStrings; /*************************************************************************** * Bytecode Viewer (BCV) - Java & Android Reverse Engineering Suite * - * Copyright (C) 2014 Kalen 'Konloch' Kinloch - http://bytecodeviewer.com * + * 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 * 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 b5e12171..a2215d59 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 @@ -10,7 +10,7 @@ import the.bytecode.club.bytecodeviewer.translation.TranslatedStrings; /*************************************************************************** * Bytecode Viewer (BCV) - Java & Android Reverse Engineering Suite * - * Copyright (C) 2014 Kalen 'Konloch' Kinloch - http://bytecodeviewer.com * + * 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 * 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 732ea746..2bdd3674 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 @@ -10,7 +10,7 @@ import the.bytecode.club.bytecodeviewer.translation.TranslatedStrings; /*************************************************************************** * Bytecode Viewer (BCV) - Java & Android Reverse Engineering Suite * - * Copyright (C) 2014 Kalen 'Konloch' Kinloch - http://bytecodeviewer.com * + * 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 * 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 4337c93c..7214ed1f 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 @@ -9,7 +9,7 @@ import the.bytecode.club.bytecodeviewer.translation.TranslatedStrings; /*************************************************************************** * Bytecode Viewer (BCV) - Java & Android Reverse Engineering Suite * - * Copyright (C) 2014 Kalen 'Konloch' Kinloch - http://bytecodeviewer.com * + * 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 * 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 5446cef5..60d06889 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 @@ -10,7 +10,7 @@ import the.bytecode.club.bytecodeviewer.translation.TranslatedStrings; /*************************************************************************** * Bytecode Viewer (BCV) - Java & Android Reverse Engineering Suite * - * Copyright (C) 2014 Kalen 'Konloch' Kinloch - http://bytecodeviewer.com * + * 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 * 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 eeb7b777..d616871d 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 @@ -10,7 +10,7 @@ import the.bytecode.club.bytecodeviewer.translation.TranslatedStrings; /*************************************************************************** * Bytecode Viewer (BCV) - Java & Android Reverse Engineering Suite * - * Copyright (C) 2014 Kalen 'Konloch' Kinloch - http://bytecodeviewer.com * + * 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 * 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 7815349b..b5050c46 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 @@ -9,7 +9,7 @@ import the.bytecode.club.bytecodeviewer.resources.IconResources; /*************************************************************************** * Bytecode Viewer (BCV) - Java & Android Reverse Engineering Suite * - * Copyright (C) 2014 Kalen 'Konloch' Kinloch - http://bytecodeviewer.com * + * 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 * 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 5c56f5ae..cdfe7f87 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 @@ -15,7 +15,7 @@ import the.bytecode.club.bytecodeviewer.resources.IconResources; /*************************************************************************** * Bytecode Viewer (BCV) - Java & Android Reverse Engineering Suite * - * Copyright (C) 2014 Kalen 'Konloch' Kinloch - http://bytecodeviewer.com * + * 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 * 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 fcd9367c..0abf00ce 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 @@ -13,7 +13,7 @@ import the.bytecode.club.bytecodeviewer.resources.IconResources; /*************************************************************************** * Bytecode Viewer (BCV) - Java & Android Reverse Engineering Suite * - * Copyright (C) 2014 Kalen 'Konloch' Kinloch - http://bytecodeviewer.com * + * 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 * 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 c0ca2b72..1235ec45 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 @@ -46,7 +46,7 @@ import static the.bytecode.club.bytecodeviewer.Constants.tempDirectory; /*************************************************************************** * Bytecode Viewer (BCV) - Java & Android Reverse Engineering Suite * - * Copyright (C) 2014 Kalen 'Konloch' Kinloch - http://bytecodeviewer.com * + * 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 * 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 2bfa7504..f9e60ce1 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 @@ -11,7 +11,7 @@ import the.bytecode.club.bytecodeviewer.translation.TranslatedStrings; /*************************************************************************** * Bytecode Viewer (BCV) - Java & Android Reverse Engineering Suite * - * Copyright (C) 2014 Kalen 'Konloch' Kinloch - http://bytecodeviewer.com * + * 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 * 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 d5493f33..c9058ca8 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 @@ -8,7 +8,7 @@ import java.util.HashMap; /*************************************************************************** * Bytecode Viewer (BCV) - Java & Android Reverse Engineering Suite * - * Copyright (C) 2014 Kalen 'Konloch' Kinloch - http://bytecodeviewer.com * + * 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 * 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 03799689..adabe8a6 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 @@ -9,7 +9,7 @@ import java.util.Enumeration; /*************************************************************************** * Bytecode Viewer (BCV) - Java & Android Reverse Engineering Suite * - * Copyright (C) 2014 Kalen 'Konloch' Kinloch - http://bytecodeviewer.com * + * 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 * 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 f1a1e4f1..c93caf04 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 @@ -12,7 +12,7 @@ import the.bytecode.club.bytecodeviewer.translation.TranslatedStrings; /*************************************************************************** * Bytecode Viewer (BCV) - Java & Android Reverse Engineering Suite * - * Copyright (C) 2014 Kalen 'Konloch' Kinloch - http://bytecodeviewer.com * + * 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 * 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 db338c09..9ca15c07 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 @@ -24,7 +24,7 @@ import the.bytecode.club.bytecodeviewer.translation.components.TranslatedVisible /*************************************************************************** * Bytecode Viewer (BCV) - Java & Android Reverse Engineering Suite * - * Copyright (C) 2014 Kalen 'Konloch' Kinloch - http://bytecodeviewer.com * + * 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 * 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 be35ffc8..200067a4 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 @@ -2,7 +2,7 @@ package the.bytecode.club.bytecodeviewer.gui.resourcesearch; /*************************************************************************** * Bytecode Viewer (BCV) - Java & Android Reverse Engineering Suite * - * Copyright (C) 2014 Kalen 'Konloch' Kinloch - http://bytecodeviewer.com * + * 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 * 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 09e8536c..5086d83e 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 @@ -5,7 +5,7 @@ import the.bytecode.club.bytecodeviewer.searching.impl.*; /*************************************************************************** * Bytecode Viewer (BCV) - Java & Android Reverse Engineering Suite * - * Copyright (C) 2014 Kalen 'Konloch' Kinloch - http://bytecodeviewer.com * + * 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 * 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 53e39e18..bdb3b9c4 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 @@ -18,7 +18,7 @@ import static the.bytecode.club.bytecodeviewer.Constants.nl; /*************************************************************************** * Bytecode Viewer (BCV) - Java & Android Reverse Engineering Suite * - * Copyright (C) 2014 Kalen 'Konloch' Kinloch - http://bytecodeviewer.com * + * 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 * 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 ffeeaec6..101990b9 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 @@ -22,7 +22,7 @@ import static the.bytecode.club.bytecodeviewer.gui.components.DecompilerViewComp /*************************************************************************** * Bytecode Viewer (BCV) - Java & Android Reverse Engineering Suite * - * Copyright (C) 2014 Kalen 'Konloch' Kinloch - http://bytecodeviewer.com * + * 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 * 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 e06bb4f0..f675553b 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 @@ -13,7 +13,7 @@ import javax.swing.plaf.basic.BasicButtonUI; /*************************************************************************** * Bytecode Viewer (BCV) - Java & Android Reverse Engineering Suite * - * Copyright (C) 2014 Kalen 'Konloch' Kinloch - http://bytecodeviewer.com * + * 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 * 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 64664c48..03cc282e 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 @@ -8,7 +8,7 @@ import the.bytecode.club.bytecodeviewer.gui.resourceviewer.viewer.ResourceViewer /*************************************************************************** * Bytecode Viewer (BCV) - Java & Android Reverse Engineering Suite * - * Copyright (C) 2014 Kalen 'Konloch' Kinloch - http://bytecodeviewer.com * + * 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 * 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 7f216b4f..2411a90b 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 @@ -10,7 +10,7 @@ import java.awt.event.MouseListener; /*************************************************************************** * Bytecode Viewer (BCV) - Java & Android Reverse Engineering Suite * - * Copyright (C) 2014 Kalen 'Konloch' Kinloch - http://bytecodeviewer.com * + * 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 * 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 497e4a18..02b550ae 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 @@ -24,7 +24,7 @@ import static the.bytecode.club.bytecodeviewer.Constants.BLOCK_TAB_MENU; /*************************************************************************** * Bytecode Viewer (BCV) - Java & Android Reverse Engineering Suite * - * Copyright (C) 2014 Kalen 'Konloch' Kinloch - http://bytecodeviewer.com * + * 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 * 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 68f5efb4..202f7629 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 @@ -7,7 +7,7 @@ import the.bytecode.club.bytecodeviewer.gui.resourceviewer.viewer.ResourceViewer /*************************************************************************** * Bytecode Viewer (BCV) - Java & Android Reverse Engineering Suite * - * Copyright (C) 2014 Kalen 'Konloch' Kinloch - http://bytecodeviewer.com * + * 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 * 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 aa198539..f8c5427a 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 @@ -6,7 +6,7 @@ import the.bytecode.club.bytecodeviewer.BytecodeViewer; /*************************************************************************** * Bytecode Viewer (BCV) - Java & Android Reverse Engineering Suite * - * Copyright (C) 2014 Kalen 'Konloch' Kinloch - http://bytecodeviewer.com * + * 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 * 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 2bc819f6..aa583557 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 @@ -29,7 +29,7 @@ import static the.bytecode.club.bytecodeviewer.util.MethodParser.Method; /*************************************************************************** * Bytecode Viewer (BCV) - Java & Android Reverse Engineering Suite * - * Copyright (C) 2014 Kalen 'Konloch' Kinloch - http://bytecodeviewer.com * + * 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 * 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 eb365c64..c570a9d9 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 @@ -8,7 +8,7 @@ import the.bytecode.club.bytecodeviewer.resources.Resource; /*************************************************************************** * Bytecode Viewer (BCV) - Java & Android Reverse Engineering Suite * - * Copyright (C) 2014 Kalen 'Konloch' Kinloch - http://bytecodeviewer.com * + * 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 * 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 74db5cfa..f18af8b4 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 @@ -23,7 +23,7 @@ import the.bytecode.club.bytecodeviewer.util.SyntaxLanguage; /*************************************************************************** * Bytecode Viewer (BCV) - Java & Android Reverse Engineering Suite * - * Copyright (C) 2014 Kalen 'Konloch' Kinloch - http://bytecodeviewer.com * + * 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 * 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 b45c1396..5d2e6d65 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 @@ -9,7 +9,7 @@ import the.bytecode.club.bytecodeviewer.util.MiscUtils; /*************************************************************************** * Bytecode Viewer (BCV) - Java & Android Reverse Engineering Suite * - * Copyright (C) 2014 Kalen 'Konloch' Kinloch - http://bytecodeviewer.com * + * 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 * 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 fa4e2912..d3a489f2 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 @@ -6,7 +6,7 @@ import org.objectweb.asm.Type; /*************************************************************************** * Bytecode Viewer (BCV) - Java & Android Reverse Engineering Suite * - * Copyright (C) 2014 Kalen 'Konloch' Kinloch - http://bytecodeviewer.com * + * 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 * 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 28b5189f..d8aa20bb 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 @@ -21,7 +21,7 @@ import the.bytecode.club.bytecodeviewer.translation.TranslatedComponents; /*************************************************************************** * Bytecode Viewer (BCV) - Java & Android Reverse Engineering Suite * - * Copyright (C) 2014 Kalen 'Konloch' Kinloch - http://bytecodeviewer.com * + * 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 * 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 a7dab4ec..baab73c8 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 @@ -10,7 +10,7 @@ import the.bytecode.club.bytecodeviewer.translation.TranslatedComponents; /*************************************************************************** * Bytecode Viewer (BCV) - Java & Android Reverse Engineering Suite * - * Copyright (C) 2014 Kalen 'Konloch' Kinloch - http://bytecodeviewer.com * + * 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 * 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 a9af6ecc..15dbdd5b 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 @@ -34,7 +34,7 @@ import static the.bytecode.club.bytecodeviewer.translation.TranslatedStrings.EDI /*************************************************************************** * Bytecode Viewer (BCV) - Java & Android Reverse Engineering Suite * - * Copyright (C) 2014 Kalen 'Konloch' Kinloch - http://bytecodeviewer.com * + * 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 * 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 893b160d..282b6248 100644 --- a/src/main/java/the/bytecode/club/bytecodeviewer/malwarescanner/CodeScanner.java +++ b/src/main/java/the/bytecode/club/bytecodeviewer/malwarescanner/CodeScanner.java @@ -6,7 +6,7 @@ import org.objectweb.asm.tree.MethodNode; /*************************************************************************** * Bytecode Viewer (BCV) - Java & Android Reverse Engineering Suite * - * Copyright (C) 2014 Kalen 'Konloch' Kinloch - http://bytecodeviewer.com * + * 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 * 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 e2be9c29..7144cbea 100644 --- a/src/main/java/the/bytecode/club/bytecodeviewer/malwarescanner/MalwareCodeScanner.java +++ b/src/main/java/the/bytecode/club/bytecodeviewer/malwarescanner/MalwareCodeScanner.java @@ -12,7 +12,7 @@ import the.bytecode.club.bytecodeviewer.malwarescanner.util.SearchableString; /*************************************************************************** * Bytecode Viewer (BCV) - Java & Android Reverse Engineering Suite * - * Copyright (C) 2014 Kalen 'Konloch' Kinloch - http://bytecodeviewer.com * + * 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 * 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 e764a04c..06fe65de 100644 --- a/src/main/java/the/bytecode/club/bytecodeviewer/malwarescanner/MalwareScan.java +++ b/src/main/java/the/bytecode/club/bytecodeviewer/malwarescanner/MalwareScan.java @@ -6,7 +6,7 @@ import org.objectweb.asm.tree.ClassNode; /*************************************************************************** * Bytecode Viewer (BCV) - Java & Android Reverse Engineering Suite * - * Copyright (C) 2014 Kalen 'Konloch' Kinloch - http://bytecodeviewer.com * + * 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 * 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 1c0068f1..97d1e703 100644 --- a/src/main/java/the/bytecode/club/bytecodeviewer/malwarescanner/MalwareScanModule.java +++ b/src/main/java/the/bytecode/club/bytecodeviewer/malwarescanner/MalwareScanModule.java @@ -12,7 +12,7 @@ import the.bytecode.club.bytecodeviewer.malwarescanner.impl.URLScanner; /*************************************************************************** * Bytecode Viewer (BCV) - Java & Android Reverse Engineering Suite * - * Copyright (C) 2014 Kalen 'Konloch' Kinloch - http://bytecodeviewer.com * + * 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 * 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 4391d798..62e33d8b 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 @@ -13,7 +13,7 @@ import static the.bytecode.club.bytecodeviewer.Constants.nl; /*************************************************************************** * Bytecode Viewer (BCV) - Java & Android Reverse Engineering Suite * - * Copyright (C) 2014 Kalen 'Konloch' Kinloch - http://bytecodeviewer.com * + * 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 * 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 4cf9250e..be4542bf 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 @@ -13,7 +13,7 @@ import static the.bytecode.club.bytecodeviewer.Constants.nl; /*************************************************************************** * Bytecode Viewer (BCV) - Java & Android Reverse Engineering Suite * - * Copyright (C) 2014 Kalen 'Konloch' Kinloch - http://bytecodeviewer.com * + * 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 * 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 79614d89..c289a865 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 @@ -13,7 +13,7 @@ import static the.bytecode.club.bytecodeviewer.Constants.nl; /*************************************************************************** * Bytecode Viewer (BCV) - Java & Android Reverse Engineering Suite * - * Copyright (C) 2014 Kalen 'Konloch' Kinloch - http://bytecodeviewer.com * + * 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 * 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 d8c6caab..3073de3b 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 @@ -13,7 +13,7 @@ import static the.bytecode.club.bytecodeviewer.Constants.nl; /*************************************************************************** * Bytecode Viewer (BCV) - Java & Android Reverse Engineering Suite * - * Copyright (C) 2014 Kalen 'Konloch' Kinloch - http://bytecodeviewer.com * + * 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 * 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 d6a7e0f9..6fae4dce 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 @@ -15,7 +15,7 @@ import static the.bytecode.club.bytecodeviewer.Constants.nl; /*************************************************************************** * Bytecode Viewer (BCV) - Java & Android Reverse Engineering Suite * - * Copyright (C) 2014 Kalen 'Konloch' Kinloch - http://bytecodeviewer.com * + * 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 * 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 33e1482a..e5e1aac5 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 @@ -13,7 +13,7 @@ import static the.bytecode.club.bytecodeviewer.Constants.nl; /*************************************************************************** * Bytecode Viewer (BCV) - Java & Android Reverse Engineering Suite * - * Copyright (C) 2014 Kalen 'Konloch' Kinloch - http://bytecodeviewer.com * + * 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 * 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 647a6984..955de193 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 @@ -13,7 +13,7 @@ import static the.bytecode.club.bytecodeviewer.Constants.nl; /*************************************************************************** * Bytecode Viewer (BCV) - Java & Android Reverse Engineering Suite * - * Copyright (C) 2014 Kalen 'Konloch' Kinloch - http://bytecodeviewer.com * + * 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 * 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 3ecc7fe4..38ae86b8 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 @@ -5,7 +5,7 @@ import the.bytecode.club.bytecodeviewer.malwarescanner.MalwareScanModule; /*************************************************************************** * Bytecode Viewer (BCV) - Java & Android Reverse Engineering Suite * - * Copyright (C) 2014 Kalen 'Konloch' Kinloch - http://bytecodeviewer.com * + * 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 * 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 014dafb1..7bca8afe 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 @@ -2,7 +2,7 @@ package the.bytecode.club.bytecodeviewer.malwarescanner.util; /*************************************************************************** * Bytecode Viewer (BCV) - Java & Android Reverse Engineering Suite * - * Copyright (C) 2014 Kalen 'Konloch' Kinloch - http://bytecodeviewer.com * + * 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 * 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 31ba7c03..a7f615bf 100644 --- a/src/main/java/the/bytecode/club/bytecodeviewer/obfuscators/JavaObfuscator.java +++ b/src/main/java/the/bytecode/club/bytecodeviewer/obfuscators/JavaObfuscator.java @@ -8,7 +8,7 @@ import the.bytecode.club.bytecodeviewer.util.MiscUtils; /*************************************************************************** * Bytecode Viewer (BCV) - Java & Android Reverse Engineering Suite * - * Copyright (C) 2014 Kalen 'Konloch' Kinloch - http://bytecodeviewer.com * + * 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 * 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 c6f942ab..41c4d42b 100644 --- a/src/main/java/the/bytecode/club/bytecodeviewer/obfuscators/RenameClasses.java +++ b/src/main/java/the/bytecode/club/bytecodeviewer/obfuscators/RenameClasses.java @@ -6,7 +6,7 @@ import the.bytecode.club.bytecodeviewer.api.ASMResourceUtil; /*************************************************************************** * Bytecode Viewer (BCV) - Java & Android Reverse Engineering Suite * - * Copyright (C) 2014 Kalen 'Konloch' Kinloch - http://bytecodeviewer.com * + * 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 * 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 31c57d4a..e599dd6c 100644 --- a/src/main/java/the/bytecode/club/bytecodeviewer/obfuscators/RenameFields.java +++ b/src/main/java/the/bytecode/club/bytecodeviewer/obfuscators/RenameFields.java @@ -7,7 +7,7 @@ import the.bytecode.club.bytecodeviewer.api.ASMResourceUtil; /*************************************************************************** * Bytecode Viewer (BCV) - Java & Android Reverse Engineering Suite * - * Copyright (C) 2014 Kalen 'Konloch' Kinloch - http://bytecodeviewer.com * + * 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 * 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 899d6966..8583d798 100644 --- a/src/main/java/the/bytecode/club/bytecodeviewer/obfuscators/RenameMethods.java +++ b/src/main/java/the/bytecode/club/bytecodeviewer/obfuscators/RenameMethods.java @@ -8,7 +8,7 @@ import the.bytecode.club.bytecodeviewer.api.ASMResourceUtil; /*************************************************************************** * Bytecode Viewer (BCV) - Java & Android Reverse Engineering Suite * - * Copyright (C) 2014 Kalen 'Konloch' Kinloch - http://bytecodeviewer.com * + * 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 * 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 f739753d..2712a152 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 @@ -8,7 +8,7 @@ import the.bytecode.club.bytecodeviewer.obfuscators.mapping.data.MethodMappingDa /*************************************************************************** * Bytecode Viewer (BCV) - Java & Android Reverse Engineering Suite * - * Copyright (C) 2014 Kalen 'Konloch' Kinloch - http://bytecodeviewer.com * + * 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 * 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 6a97d8b2..53986ad5 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 @@ -10,7 +10,7 @@ import the.bytecode.club.bytecodeviewer.obfuscators.mapping.data.MethodMappingDa /*************************************************************************** * Bytecode Viewer (BCV) - Java & Android Reverse Engineering Suite * - * Copyright (C) 2014 Kalen 'Konloch' Kinloch - http://bytecodeviewer.com * + * 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 * 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 8261b2f6..ef6b28b5 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 @@ -7,7 +7,7 @@ import the.bytecode.club.bytecodeviewer.BytecodeViewer; /*************************************************************************** * Bytecode Viewer (BCV) - Java & Android Reverse Engineering Suite * - * Copyright (C) 2014 Kalen 'Konloch' Kinloch - http://bytecodeviewer.com * + * 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 * 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 e658ac45..9308f7c0 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 @@ -2,7 +2,7 @@ package the.bytecode.club.bytecodeviewer.obfuscators.mapping.data; /*************************************************************************** * Bytecode Viewer (BCV) - Java & Android Reverse Engineering Suite * - * Copyright (C) 2014 Kalen 'Konloch' Kinloch - http://bytecodeviewer.com * + * 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 * 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 0108047f..e69965f3 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 @@ -2,7 +2,7 @@ package the.bytecode.club.bytecodeviewer.obfuscators.mapping.data; /*************************************************************************** * Bytecode Viewer (BCV) - Java & Android Reverse Engineering Suite * - * Copyright (C) 2014 Kalen 'Konloch' Kinloch - http://bytecodeviewer.com * + * 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 * 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 db30fffc..ffc2f2d4 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 @@ -2,7 +2,7 @@ package the.bytecode.club.bytecodeviewer.obfuscators.mapping.data; /*************************************************************************** * Bytecode Viewer (BCV) - Java & Android Reverse Engineering Suite * - * Copyright (C) 2014 Kalen 'Konloch' Kinloch - http://bytecodeviewer.com * + * 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 * 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 673dc245..1ca1e838 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 @@ -10,7 +10,7 @@ import the.bytecode.club.bytecodeviewer.obfuscators.mapping.data.MappingData; /*************************************************************************** * Bytecode Viewer (BCV) - Java & Android Reverse Engineering Suite * - * Copyright (C) 2014 Kalen 'Konloch' Kinloch - http://bytecodeviewer.com * + * 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 * 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 83f85f11..e4ac55e8 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 @@ -10,7 +10,7 @@ import the.bytecode.club.bytecodeviewer.obfuscators.mapping.data.MappingData; /*************************************************************************** * Bytecode Viewer (BCV) - Java & Android Reverse Engineering Suite * - * Copyright (C) 2014 Kalen 'Konloch' Kinloch - http://bytecodeviewer.com * + * 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 * 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 3bd3c0e7..aeea2fa7 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 @@ -11,7 +11,7 @@ import the.bytecode.club.bytecodeviewer.obfuscators.mapping.data.MethodMappingDa /*************************************************************************** * Bytecode Viewer (BCV) - Java & Android Reverse Engineering Suite * - * Copyright (C) 2014 Kalen 'Konloch' Kinloch - http://bytecodeviewer.com * + * 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 * 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 ed648c7c..e015697e 100644 --- a/src/main/java/the/bytecode/club/bytecodeviewer/plugin/PluginLaunchStrategy.java +++ b/src/main/java/the/bytecode/club/bytecodeviewer/plugin/PluginLaunchStrategy.java @@ -5,7 +5,7 @@ import the.bytecode.club.bytecodeviewer.api.Plugin; /*************************************************************************** * Bytecode Viewer (BCV) - Java & Android Reverse Engineering Suite * - * Copyright (C) 2014 Kalen 'Konloch' Kinloch - http://bytecodeviewer.com * + * 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 * 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 e2745660..39376f04 100644 --- a/src/main/java/the/bytecode/club/bytecodeviewer/plugin/PluginManager.java +++ b/src/main/java/the/bytecode/club/bytecodeviewer/plugin/PluginManager.java @@ -25,7 +25,7 @@ import the.bytecode.club.bytecodeviewer.util.MiscUtils; /*************************************************************************** * Bytecode Viewer (BCV) - Java & Android Reverse Engineering Suite * - * Copyright (C) 2014 Kalen 'Konloch' Kinloch - http://bytecodeviewer.com * + * 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 * 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 ec67bb18..208a1941 100644 --- a/src/main/java/the/bytecode/club/bytecodeviewer/plugin/PluginTemplate.java +++ b/src/main/java/the/bytecode/club/bytecodeviewer/plugin/PluginTemplate.java @@ -8,7 +8,7 @@ import the.bytecode.club.bytecodeviewer.resources.Resource; /*************************************************************************** * Bytecode Viewer (BCV) - Java & Android Reverse Engineering Suite * - * Copyright (C) 2014 Kalen 'Konloch' Kinloch - http://bytecodeviewer.com * + * 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 * 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 558f546f..1b5d11ba 100644 --- a/src/main/java/the/bytecode/club/bytecodeviewer/plugin/PluginWriter.java +++ b/src/main/java/the/bytecode/club/bytecodeviewer/plugin/PluginWriter.java @@ -35,7 +35,7 @@ import static the.bytecode.club.bytecodeviewer.Settings.addRecentPlugin; /*************************************************************************** * Bytecode Viewer (BCV) - Java & Android Reverse Engineering Suite * - * Copyright (C) 2014 Kalen 'Konloch' Kinloch - http://bytecodeviewer.com * + * 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 * 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 cb570d02..46a71832 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 @@ -29,7 +29,7 @@ import static the.bytecode.club.bytecodeviewer.Constants.nl; /*************************************************************************** * Bytecode Viewer (BCV) - Java & Android Reverse Engineering Suite * - * Copyright (C) 2014 Kalen 'Konloch' Kinloch - http://bytecodeviewer.com * + * 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 * 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 0f8afaf6..8e8b182b 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 @@ -20,7 +20,7 @@ import the.bytecode.club.bytecodeviewer.translation.TranslatedStrings; /*************************************************************************** * Bytecode Viewer (BCV) - Java & Android Reverse Engineering Suite * - * Copyright (C) 2014 Kalen 'Konloch' Kinloch - http://bytecodeviewer.com * + * 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 * 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 e7699572..5b6a2a15 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 @@ -22,7 +22,7 @@ import static the.bytecode.club.bytecodeviewer.Constants.nl; /*************************************************************************** * Bytecode Viewer (BCV) - Java & Android Reverse Engineering Suite * - * Copyright (C) 2014 Kalen 'Konloch' Kinloch - http://bytecodeviewer.com * + * 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 * 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 4e4b901f..14473510 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 @@ -12,7 +12,7 @@ import the.bytecode.club.bytecodeviewer.malwarescanner.util.MaliciousCodeOptions /*************************************************************************** * Bytecode Viewer (BCV) - Java & Android Reverse Engineering Suite * - * Copyright (C) 2014 Kalen 'Konloch' Kinloch - http://bytecodeviewer.com * + * 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 * 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 5fce5ce8..5f742de9 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 @@ -12,7 +12,7 @@ import the.bytecode.club.bytecodeviewer.api.PluginConsole; /*************************************************************************** * Bytecode Viewer (BCV) - Java & Android Reverse Engineering Suite * - * Copyright (C) 2014 Kalen 'Konloch' Kinloch - http://bytecodeviewer.com * + * 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 * 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 49c7708e..c95876af 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 @@ -14,7 +14,7 @@ import static the.bytecode.club.bytecodeviewer.Constants.nl; /*************************************************************************** * Bytecode Viewer (BCV) - Java & Android Reverse Engineering Suite * - * Copyright (C) 2014 Kalen 'Konloch' Kinloch - http://bytecodeviewer.com * + * 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 * 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 de4a58c6..4b97e0d6 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 @@ -9,7 +9,7 @@ import the.bytecode.club.bytecodeviewer.api.PluginConsole; /*************************************************************************** * Bytecode Viewer (BCV) - Java & Android Reverse Engineering Suite * - * Copyright (C) 2014 Kalen 'Konloch' Kinloch - http://bytecodeviewer.com * + * 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 * 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 e218c82c..1e7c26fe 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 @@ -7,7 +7,7 @@ import the.bytecode.club.bytecodeviewer.api.Plugin; /*************************************************************************** * Bytecode Viewer (BCV) - Java & Android Reverse Engineering Suite * - * Copyright (C) 2014 Kalen 'Konloch' Kinloch - http://bytecodeviewer.com * + * 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 * 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 790aaa1b..0a1f3d65 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 @@ -15,7 +15,7 @@ import static the.bytecode.club.bytecodeviewer.Constants.nl; /*************************************************************************** * Bytecode Viewer (BCV) - Java & Android Reverse Engineering Suite * - * Copyright (C) 2014 Kalen 'Konloch' Kinloch - http://bytecodeviewer.com * + * 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 * 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 fb6a08a6..530e0687 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 @@ -15,7 +15,7 @@ import the.bytecode.club.bytecodeviewer.util.MiscUtils; /*************************************************************************** * Bytecode Viewer (BCV) - Java & Android Reverse Engineering Suite * - * Copyright (C) 2014 Kalen 'Konloch' Kinloch - http://bytecodeviewer.com * + * 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 * 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 039b00b7..a889f830 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 @@ -10,7 +10,7 @@ import the.bytecode.club.bytecodeviewer.plugin.PluginLaunchStrategy; /*************************************************************************** * Bytecode Viewer (BCV) - Java & Android Reverse Engineering Suite * - * Copyright (C) 2014 Kalen 'Konloch' Kinloch - http://bytecodeviewer.com * + * 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 * 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 b2da658c..6cb04b61 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 @@ -7,7 +7,7 @@ import the.bytecode.club.bytecodeviewer.plugin.PluginLaunchStrategy; /*************************************************************************** * Bytecode Viewer (BCV) - Java & Android Reverse Engineering Suite * - * Copyright (C) 2014 Kalen 'Konloch' Kinloch - http://bytecodeviewer.com * + * 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 * 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 dbc390c5..f108a1a8 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 @@ -17,7 +17,7 @@ import the.bytecode.club.bytecodeviewer.plugin.PluginLaunchStrategy; /*************************************************************************** * Bytecode Viewer (BCV) - Java & Android Reverse Engineering Suite * - * Copyright (C) 2014 Kalen 'Konloch' Kinloch - http://bytecodeviewer.com * + * 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 * 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 c71fad55..cebab142 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 @@ -10,7 +10,7 @@ import the.bytecode.club.bytecodeviewer.plugin.PluginLaunchStrategy; /*************************************************************************** * Bytecode Viewer (BCV) - Java & Android Reverse Engineering Suite * - * Copyright (C) 2014 Kalen 'Konloch' Kinloch - http://bytecodeviewer.com * + * 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 * 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 8325b4c5..41b221f5 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 @@ -10,7 +10,7 @@ import the.bytecode.club.bytecodeviewer.plugin.PluginLaunchStrategy; /*************************************************************************** * Bytecode Viewer (BCV) - Java & Android Reverse Engineering Suite * - * Copyright (C) 2014 Kalen 'Konloch' Kinloch - http://bytecodeviewer.com * + * 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 * 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 367812af..d17cfff4 100644 --- a/src/main/java/the/bytecode/club/bytecodeviewer/resources/ExternalResources.java +++ b/src/main/java/the/bytecode/club/bytecodeviewer/resources/ExternalResources.java @@ -21,7 +21,7 @@ import static the.bytecode.club.bytecodeviewer.Constants.nl; /*************************************************************************** * Bytecode Viewer (BCV) - Java & Android Reverse Engineering Suite * - * Copyright (C) 2014 Kalen 'Konloch' Kinloch - http://bytecodeviewer.com * + * 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 * 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 b17d6484..c9bf588d 100644 --- a/src/main/java/the/bytecode/club/bytecodeviewer/resources/IconResources.java +++ b/src/main/java/the/bytecode/club/bytecodeviewer/resources/IconResources.java @@ -16,7 +16,7 @@ import the.bytecode.club.bytecodeviewer.BytecodeViewer; /*************************************************************************** * Bytecode Viewer (BCV) - Java & Android Reverse Engineering Suite * - * Copyright (C) 2014 Kalen 'Konloch' Kinloch - http://bytecodeviewer.com * + * 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 * 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 6b7a2a45..e0c9bc6d 100644 --- a/src/main/java/the/bytecode/club/bytecodeviewer/resources/Resource.java +++ b/src/main/java/the/bytecode/club/bytecodeviewer/resources/Resource.java @@ -9,7 +9,7 @@ import java.nio.charset.StandardCharsets; /*************************************************************************** * Bytecode Viewer (BCV) - Java & Android Reverse Engineering Suite * - * Copyright (C) 2014 Kalen 'Konloch' Kinloch - http://bytecodeviewer.com * + * 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 * 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 21cabe57..4dfcbe33 100644 --- a/src/main/java/the/bytecode/club/bytecodeviewer/resources/ResourceContainer.java +++ b/src/main/java/the/bytecode/club/bytecodeviewer/resources/ResourceContainer.java @@ -11,7 +11,7 @@ import the.bytecode.club.bytecodeviewer.util.LazyNameUtil; /*************************************************************************** * Bytecode Viewer (BCV) - Java & Android Reverse Engineering Suite * - * Copyright (C) 2014 Kalen 'Konloch' Kinloch - http://bytecodeviewer.com * + * 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 * 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 b873250a..a90e8b1a 100644 --- a/src/main/java/the/bytecode/club/bytecodeviewer/resources/ResourceContainerImporter.java +++ b/src/main/java/the/bytecode/club/bytecodeviewer/resources/ResourceContainerImporter.java @@ -16,7 +16,7 @@ import the.bytecode.club.bytecodeviewer.util.MiscUtils; /*************************************************************************** * Bytecode Viewer (BCV) - Java & Android Reverse Engineering Suite * - * Copyright (C) 2014 Kalen 'Konloch' Kinloch - http://bytecodeviewer.com * + * 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 * 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 fbe04e5f..7c17d0ea 100644 --- a/src/main/java/the/bytecode/club/bytecodeviewer/resources/ResourceDecompiling.java +++ b/src/main/java/the/bytecode/club/bytecodeviewer/resources/ResourceDecompiling.java @@ -21,7 +21,7 @@ import static the.bytecode.club.bytecodeviewer.Constants.tempDirectory; /*************************************************************************** * Bytecode Viewer (BCV) - Java & Android Reverse Engineering Suite * - * Copyright (C) 2014 Kalen 'Konloch' Kinloch - http://bytecodeviewer.com * + * 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 * 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 dd02c3b4..57c3ba7e 100644 --- a/src/main/java/the/bytecode/club/bytecodeviewer/resources/ResourceType.java +++ b/src/main/java/the/bytecode/club/bytecodeviewer/resources/ResourceType.java @@ -6,7 +6,7 @@ import javax.swing.*; /*************************************************************************** * Bytecode Viewer (BCV) - Java & Android Reverse Engineering Suite * - * Copyright (C) 2014 Kalen 'Konloch' Kinloch - http://bytecodeviewer.com * + * 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 * 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 6be95a8b..b957c0f2 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 @@ -7,7 +7,7 @@ import the.bytecode.club.bytecodeviewer.resources.exporting.impl.ZipExport; /*************************************************************************** * Bytecode Viewer (BCV) - Java & Android Reverse Engineering Suite * - * Copyright (C) 2014 Kalen 'Konloch' Kinloch - http://bytecodeviewer.com * + * 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 * 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 927ea0ac..98f64ef7 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 @@ -2,7 +2,7 @@ package the.bytecode.club.bytecodeviewer.resources.exporting; /*************************************************************************** * Bytecode Viewer (BCV) - Java & Android Reverse Engineering Suite * - * Copyright (C) 2014 Kalen 'Konloch' Kinloch - http://bytecodeviewer.com * + * 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 * 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 1285bbad..aa839fe3 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 @@ -21,7 +21,7 @@ import static the.bytecode.club.bytecodeviewer.Constants.tempDirectory; /*************************************************************************** * Bytecode Viewer (BCV) - Java & Android Reverse Engineering Suite * - * Copyright (C) 2014 Kalen 'Konloch' Kinloch - http://bytecodeviewer.com * + * 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 * 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 8850cbca..fa0d3b11 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 @@ -16,7 +16,7 @@ import static the.bytecode.club.bytecodeviewer.Constants.tempDirectory; /*************************************************************************** * Bytecode Viewer (BCV) - Java & Android Reverse Engineering Suite * - * Copyright (C) 2014 Kalen 'Konloch' Kinloch - http://bytecodeviewer.com * + * 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 * 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 64ecf79d..4fd06b88 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 @@ -11,7 +11,7 @@ import the.bytecode.club.bytecodeviewer.util.DialogUtils; /*************************************************************************** * Bytecode Viewer (BCV) - Java & Android Reverse Engineering Suite * - * Copyright (C) 2014 Kalen 'Konloch' Kinloch - http://bytecodeviewer.com * + * 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 * 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 40bf6cc6..1033c08f 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 @@ -12,7 +12,7 @@ import the.bytecode.club.bytecodeviewer.util.MiscUtils; /*************************************************************************** * Bytecode Viewer (BCV) - Java & Android Reverse Engineering Suite * - * Copyright (C) 2014 Kalen 'Konloch' Kinloch - http://bytecodeviewer.com * + * 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 * 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 27bd4986..e89916e3 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 @@ -11,7 +11,7 @@ import the.bytecode.club.bytecodeviewer.resources.importing.impl.ZipResourceImpo /*************************************************************************** * Bytecode Viewer (BCV) - Java & Android Reverse Engineering Suite * - * Copyright (C) 2014 Kalen 'Konloch' Kinloch - http://bytecodeviewer.com * + * 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 * 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 4f87a817..710f8cc2 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 @@ -7,7 +7,7 @@ import the.bytecode.club.bytecodeviewer.Settings; /*************************************************************************** * Bytecode Viewer (BCV) - Java & Android Reverse Engineering Suite * - * Copyright (C) 2014 Kalen 'Konloch' Kinloch - http://bytecodeviewer.com * + * 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 * 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 e6404731..898912ca 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 @@ -4,7 +4,7 @@ import java.io.File; /*************************************************************************** * Bytecode Viewer (BCV) - Java & Android Reverse Engineering Suite * - * Copyright (C) 2014 Kalen 'Konloch' Kinloch - http://bytecodeviewer.com * + * 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 * 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 415191fc..e0e96842 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 @@ -17,7 +17,7 @@ import static the.bytecode.club.bytecodeviewer.Constants.tempDirectory; /*************************************************************************** * Bytecode Viewer (BCV) - Java & Android Reverse Engineering Suite * - * Copyright (C) 2014 Kalen 'Konloch' Kinloch - http://bytecodeviewer.com * + * 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 * 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 e3e53fe2..64d76c69 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 @@ -13,7 +13,7 @@ import the.bytecode.club.bytecodeviewer.util.MiscUtils; /*************************************************************************** * Bytecode Viewer (BCV) - Java & Android Reverse Engineering Suite * - * Copyright (C) 2014 Kalen 'Konloch' Kinloch - http://bytecodeviewer.com * + * 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 * 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 1d5b77ff..3a01d67f 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 @@ -15,7 +15,7 @@ import static the.bytecode.club.bytecodeviewer.Constants.tempDirectory; /*************************************************************************** * Bytecode Viewer (BCV) - Java & Android Reverse Engineering Suite * - * Copyright (C) 2014 Kalen 'Konloch' Kinloch - http://bytecodeviewer.com * + * 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 * 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 3a83ed4a..dcc6a4d4 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 @@ -19,7 +19,7 @@ import the.bytecode.club.bytecodeviewer.util.MiscUtils; /*************************************************************************** * Bytecode Viewer (BCV) - Java & Android Reverse Engineering Suite * - * Copyright (C) 2014 Kalen 'Konloch' Kinloch - http://bytecodeviewer.com * + * 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 * 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 006b9453..ed2fbaa3 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 @@ -8,7 +8,7 @@ import the.bytecode.club.bytecodeviewer.resources.importing.Importer; /*************************************************************************** * Bytecode Viewer (BCV) - Java & Android Reverse Engineering Suite * - * Copyright (C) 2014 Kalen 'Konloch' Kinloch - http://bytecodeviewer.com * + * 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 * 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 109c6e98..af3c2efa 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 @@ -23,7 +23,7 @@ import static the.bytecode.club.bytecodeviewer.Constants.tempDirectory; /*************************************************************************** * Bytecode Viewer (BCV) - Java & Android Reverse Engineering Suite * - * Copyright (C) 2014 Kalen 'Konloch' Kinloch - http://bytecodeviewer.com * + * 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 * 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 d9c11eb4..f1c4d9bc 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 @@ -8,7 +8,7 @@ import the.bytecode.club.bytecodeviewer.resources.importing.Importer; /*************************************************************************** * Bytecode Viewer (BCV) - Java & Android Reverse Engineering Suite * - * Copyright (C) 2014 Kalen 'Konloch' Kinloch - http://bytecodeviewer.com * + * 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 * 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 55523703..1b510a4e 100644 --- a/src/main/java/the/bytecode/club/bytecodeviewer/searching/BackgroundSearchThread.java +++ b/src/main/java/the/bytecode/club/bytecodeviewer/searching/BackgroundSearchThread.java @@ -4,7 +4,7 @@ import the.bytecode.club.bytecodeviewer.BytecodeViewer; /*************************************************************************** * Bytecode Viewer (BCV) - Java & Android Reverse Engineering Suite * - * Copyright (C) 2014 Kalen 'Konloch' Kinloch - http://bytecodeviewer.com * + * 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 * 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 22b25218..39adaa61 100644 --- a/src/main/java/the/bytecode/club/bytecodeviewer/searching/EnterKeyEvent.java +++ b/src/main/java/the/bytecode/club/bytecodeviewer/searching/EnterKeyEvent.java @@ -6,7 +6,7 @@ import the.bytecode.club.bytecodeviewer.BytecodeViewer; /*************************************************************************** * Bytecode Viewer (BCV) - Java & Android Reverse Engineering Suite * - * Copyright (C) 2014 Kalen 'Konloch' Kinloch - http://bytecodeviewer.com * + * 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 * 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 67f36d16..16565d6e 100644 --- a/src/main/java/the/bytecode/club/bytecodeviewer/searching/LDCSearchTreeNodeResult.java +++ b/src/main/java/the/bytecode/club/bytecodeviewer/searching/LDCSearchTreeNodeResult.java @@ -8,7 +8,7 @@ import the.bytecode.club.bytecodeviewer.resources.ResourceContainer; /*************************************************************************** * Bytecode Viewer (BCV) - Java & Android Reverse Engineering Suite * - * Copyright (C) 2014 Kalen 'Konloch' Kinloch - http://bytecodeviewer.com * + * 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 * 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 6a0738c3..7f38a3b4 100644 --- a/src/main/java/the/bytecode/club/bytecodeviewer/searching/RegexInsnFinder.java +++ b/src/main/java/the/bytecode/club/bytecodeviewer/searching/RegexInsnFinder.java @@ -22,7 +22,7 @@ import the.bytecode.club.bytecodeviewer.BytecodeViewer; /*************************************************************************** * Bytecode Viewer (BCV) - Java & Android Reverse Engineering Suite * - * Copyright (C) 2014 Kalen 'Konloch' Kinloch - http://bytecodeviewer.com * + * 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 * 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 28cd030e..45246dda 100644 --- a/src/main/java/the/bytecode/club/bytecodeviewer/searching/SearchPanel.java +++ b/src/main/java/the/bytecode/club/bytecodeviewer/searching/SearchPanel.java @@ -6,7 +6,7 @@ import the.bytecode.club.bytecodeviewer.resources.ResourceContainer; /*************************************************************************** * Bytecode Viewer (BCV) - Java & Android Reverse Engineering Suite * - * Copyright (C) 2014 Kalen 'Konloch' Kinloch - http://bytecodeviewer.com * + * 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 * 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 74a59e02..dbad22ac 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 @@ -10,7 +10,7 @@ import the.bytecode.club.bytecodeviewer.resources.ResourceContainer; /*************************************************************************** * Bytecode Viewer (BCV) - Java & Android Reverse Engineering Suite * - * Copyright (C) 2014 Kalen 'Konloch' Kinloch - http://bytecodeviewer.com * + * 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 * 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 f9142a08..bc8f1f2d 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 @@ -21,7 +21,7 @@ import the.bytecode.club.bytecodeviewer.translation.components.TranslatedJLabel; /*************************************************************************** * Bytecode Viewer (BCV) - Java & Android Reverse Engineering Suite * - * Copyright (C) 2014 Kalen 'Konloch' Kinloch - http://bytecodeviewer.com * + * 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 * 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 51ad75ca..02eb4fac 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 @@ -19,7 +19,7 @@ import java.util.List; /*************************************************************************** * Bytecode Viewer (BCV) - Java & Android Reverse Engineering Suite * - * Copyright (C) 2014 Kalen 'Konloch' Kinloch - http://bytecodeviewer.com * + * 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 * 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 4bf79271..26ffa6a1 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 @@ -22,7 +22,7 @@ import the.bytecode.club.bytecodeviewer.translation.components.TranslatedJLabel; /*************************************************************************** * Bytecode Viewer (BCV) - Java & Android Reverse Engineering Suite * - * Copyright (C) 2014 Kalen 'Konloch' Kinloch - http://bytecodeviewer.com * + * 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 * 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 5ede7454..43afa10a 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 @@ -22,7 +22,7 @@ import static the.bytecode.club.bytecodeviewer.searching.RegexInsnFinder.process /*************************************************************************** * Bytecode Viewer (BCV) - Java & Android Reverse Engineering Suite * - * Copyright (C) 2014 Kalen 'Konloch' Kinloch - http://bytecodeviewer.com * + * 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 * 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 03ee1035..b95769e0 100644 --- a/src/main/java/the/bytecode/club/bytecodeviewer/translation/Language.java +++ b/src/main/java/the/bytecode/club/bytecodeviewer/translation/Language.java @@ -18,7 +18,7 @@ import the.bytecode.club.bytecodeviewer.resources.Resource; /*************************************************************************** * Bytecode Viewer (BCV) - Java & Android Reverse Engineering Suite * - * Copyright (C) 2014 Kalen 'Konloch' Kinloch - http://bytecodeviewer.com * + * 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 * 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 e67ccb02..e4784348 100644 --- a/src/main/java/the/bytecode/club/bytecodeviewer/translation/TranslatedComponentReference.java +++ b/src/main/java/the/bytecode/club/bytecodeviewer/translation/TranslatedComponentReference.java @@ -5,7 +5,7 @@ import java.util.List; /*************************************************************************** * Bytecode Viewer (BCV) - Java & Android Reverse Engineering Suite * - * Copyright (C) 2014 Kalen 'Konloch' Kinloch - http://bytecodeviewer.com * + * 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 * 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 e5b42d1b..9bbebf6c 100644 --- a/src/main/java/the/bytecode/club/bytecodeviewer/translation/TranslatedComponents.java +++ b/src/main/java/the/bytecode/club/bytecodeviewer/translation/TranslatedComponents.java @@ -2,7 +2,7 @@ package the.bytecode.club.bytecodeviewer.translation; /*************************************************************************** * Bytecode Viewer (BCV) - Java & Android Reverse Engineering Suite * - * Copyright (C) 2014 Kalen 'Konloch' Kinloch - http://bytecodeviewer.com * + * 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 * 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 504cce63..dba96134 100644 --- a/src/main/java/the/bytecode/club/bytecodeviewer/translation/TranslatedStrings.java +++ b/src/main/java/the/bytecode/club/bytecodeviewer/translation/TranslatedStrings.java @@ -7,7 +7,7 @@ import the.bytecode.club.bytecodeviewer.api.BCV; /*************************************************************************** * Bytecode Viewer (BCV) - Java & Android Reverse Engineering Suite * - * Copyright (C) 2014 Kalen 'Konloch' Kinloch - http://bytecodeviewer.com * + * 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 * 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 b35c3d42..0f0a0bb8 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 @@ -7,7 +7,7 @@ import the.bytecode.club.bytecodeviewer.translation.TranslatedComponents; /*************************************************************************** * Bytecode Viewer (BCV) - Java & Android Reverse Engineering Suite * - * Copyright (C) 2014 Kalen 'Konloch' Kinloch - http://bytecodeviewer.com * + * 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 * 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 f01dd1aa..db7bee55 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 @@ -6,7 +6,7 @@ import the.bytecode.club.bytecodeviewer.translation.TranslatedComponents; /*************************************************************************** * Bytecode Viewer (BCV) - Java & Android Reverse Engineering Suite * - * Copyright (C) 2014 Kalen 'Konloch' Kinloch - http://bytecodeviewer.com * + * 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 * 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 b04bb11e..27b1c5a1 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 @@ -6,7 +6,7 @@ import the.bytecode.club.bytecodeviewer.translation.TranslatedComponents; /*************************************************************************** * Bytecode Viewer (BCV) - Java & Android Reverse Engineering Suite * - * Copyright (C) 2014 Kalen 'Konloch' Kinloch - http://bytecodeviewer.com * + * 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 * 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 40e149de..5b5489e7 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 @@ -6,7 +6,7 @@ import the.bytecode.club.bytecodeviewer.translation.TranslatedComponents; /*************************************************************************** * Bytecode Viewer (BCV) - Java & Android Reverse Engineering Suite * - * Copyright (C) 2014 Kalen 'Konloch' Kinloch - http://bytecodeviewer.com * + * 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 * 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 ac17284a..7fe38534 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 @@ -6,7 +6,7 @@ import the.bytecode.club.bytecodeviewer.translation.TranslatedComponents; /*************************************************************************** * Bytecode Viewer (BCV) - Java & Android Reverse Engineering Suite * - * Copyright (C) 2014 Kalen 'Konloch' Kinloch - http://bytecodeviewer.com * + * 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 * 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 66d26b6c..5e5d23ea 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 @@ -6,7 +6,7 @@ import the.bytecode.club.bytecodeviewer.translation.TranslatedComponents; /*************************************************************************** * Bytecode Viewer (BCV) - Java & Android Reverse Engineering Suite * - * Copyright (C) 2014 Kalen 'Konloch' Kinloch - http://bytecodeviewer.com * + * 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 * 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 b38fde11..979dc279 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 @@ -6,7 +6,7 @@ import the.bytecode.club.bytecodeviewer.translation.TranslatedComponents; /*************************************************************************** * Bytecode Viewer (BCV) - Java & Android Reverse Engineering Suite * - * Copyright (C) 2014 Kalen 'Konloch' Kinloch - http://bytecodeviewer.com * + * 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 * 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 4683cf29..3c954654 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 @@ -6,7 +6,7 @@ import the.bytecode.club.bytecodeviewer.translation.TranslatedComponents; /*************************************************************************** * Bytecode Viewer (BCV) - Java & Android Reverse Engineering Suite * - * Copyright (C) 2014 Kalen 'Konloch' Kinloch - http://bytecodeviewer.com * + * 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 * 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 6f16c4b7..9eb9fd0a 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 @@ -6,7 +6,7 @@ import the.bytecode.club.bytecodeviewer.translation.TranslatedComponents; /*************************************************************************** * Bytecode Viewer (BCV) - Java & Android Reverse Engineering Suite * - * Copyright (C) 2014 Kalen 'Konloch' Kinloch - http://bytecodeviewer.com * + * 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 * 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 a9ffbc58..95c576b4 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 @@ -6,7 +6,7 @@ import the.bytecode.club.bytecodeviewer.translation.TranslatedComponents; /*************************************************************************** * Bytecode Viewer (BCV) - Java & Android Reverse Engineering Suite * - * Copyright (C) 2014 Kalen 'Konloch' Kinloch - http://bytecodeviewer.com * + * 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 * 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 96084dd4..662440b8 100644 --- a/src/main/java/the/bytecode/club/bytecodeviewer/util/APKTool.java +++ b/src/main/java/the/bytecode/club/bytecodeviewer/util/APKTool.java @@ -10,7 +10,7 @@ import static the.bytecode.club.bytecodeviewer.Constants.tempDirectory; /*************************************************************************** * Bytecode Viewer (BCV) - Java & Android Reverse Engineering Suite * - * Copyright (C) 2014 Kalen 'Konloch' Kinloch - http://bytecodeviewer.com * + * 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 * 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 ad89b081..47e5304e 100644 --- a/src/main/java/the/bytecode/club/bytecodeviewer/util/BootCheck.java +++ b/src/main/java/the/bytecode/club/bytecodeviewer/util/BootCheck.java @@ -15,7 +15,7 @@ import static the.bytecode.club.bytecodeviewer.Constants.nl; /*************************************************************************** * Bytecode Viewer (BCV) - Java & Android Reverse Engineering Suite * - * Copyright (C) 2014 Kalen 'Konloch' Kinloch - http://bytecodeviewer.com * + * 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 * 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 546660b0..475e7498 100644 --- a/src/main/java/the/bytecode/club/bytecodeviewer/util/ClassFileUtils.java +++ b/src/main/java/the/bytecode/club/bytecodeviewer/util/ClassFileUtils.java @@ -7,7 +7,7 @@ import java.util.Objects; /*************************************************************************** * Bytecode Viewer (BCV) - Java & Android Reverse Engineering Suite * - * Copyright (C) 2014 Kalen 'Konloch' Kinloch - http://bytecodeviewer.com * + * 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 * 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 a6f6b9ff..69e195b8 100644 --- a/src/main/java/the/bytecode/club/bytecodeviewer/util/Dex2Jar.java +++ b/src/main/java/the/bytecode/club/bytecodeviewer/util/Dex2Jar.java @@ -12,7 +12,7 @@ import the.bytecode.club.bytecodeviewer.BytecodeViewer; /*************************************************************************** * Bytecode Viewer (BCV) - Java & Android Reverse Engineering Suite * - * Copyright (C) 2014 Kalen 'Konloch' Kinloch - http://bytecodeviewer.com * + * 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 * 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 0784169b..987bf5d9 100644 --- a/src/main/java/the/bytecode/club/bytecodeviewer/util/DialogUtils.java +++ b/src/main/java/the/bytecode/club/bytecodeviewer/util/DialogUtils.java @@ -16,7 +16,7 @@ import static the.bytecode.club.bytecodeviewer.gui.components.FileChooser.EVERYT /*************************************************************************** * Bytecode Viewer (BCV) - Java & Android Reverse Engineering Suite * - * Copyright (C) 2014 Kalen 'Konloch' Kinloch - http://bytecodeviewer.com * + * 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 * 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 009a5d9d..544a1b72 100644 --- a/src/main/java/the/bytecode/club/bytecodeviewer/util/EncodeUtils.java +++ b/src/main/java/the/bytecode/club/bytecodeviewer/util/EncodeUtils.java @@ -8,7 +8,7 @@ import org.apache.commons.lang3.StringUtils; /*************************************************************************** * Bytecode Viewer (BCV) - Java & Android Reverse Engineering Suite * - * Copyright (C) 2014 Kalen 'Konloch' Kinloch - http://bytecodeviewer.com * + * 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 * 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 318f96f0..3196458d 100644 --- a/src/main/java/the/bytecode/club/bytecodeviewer/util/Enjarify.java +++ b/src/main/java/the/bytecode/club/bytecodeviewer/util/Enjarify.java @@ -10,7 +10,7 @@ import static the.bytecode.club.bytecodeviewer.Constants.enjarifyWorkingDirector /*************************************************************************** * Bytecode Viewer (BCV) - Java & Android Reverse Engineering Suite * - * Copyright (C) 2014 Kalen 'Konloch' Kinloch - http://bytecodeviewer.com * + * 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 * 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 a22504b2..1c1e9a28 100644 --- a/src/main/java/the/bytecode/club/bytecodeviewer/util/FileDrop.java +++ b/src/main/java/the/bytecode/club/bytecodeviewer/util/FileDrop.java @@ -24,7 +24,7 @@ import the.bytecode.club.bytecodeviewer.BytecodeViewer; /*************************************************************************** * Bytecode Viewer (BCV) - Java & Android Reverse Engineering Suite * - * Copyright (C) 2014 Kalen 'Konloch' Kinloch - http://bytecodeviewer.com * + * 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 * 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 cc305ec9..6abc3433 100644 --- a/src/main/java/the/bytecode/club/bytecodeviewer/util/FileHeaderUtils.java +++ b/src/main/java/the/bytecode/club/bytecodeviewer/util/FileHeaderUtils.java @@ -2,6 +2,24 @@ 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 * + * * + * 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 8/21/2024 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 69f19457..287bfc9c 100644 --- a/src/main/java/the/bytecode/club/bytecodeviewer/util/JTextAreaUtils.java +++ b/src/main/java/the/bytecode/club/bytecodeviewer/util/JTextAreaUtils.java @@ -9,7 +9,7 @@ import the.bytecode.club.bytecodeviewer.BytecodeViewer; /*************************************************************************** * Bytecode Viewer (BCV) - Java & Android Reverse Engineering Suite * - * Copyright (C) 2014 Kalen 'Konloch' Kinloch - http://bytecodeviewer.com * + * 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 * 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 2ba21133..078a0a01 100644 --- a/src/main/java/the/bytecode/club/bytecodeviewer/util/JarUtils.java +++ b/src/main/java/the/bytecode/club/bytecodeviewer/util/JarUtils.java @@ -30,7 +30,7 @@ import static the.bytecode.club.bytecodeviewer.Constants.fs; /*************************************************************************** * Bytecode Viewer (BCV) - Java & Android Reverse Engineering Suite * - * Copyright (C) 2014 Kalen 'Konloch' Kinloch - http://bytecodeviewer.com * + * 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 * 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 e8edeb5d..e5047ba7 100644 --- a/src/main/java/the/bytecode/club/bytecodeviewer/util/KeyEventDispatch.java +++ b/src/main/java/the/bytecode/club/bytecodeviewer/util/KeyEventDispatch.java @@ -7,7 +7,7 @@ import the.bytecode.club.bytecodeviewer.gui.components.SearchableRSyntaxTextArea /*************************************************************************** * Bytecode Viewer (BCV) - Java & Android Reverse Engineering Suite * - * Copyright (C) 2014 Kalen 'Konloch' Kinloch - http://bytecodeviewer.com * + * 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 * 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 3331ebc4..36aa1b3c 100644 --- a/src/main/java/the/bytecode/club/bytecodeviewer/util/LazyNameUtil.java +++ b/src/main/java/the/bytecode/club/bytecodeviewer/util/LazyNameUtil.java @@ -7,7 +7,7 @@ import org.apache.commons.lang3.StringUtils; /*************************************************************************** * Bytecode Viewer (BCV) - Java & Android Reverse Engineering Suite * - * Copyright (C) 2014 Kalen 'Konloch' Kinloch - http://bytecodeviewer.com * + * 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 * 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 253bbf66..3c028383 100644 --- a/src/main/java/the/bytecode/club/bytecodeviewer/util/MethodParser.java +++ b/src/main/java/the/bytecode/club/bytecodeviewer/util/MethodParser.java @@ -8,7 +8,7 @@ import java.util.regex.Pattern; /*************************************************************************** * Bytecode Viewer (BCV) - Java & Android Reverse Engineering Suite * - * Copyright (C) 2014 Kalen 'Konloch' Kinloch - http://bytecodeviewer.com * + * 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 * 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 c5c4b46a..16222705 100644 --- a/src/main/java/the/bytecode/club/bytecodeviewer/util/MiscUtils.java +++ b/src/main/java/the/bytecode/club/bytecodeviewer/util/MiscUtils.java @@ -28,7 +28,7 @@ import static the.bytecode.club.bytecodeviewer.BytecodeViewer.gson; /*************************************************************************** * Bytecode Viewer (BCV) - Java & Android Reverse Engineering Suite * - * Copyright (C) 2014 Kalen 'Konloch' Kinloch - http://bytecodeviewer.com * + * 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 * 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 9e03fc66..203d3069 100644 --- a/src/main/java/the/bytecode/club/bytecodeviewer/util/NewlineOutputStream.java +++ b/src/main/java/the/bytecode/club/bytecodeviewer/util/NewlineOutputStream.java @@ -8,7 +8,7 @@ import org.jetbrains.annotations.NotNull; /*************************************************************************** * Bytecode Viewer (BCV) - Java & Android Reverse Engineering Suite * - * Copyright (C) 2014 Kalen 'Konloch' Kinloch - http://bytecodeviewer.com * + * 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 * 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 5176bf8d..81bb6936 100644 --- a/src/main/java/the/bytecode/club/bytecodeviewer/util/PingBack.java +++ b/src/main/java/the/bytecode/club/bytecodeviewer/util/PingBack.java @@ -6,7 +6,7 @@ import the.bytecode.club.bytecodeviewer.Configuration; /*************************************************************************** * Bytecode Viewer (BCV) - Java & Android Reverse Engineering Suite * - * Copyright (C) 2014 Kalen 'Konloch' Kinloch - http://bytecodeviewer.com * + * 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 * 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 9e9b9283..4fee9bf6 100644 --- a/src/main/java/the/bytecode/club/bytecodeviewer/util/SecurityMan.java +++ b/src/main/java/the/bytecode/club/bytecodeviewer/util/SecurityMan.java @@ -21,7 +21,7 @@ import the.bytecode.club.bytecodeviewer.resources.ExternalResources; /*************************************************************************** * Bytecode Viewer (BCV) - Java & Android Reverse Engineering Suite * - * Copyright (C) 2014 Kalen 'Konloch' Kinloch - http://bytecodeviewer.com * + * 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 * 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 4dc64c73..c2baa191 100644 --- a/src/main/java/the/bytecode/club/bytecodeviewer/util/SeqAndCount.java +++ b/src/main/java/the/bytecode/club/bytecodeviewer/util/SeqAndCount.java @@ -2,7 +2,7 @@ package the.bytecode.club.bytecodeviewer.util; /*************************************************************************** * Bytecode Viewer (BCV) - Java & Android Reverse Engineering Suite * - * Copyright (C) 2014 Kalen 'Konloch' Kinloch - http://bytecodeviewer.com * + * 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 * 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 5072d982..a9c6009d 100644 --- a/src/main/java/the/bytecode/club/bytecodeviewer/util/SyntaxLanguage.java +++ b/src/main/java/the/bytecode/club/bytecodeviewer/util/SyntaxLanguage.java @@ -8,7 +8,7 @@ import org.fife.ui.rsyntaxtextarea.SyntaxConstants; /*************************************************************************** * Bytecode Viewer (BCV) - Java & Android Reverse Engineering Suite * - * Copyright (C) 2014 Kalen 'Konloch' Kinloch - http://bytecodeviewer.com * + * 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 * 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 c985ae52..a5d03aee 100644 --- a/src/main/java/the/bytecode/club/bytecodeviewer/util/WindowClosingAdapter.java +++ b/src/main/java/the/bytecode/club/bytecodeviewer/util/WindowClosingAdapter.java @@ -6,7 +6,7 @@ import the.bytecode.club.bytecodeviewer.Configuration; /*************************************************************************** * Bytecode Viewer (BCV) - Java & Android Reverse Engineering Suite * - * Copyright (C) 2014 Kalen 'Konloch' Kinloch - http://bytecodeviewer.com * + * 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 * 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 052ab90f..b4560f9c 100644 --- a/src/main/java/the/bytecode/club/bytecodeviewer/util/WindowStateChangeAdapter.java +++ b/src/main/java/the/bytecode/club/bytecodeviewer/util/WindowStateChangeAdapter.java @@ -7,7 +7,7 @@ import the.bytecode.club.bytecodeviewer.gui.MainViewerGUI; /*************************************************************************** * Bytecode Viewer (BCV) - Java & Android Reverse Engineering Suite * - * Copyright (C) 2014 Kalen 'Konloch' Kinloch - http://bytecodeviewer.com * + * 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 * 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 9b28af92..a9571d24 100644 --- a/src/main/java/the/bytecode/club/bytecodeviewer/util/ZipUtils.java +++ b/src/main/java/the/bytecode/club/bytecodeviewer/util/ZipUtils.java @@ -14,7 +14,7 @@ import java.util.zip.ZipOutputStream; /*************************************************************************** * Bytecode Viewer (BCV) - Java & Android Reverse Engineering Suite * - * Copyright (C) 2014 Kalen 'Konloch' Kinloch - http://bytecodeviewer.com * + * 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 * From 4e433000eb9bfcacd440d7f7e003d00c80bf000e Mon Sep 17 00:00:00 2001 From: Konloch Date: Wed, 21 Aug 2024 10:06:21 -0600 Subject: [PATCH 07/26] General Refactoring --- .../the/bytecode/club/bytecodeviewer/BytecodeViewer.java | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/src/main/java/the/bytecode/club/bytecodeviewer/BytecodeViewer.java b/src/main/java/the/bytecode/club/bytecodeviewer/BytecodeViewer.java index 11cdeb91..2c146c6a 100644 --- a/src/main/java/the/bytecode/club/bytecodeviewer/BytecodeViewer.java +++ b/src/main/java/the/bytecode/club/bytecodeviewer/BytecodeViewer.java @@ -291,10 +291,9 @@ public class BytecodeViewer viewer.requestFocus(); //open files from launch args - if (!cli) - if (launchArgs.length >= 1) - for (String s : launchArgs) - openFiles(new File[]{new File(s)}, true); + if (!cli && launchArgs.length >= 1) + for (String s : launchArgs) + openFiles(new File[]{new File(s)}, true); } /** From 16c2eef1d9baced5e63f4219f9c78a1817e2319e Mon Sep 17 00:00:00 2001 From: Konloch Date: Wed, 21 Aug 2024 10:28:03 -0600 Subject: [PATCH 08/26] Adjusted CLI Startup Banner --- .../the/bytecode/club/bytecodeviewer/BytecodeViewer.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/main/java/the/bytecode/club/bytecodeviewer/BytecodeViewer.java b/src/main/java/the/bytecode/club/bytecodeviewer/BytecodeViewer.java index 2c146c6a..ad526070 100644 --- a/src/main/java/the/bytecode/club/bytecodeviewer/BytecodeViewer.java +++ b/src/main/java/the/bytecode/club/bytecodeviewer/BytecodeViewer.java @@ -168,13 +168,13 @@ public class BytecodeViewer { launchArgs = args; - //welcome message + //CLI startup banner System.out.print("Bytecode Viewer " + VERSION); + if (FAT_JAR) System.out.print(" [Fat Jar]"); - System.out.println(" - Created by @Konloch"); - System.out.println("https://bytecodeviewer.com - https://the.bytecode.club"); + System.out.println(" - https://bytecodeviewer.com\r\nCreated by @Konloch - https://konloch.com\r\nPresented by https://the.bytecode.club"); // Set the security manager try { From b5c87e4eef2bb8c8abd2b9885d31961733e35e14 Mon Sep 17 00:00:00 2001 From: Konloch Date: Wed, 21 Aug 2024 10:36:26 -0600 Subject: [PATCH 09/26] General Refactoring --- .../bytecodeviewer/api/ASMResourceUtil.java | 2 +- .../bytecode/club/bytecodeviewer/api/BCV.java | 2 +- .../resourceviewer/viewer/ClassViewer.java | 84 ++++++++++++------- .../viewer/ComponentViewer.java | 3 +- 4 files changed, 57 insertions(+), 34 deletions(-) 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 ed492e13..c5b11beb 100644 --- a/src/main/java/the/bytecode/club/bytecodeviewer/api/ASMResourceUtil.java +++ b/src/main/java/the/bytecode/club/bytecodeviewer/api/ASMResourceUtil.java @@ -38,7 +38,7 @@ import the.bytecode.club.bytecodeviewer.BytecodeViewer; public final class ASMResourceUtil { /** - * Attempts to a method main inside of the loaded resources and returns the fully qualified name + * Attempts to a method main inside the loaded resources and returns the fully qualified name */ public static String findMainMethod(String defaultFQN) { 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 0e48c6ac..39d0e106 100644 --- a/src/main/java/the/bytecode/club/bytecodeviewer/api/BCV.java +++ b/src/main/java/the/bytecode/club/bytecodeviewer/api/BCV.java @@ -60,7 +60,7 @@ public class BCV /** * Grab the loader instance * - * @return + * @return the static ClassNodeLoader instance */ public static ClassNodeLoader getClassNodeLoader() { return loader; 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 aa583557..8c053135 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 @@ -154,38 +154,46 @@ public class ClassViewer extends ResourceViewer } } - public void setPanes() { + public void setPanes() + { bytecodeViewPanel1.decompiler = BytecodeViewer.viewer.viewPane1.getSelectedDecompiler(); bytecodeViewPanel2.decompiler = BytecodeViewer.viewer.viewPane2.getSelectedDecompiler(); bytecodeViewPanel3.decompiler = BytecodeViewer.viewer.viewPane3.getSelectedDecompiler(); } - public boolean isPanel1Editable() { + public boolean isPanel1Editable() + { setPanes(); return BytecodeViewer.viewer.viewPane1.isPaneEditable(); } - public boolean isPanel2Editable() { + public boolean isPanel2Editable() + { setPanes(); return BytecodeViewer.viewer.viewPane2.isPaneEditable(); } - public boolean isPanel3Editable() { + public boolean isPanel3Editable() + { setPanes(); return BytecodeViewer.viewer.viewPane3.isPaneEditable(); } - public static void selectMethod(RSyntaxTextArea area, int methodLine) { - if (methodLine != area.getCaretLineNumber()) { + public static void selectMethod(RSyntaxTextArea area, int methodLine) + { + if (methodLine != area.getCaretLineNumber()) + { setCaretLine(area, methodLine); setViewLine(area, methodLine); } } - public static void selectMethod(ClassViewer classViewer, int paneId, Method method) { + public static void selectMethod(ClassViewer classViewer, int paneId, Method method) + { RSyntaxTextArea area = null; - switch (paneId) { + switch (paneId) + { case 0: area = classViewer.bytecodeViewPanel1.updateThread.updateUpdaterTextArea; break; @@ -197,11 +205,14 @@ public class ClassViewer extends ResourceViewer break; } - if (area != null) { + if (area != null) + { MethodParser methods = classViewer.methods.get(paneId); - if (methods != null) { + if (methods != null) + { int methodLine = methods.findMethod(method); - if (methodLine != -1) { + if (methodLine != -1) + { selectMethod(area, methodLine); } } @@ -261,27 +272,31 @@ public class ClassViewer extends ResourceViewer { sp.setResizeWeight(0.5); - if (bytecodeViewPanel2.decompiler != Decompiler.NONE && bytecodeViewPanel1.decompiler != Decompiler.NONE) { + if (bytecodeViewPanel2.decompiler != Decompiler.NONE && bytecodeViewPanel1.decompiler != Decompiler.NONE) setDividerLocation(sp, 0.5); - } else if (bytecodeViewPanel1.decompiler != Decompiler.NONE) { + else if (bytecodeViewPanel1.decompiler != Decompiler.NONE) setDividerLocation(sp, 1); - } else if (bytecodeViewPanel2.decompiler != Decompiler.NONE) { + else if (bytecodeViewPanel2.decompiler != Decompiler.NONE) + { sp.setResizeWeight(1); setDividerLocation(sp, 0); - } else { - setDividerLocation(sp, 0); } + else + setDividerLocation(sp, 0); - if (bytecodeViewPanel3.decompiler != Decompiler.NONE) { + if (bytecodeViewPanel3.decompiler != Decompiler.NONE) + { sp2.setResizeWeight(0.7); setDividerLocation(sp2, 0.7); if ((bytecodeViewPanel2.decompiler == Decompiler.NONE && bytecodeViewPanel1.decompiler != Decompiler.NONE) || (bytecodeViewPanel1.decompiler == Decompiler.NONE && bytecodeViewPanel2.decompiler != Decompiler.NONE)) { setDividerLocation(sp2, 0.5); - } else if (bytecodeViewPanel1.decompiler == Decompiler.NONE) { - setDividerLocation(sp2, 0); } - } else { + else if (bytecodeViewPanel1.decompiler == Decompiler.NONE) + setDividerLocation(sp2, 0); + } + else + { sp.setResizeWeight(1); sp2.setResizeWeight(0); setDividerLocation(sp2, 1); @@ -294,30 +309,39 @@ public class ClassViewer extends ResourceViewer */ public static JSplitPane setDividerLocation(JSplitPane splitter, double proportion) { - if (splitter.isShowing()) { - if (splitter.getWidth() > 0 && splitter.getHeight() > 0) { + if (splitter.isShowing()) + { + if (splitter.getWidth() > 0 && splitter.getHeight() > 0) splitter.setDividerLocation(proportion); - } else { - splitter.addComponentListener(new ComponentAdapter() { + else + { + splitter.addComponentListener(new ComponentAdapter() + { @Override - public void componentResized(ComponentEvent ce) { + public void componentResized(ComponentEvent ce) + { splitter.removeComponentListener(this); setDividerLocation(splitter, proportion); } }); } - } else { - splitter.addHierarchyListener(new HierarchyListener() { + } + else + { + splitter.addHierarchyListener(new HierarchyListener() + { @Override - public void hierarchyChanged(HierarchyEvent e) { - if ((e.getChangeFlags() & HierarchyEvent.SHOWING_CHANGED) != 0 - && splitter.isShowing()) { + public void hierarchyChanged(HierarchyEvent e) + { + if ((e.getChangeFlags() & HierarchyEvent.SHOWING_CHANGED) != 0 && splitter.isShowing()) + { splitter.removeHierarchyListener(this); setDividerLocation(splitter, proportion); } } }); } + return splitter; } 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 c570a9d9..659de792 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 @@ -51,8 +51,7 @@ public class ComponentViewer extends ResourceViewer { String workingName = containerName + title; ComponentViewer componentViewer = new ComponentViewer(title, c); - BytecodeViewer.viewer.workPane.addResourceToTab(componentViewer, - workingName, containerName, title); + BytecodeViewer.viewer.workPane.addResourceToTab(componentViewer, workingName, containerName, title); return componentViewer; } From 8875f96b976368171714cb9b044034870152ea72 Mon Sep 17 00:00:00 2001 From: Konloch Date: Wed, 21 Aug 2024 10:40:16 -0600 Subject: [PATCH 10/26] Refactoring Style Test --- .../resourceviewer/viewer/ClassViewer.java | 578 +++++++++--------- 1 file changed, 290 insertions(+), 288 deletions(-) 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 8c053135..768ab447 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,19 +1,5 @@ package the.bytecode.club.bytecodeviewer.gui.resourceviewer.viewer; -import java.awt.BorderLayout; -import java.awt.Container; -import java.awt.Point; -import java.awt.event.ComponentAdapter; -import java.awt.event.ComponentEvent; -import java.awt.event.HierarchyEvent; -import java.awt.event.HierarchyListener; -import java.util.Arrays; -import java.util.List; -import javax.swing.JButton; -import javax.swing.JSplitPane; -import javax.swing.JViewport; -import javax.swing.SwingUtilities; -import javax.swing.text.BadLocationException; import org.fife.ui.rsyntaxtextarea.RSyntaxTextArea; import the.bytecode.club.bytecodeviewer.BytecodeViewer; import the.bytecode.club.bytecodeviewer.Configuration; @@ -25,6 +11,16 @@ import the.bytecode.club.bytecodeviewer.resources.Resource; import the.bytecode.club.bytecodeviewer.resources.ResourceContainer; import the.bytecode.club.bytecodeviewer.util.MethodParser; +import javax.swing.*; +import javax.swing.text.BadLocationException; +import java.awt.*; +import java.awt.event.ComponentAdapter; +import java.awt.event.ComponentEvent; +import java.awt.event.HierarchyEvent; +import java.awt.event.HierarchyListener; +import java.util.Arrays; +import java.util.List; + import static the.bytecode.club.bytecodeviewer.util.MethodParser.Method; /*************************************************************************** @@ -55,295 +51,301 @@ import static the.bytecode.club.bytecodeviewer.util.MethodParser.Method; public class ClassViewer extends ResourceViewer { - public JSplitPane sp; - public JSplitPane sp2; - public BytecodeViewPanel bytecodeViewPanel1 = new BytecodeViewPanel(0, this); - public BytecodeViewPanel bytecodeViewPanel2 = new BytecodeViewPanel(1, this); - public BytecodeViewPanel bytecodeViewPanel3 = new BytecodeViewPanel(2, this); - - public List methods = Arrays.asList(new MethodParser(), new MethodParser(), new MethodParser()); - - public ClassViewer(ResourceContainer container, String name) - { - super(new Resource(name, container.getWorkingName(name), container)); - - this.setName(name); - this.setLayout(new BorderLayout()); - this.sp = new JSplitPane(JSplitPane.HORIZONTAL_SPLIT, bytecodeViewPanel1, bytecodeViewPanel2); - this.sp2 = new JSplitPane(JSplitPane.HORIZONTAL_SPLIT, sp, bytecodeViewPanel3); - this.add(sp2, BorderLayout.CENTER); - - this.addComponentListener(new ComponentAdapter() { - @Override - public void componentResized(ComponentEvent e) { - resetDivider(); - } - }); - } - - @Override - public void refresh(JButton button) - { - setPanes(); - refreshTitle(); - - bytecodeViewPanel1.createPane(this); - bytecodeViewPanel2.createPane(this); - bytecodeViewPanel3.createPane(this); - - byte[] classBytes = getResourceBytes(); - - //TODO remove this once all of the importers have been properly updated to use a FileContainerImporter - if(classBytes == null || classBytes.length == 0 || Configuration.forceResourceUpdateFromClassNode) - { - //TODO remove this error message when all of the importers have been updated - // only APK and DEX are left - if(!Configuration.forceResourceUpdateFromClassNode) - { - System.err.println("WARNING: Class Resource imported using the old importer!"); - System.err.println("TODO: Update it to use the FileContainerImporter"); - } - - classBytes = ASMUtil.nodeToBytes(resource.getResourceClassNode()); - } - - bytecodeViewPanel1.updatePane(this, classBytes, button, isPanel1Editable()); - bytecodeViewPanel2.updatePane(this, classBytes, button, isPanel2Editable()); - bytecodeViewPanel3.updatePane(this, classBytes, button, isPanel3Editable()); - - Thread dumpBuild = new Thread(() -> - { - BytecodeViewer.updateBusyStatus(true); - - while (Configuration.currentlyDumping) - { - //wait until it's not dumping - try { - Thread.sleep(100); - } catch (InterruptedException e) { - e.printStackTrace(); - } - } - - BytecodeViewer.updateBusyStatus(false); - - if (bytecodeViewPanel1.decompiler != Decompiler.NONE) - bytecodeViewPanel1.updateThread.startNewThread(); - if (bytecodeViewPanel2.decompiler != Decompiler.NONE) - bytecodeViewPanel2.updateThread.startNewThread(); - if (bytecodeViewPanel3.decompiler != Decompiler.NONE) - bytecodeViewPanel3.updateThread.startNewThread(); - }, "ClassViewer Temp Dump"); - dumpBuild.start(); - - if (isPanel1Editable() || isPanel2Editable() || isPanel3Editable()) - { - if (Configuration.warnForEditing) - return; - - Configuration.warnForEditing = true; - if (!BytecodeViewer.viewer.autoCompileOnRefresh.isSelected() - && !BytecodeViewer.viewer.compileOnSave.isSelected()) - { - BytecodeViewer.showMessage("Make sure to compile (File>Compile or Ctrl + T) whenever you want to " - + "test or export your changes.\nYou can set compile automatically on refresh or on save " - + "in the settings menu."); - - SettingsSerializer.saveSettingsAsync(); - } - } - } - - public void setPanes() - { - bytecodeViewPanel1.decompiler = BytecodeViewer.viewer.viewPane1.getSelectedDecompiler(); - bytecodeViewPanel2.decompiler = BytecodeViewer.viewer.viewPane2.getSelectedDecompiler(); - bytecodeViewPanel3.decompiler = BytecodeViewer.viewer.viewPane3.getSelectedDecompiler(); - } - - public boolean isPanel1Editable() - { - setPanes(); - return BytecodeViewer.viewer.viewPane1.isPaneEditable(); - } - - public boolean isPanel2Editable() - { - setPanes(); - return BytecodeViewer.viewer.viewPane2.isPaneEditable(); - } - - public boolean isPanel3Editable() - { - setPanes(); - return BytecodeViewer.viewer.viewPane3.isPaneEditable(); - } - - - public static void selectMethod(RSyntaxTextArea area, int methodLine) - { - if (methodLine != area.getCaretLineNumber()) + public JSplitPane sp; + public JSplitPane sp2; + public BytecodeViewPanel bytecodeViewPanel1 = new BytecodeViewPanel(0, this); + public BytecodeViewPanel bytecodeViewPanel2 = new BytecodeViewPanel(1, this); + public BytecodeViewPanel bytecodeViewPanel3 = new BytecodeViewPanel(2, this); + + public List methods = Arrays.asList(new MethodParser(), new MethodParser(), new MethodParser()); + + public ClassViewer(ResourceContainer container, String name) + { + super(new Resource(name, container.getWorkingName(name), container)); + + this.setName(name); + this.setLayout(new BorderLayout()); + this.sp = new JSplitPane(JSplitPane.HORIZONTAL_SPLIT, bytecodeViewPanel1, bytecodeViewPanel2); + this.sp2 = new JSplitPane(JSplitPane.HORIZONTAL_SPLIT, sp, bytecodeViewPanel3); + this.add(sp2, BorderLayout.CENTER); + + this.addComponentListener(new ComponentAdapter() { - setCaretLine(area, methodLine); - setViewLine(area, methodLine); - } - } - - public static void selectMethod(ClassViewer classViewer, int paneId, Method method) - { - RSyntaxTextArea area = null; - switch (paneId) - { - case 0: - area = classViewer.bytecodeViewPanel1.updateThread.updateUpdaterTextArea; - break; - case 1: - area = classViewer.bytecodeViewPanel2.updateThread.updateUpdaterTextArea; - break; - case 2: - area = classViewer.bytecodeViewPanel3.updateThread.updateUpdaterTextArea; - break; - } - - if (area != null) - { - MethodParser methods = classViewer.methods.get(paneId); - if (methods != null) + @Override + public void componentResized(ComponentEvent e) { - int methodLine = methods.findMethod(method); - if (methodLine != -1) + resetDivider(); + } + }); + } + + @Override + public void refresh(JButton button) + { + setPanes(); + refreshTitle(); + + bytecodeViewPanel1.createPane(this); + bytecodeViewPanel2.createPane(this); + bytecodeViewPanel3.createPane(this); + + byte[] classBytes = getResourceBytes(); + + //TODO remove this once all of the importers have been properly updated to use a FileContainerImporter + if (classBytes == null || classBytes.length == 0 || Configuration.forceResourceUpdateFromClassNode) + { + //TODO remove this error message when all of the importers have been updated + // only APK and DEX are left + if (!Configuration.forceResourceUpdateFromClassNode) + { + System.err.println("WARNING: Class Resource imported using the old importer!"); + System.err.println("TODO: Update it to use the FileContainerImporter"); + } + + classBytes = ASMUtil.nodeToBytes(resource.getResourceClassNode()); + } + + bytecodeViewPanel1.updatePane(this, classBytes, button, isPanel1Editable()); + bytecodeViewPanel2.updatePane(this, classBytes, button, isPanel2Editable()); + bytecodeViewPanel3.updatePane(this, classBytes, button, isPanel3Editable()); + + Thread dumpBuild = new Thread(() -> + { + BytecodeViewer.updateBusyStatus(true); + + while (Configuration.currentlyDumping) + { + //wait until it's not dumping + try { - selectMethod(area, methodLine); - } - } - } - } - - public static int getMaxViewLine(RSyntaxTextArea area) - { - Container parent = area.getParent(); - if (parent instanceof JViewport) - { - JViewport viewport = (JViewport) parent; - int y = viewport.getViewSize().height - viewport.getExtentSize().height; - int lineHeight = area.getLineHeight(); - return y >= lineHeight ? y / lineHeight : 0; - } - - return 0; - } - - public static int getViewLine(RSyntaxTextArea area) - { - Container parent = area.getParent(); - if (parent instanceof JViewport) - { - JViewport viewport = (JViewport) parent; - Point point = viewport.getViewPosition(); - int lineHeight = area.getLineHeight(); - return point.y >= lineHeight ? point.y / lineHeight : 0; - } - - return 0; - } - - public static void setViewLine(RSyntaxTextArea area, int line) - { - Container parent = area.getParent(); - if (parent instanceof JViewport) - { - JViewport viewport = (JViewport) parent; - int maxLine = ClassViewer.getMaxViewLine(area); - line = Math.min(line, maxLine); - viewport.setViewPosition(new Point(0, line * area.getLineHeight())); - } - } - - public static void setCaretLine(RSyntaxTextArea area, int line) - { - try { - area.setCaretPosition(area.getLineStartOffset(line)); - } catch (BadLocationException ignored) { } - } - - public void resetDivider() - { - SwingUtilities.invokeLater(() -> - { - sp.setResizeWeight(0.5); - - if (bytecodeViewPanel2.decompiler != Decompiler.NONE && bytecodeViewPanel1.decompiler != Decompiler.NONE) - setDividerLocation(sp, 0.5); - else if (bytecodeViewPanel1.decompiler != Decompiler.NONE) - setDividerLocation(sp, 1); + Thread.sleep(100); + } + catch (InterruptedException e) + { + e.printStackTrace(); + } + } + + BytecodeViewer.updateBusyStatus(false); + + if (bytecodeViewPanel1.decompiler != Decompiler.NONE) + bytecodeViewPanel1.updateThread.startNewThread(); + if (bytecodeViewPanel2.decompiler != Decompiler.NONE) + bytecodeViewPanel2.updateThread.startNewThread(); + if (bytecodeViewPanel3.decompiler != Decompiler.NONE) + bytecodeViewPanel3.updateThread.startNewThread(); + }, "ClassViewer Temp Dump"); + dumpBuild.start(); + + if (isPanel1Editable() || isPanel2Editable() || isPanel3Editable()) + { + if (Configuration.warnForEditing) + return; + + Configuration.warnForEditing = true; + if (!BytecodeViewer.viewer.autoCompileOnRefresh.isSelected() && !BytecodeViewer.viewer.compileOnSave.isSelected()) + { + BytecodeViewer.showMessage("Make sure to compile (File>Compile or Ctrl + T) whenever you want to " + "test or export your changes.\nYou can set compile automatically on refresh or on save " + "in the settings menu."); + + SettingsSerializer.saveSettingsAsync(); + } + } + } + + public void setPanes() + { + bytecodeViewPanel1.decompiler = BytecodeViewer.viewer.viewPane1.getSelectedDecompiler(); + bytecodeViewPanel2.decompiler = BytecodeViewer.viewer.viewPane2.getSelectedDecompiler(); + bytecodeViewPanel3.decompiler = BytecodeViewer.viewer.viewPane3.getSelectedDecompiler(); + } + + public boolean isPanel1Editable() + { + setPanes(); + return BytecodeViewer.viewer.viewPane1.isPaneEditable(); + } + + public boolean isPanel2Editable() + { + setPanes(); + return BytecodeViewer.viewer.viewPane2.isPaneEditable(); + } + + public boolean isPanel3Editable() + { + setPanes(); + return BytecodeViewer.viewer.viewPane3.isPaneEditable(); + } + + + public static void selectMethod(RSyntaxTextArea area, int methodLine) + { + if (methodLine != area.getCaretLineNumber()) + { + setCaretLine(area, methodLine); + setViewLine(area, methodLine); + } + } + + public static void selectMethod(ClassViewer classViewer, int paneId, Method method) + { + RSyntaxTextArea area = null; + switch (paneId) + { + case 0: + area = classViewer.bytecodeViewPanel1.updateThread.updateUpdaterTextArea; + break; + case 1: + area = classViewer.bytecodeViewPanel2.updateThread.updateUpdaterTextArea; + break; + case 2: + area = classViewer.bytecodeViewPanel3.updateThread.updateUpdaterTextArea; + break; + } + + if (area != null) + { + MethodParser methods = classViewer.methods.get(paneId); + if (methods != null) + { + int methodLine = methods.findMethod(method); + if (methodLine != -1) + { + selectMethod(area, methodLine); + } + } + } + } + + public static int getMaxViewLine(RSyntaxTextArea area) + { + Container parent = area.getParent(); + if (parent instanceof JViewport) + { + JViewport viewport = (JViewport) parent; + int y = viewport.getViewSize().height - viewport.getExtentSize().height; + int lineHeight = area.getLineHeight(); + return y >= lineHeight ? y / lineHeight : 0; + } + + return 0; + } + + public static int getViewLine(RSyntaxTextArea area) + { + Container parent = area.getParent(); + if (parent instanceof JViewport) + { + JViewport viewport = (JViewport) parent; + Point point = viewport.getViewPosition(); + int lineHeight = area.getLineHeight(); + return point.y >= lineHeight ? point.y / lineHeight : 0; + } + + return 0; + } + + public static void setViewLine(RSyntaxTextArea area, int line) + { + Container parent = area.getParent(); + if (parent instanceof JViewport) + { + JViewport viewport = (JViewport) parent; + int maxLine = ClassViewer.getMaxViewLine(area); + line = Math.min(line, maxLine); + viewport.setViewPosition(new Point(0, line * area.getLineHeight())); + } + } + + public static void setCaretLine(RSyntaxTextArea area, int line) + { + try + { + area.setCaretPosition(area.getLineStartOffset(line)); + } + catch (BadLocationException ignored) + { + } + } + + public void resetDivider() + { + SwingUtilities.invokeLater(() -> + { + sp.setResizeWeight(0.5); + + if (bytecodeViewPanel2.decompiler != Decompiler.NONE && bytecodeViewPanel1.decompiler != Decompiler.NONE) + setDividerLocation(sp, 0.5); + else if (bytecodeViewPanel1.decompiler != Decompiler.NONE) + setDividerLocation(sp, 1); else if (bytecodeViewPanel2.decompiler != Decompiler.NONE) { - sp.setResizeWeight(1); - setDividerLocation(sp, 0); - } + sp.setResizeWeight(1); + setDividerLocation(sp, 0); + } else - setDividerLocation(sp, 0); - - if (bytecodeViewPanel3.decompiler != Decompiler.NONE) + setDividerLocation(sp, 0); + + if (bytecodeViewPanel3.decompiler != Decompiler.NONE) { - sp2.setResizeWeight(0.7); - setDividerLocation(sp2, 0.7); - if ((bytecodeViewPanel2.decompiler == Decompiler.NONE && bytecodeViewPanel1.decompiler != Decompiler.NONE) - || (bytecodeViewPanel1.decompiler == Decompiler.NONE && bytecodeViewPanel2.decompiler != Decompiler.NONE)) { - setDividerLocation(sp2, 0.5); - } + sp2.setResizeWeight(0.7); + setDividerLocation(sp2, 0.7); + if ((bytecodeViewPanel2.decompiler == Decompiler.NONE && bytecodeViewPanel1.decompiler != Decompiler.NONE) || (bytecodeViewPanel1.decompiler == Decompiler.NONE && bytecodeViewPanel2.decompiler != Decompiler.NONE)) + { + setDividerLocation(sp2, 0.5); + } else if (bytecodeViewPanel1.decompiler == Decompiler.NONE) - setDividerLocation(sp2, 0); - } + setDividerLocation(sp2, 0); + } else { - sp.setResizeWeight(1); - sp2.setResizeWeight(0); - setDividerLocation(sp2, 1); - } - }); - } - - /** - * Whoever wrote this function, THANK YOU! - */ - public static JSplitPane setDividerLocation(JSplitPane splitter, double proportion) - { - if (splitter.isShowing()) + sp.setResizeWeight(1); + sp2.setResizeWeight(0); + setDividerLocation(sp2, 1); + } + }); + } + + /** + * Whoever wrote this function, THANK YOU! + */ + public static JSplitPane setDividerLocation(JSplitPane splitter, double proportion) + { + if (splitter.isShowing()) { - if (splitter.getWidth() > 0 && splitter.getHeight() > 0) - splitter.setDividerLocation(proportion); + if (splitter.getWidth() > 0 && splitter.getHeight() > 0) + splitter.setDividerLocation(proportion); else { - splitter.addComponentListener(new ComponentAdapter() - { - @Override - public void componentResized(ComponentEvent ce) - { - splitter.removeComponentListener(this); - setDividerLocation(splitter, proportion); - } - }); - } - } + splitter.addComponentListener(new ComponentAdapter() + { + @Override + public void componentResized(ComponentEvent ce) + { + splitter.removeComponentListener(this); + setDividerLocation(splitter, proportion); + } + }); + } + } else { - splitter.addHierarchyListener(new HierarchyListener() - { - @Override - public void hierarchyChanged(HierarchyEvent e) - { - if ((e.getChangeFlags() & HierarchyEvent.SHOWING_CHANGED) != 0 && splitter.isShowing()) + splitter.addHierarchyListener(new HierarchyListener() + { + @Override + public void hierarchyChanged(HierarchyEvent e) + { + if ((e.getChangeFlags() & HierarchyEvent.SHOWING_CHANGED) != 0 && splitter.isShowing()) { - splitter.removeHierarchyListener(this); - setDividerLocation(splitter, proportion); - } - } - }); - } + splitter.removeHierarchyListener(this); + setDividerLocation(splitter, proportion); + } + } + }); + } - return splitter; - } - - private static final long serialVersionUID = -8650495368920680024L; + return splitter; + } + + private static final long serialVersionUID = -8650495368920680024L; } From b1933d27609864205866ce78df7639bbc7c582c6 Mon Sep 17 00:00:00 2001 From: Konloch Date: Wed, 21 Aug 2024 11:35:07 -0600 Subject: [PATCH 11/26] 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; /** From 761ef12bdb6200476f7116daee321a9b7d323b1d Mon Sep 17 00:00:00 2001 From: Konloch Date: Wed, 21 Aug 2024 11:41:34 -0600 Subject: [PATCH 12/26] General Refactoring --- .../gui/resourceviewer/viewer/ClassViewer.java | 13 +++++++++---- .../club/uikit/tabpopup/ITabPopupEventListener.java | 2 +- .../tabpopup/ITabZeroComponentEventListener.java | 2 +- 3 files changed, 11 insertions(+), 6 deletions(-) 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 490c98d1..7595390c 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 @@ -130,11 +130,14 @@ public class ClassViewer extends ResourceViewer if (bytecodeViewPanel1.decompiler != Decompiler.NONE) bytecodeViewPanel1.updateThread.startNewThread(); + if (bytecodeViewPanel2.decompiler != Decompiler.NONE) bytecodeViewPanel2.updateThread.startNewThread(); + if (bytecodeViewPanel3.decompiler != Decompiler.NONE) bytecodeViewPanel3.updateThread.startNewThread(); }, "ClassViewer Temp Dump"); + dumpBuild.start(); if (isPanel1Editable() || isPanel2Editable() || isPanel3Editable()) @@ -195,9 +198,11 @@ public class ClassViewer extends ResourceViewer case 0: area = classViewer.bytecodeViewPanel1.updateThread.updateUpdaterTextArea; break; + case 1: area = classViewer.bytecodeViewPanel2.updateThread.updateUpdaterTextArea; break; + case 2: area = classViewer.bytecodeViewPanel3.updateThread.updateUpdaterTextArea; break; @@ -209,10 +214,9 @@ public class ClassViewer extends ResourceViewer if (methods != null) { int methodLine = methods.findMethod(method); + if (methodLine != -1) - { selectMethod(area, methodLine); - } } } } @@ -220,6 +224,7 @@ public class ClassViewer extends ResourceViewer public static int getMaxViewLine(RSyntaxTextArea area) { Container parent = area.getParent(); + if (parent instanceof JViewport) { JViewport viewport = (JViewport) parent; @@ -234,6 +239,7 @@ public class ClassViewer extends ResourceViewer public static int getViewLine(RSyntaxTextArea area) { Container parent = area.getParent(); + if (parent instanceof JViewport) { JViewport viewport = (JViewport) parent; @@ -248,6 +254,7 @@ public class ClassViewer extends ResourceViewer public static void setViewLine(RSyntaxTextArea area, int line) { Container parent = area.getParent(); + if (parent instanceof JViewport) { JViewport viewport = (JViewport) parent; @@ -291,9 +298,7 @@ public class ClassViewer extends ResourceViewer sp2.setResizeWeight(0.7); setDividerLocation(sp2, 0.7); if ((bytecodeViewPanel2.decompiler == Decompiler.NONE && bytecodeViewPanel1.decompiler != Decompiler.NONE) || (bytecodeViewPanel1.decompiler == Decompiler.NONE && bytecodeViewPanel2.decompiler != Decompiler.NONE)) - { setDividerLocation(sp2, 0.5); - } else if (bytecodeViewPanel1.decompiler == Decompiler.NONE) setDividerLocation(sp2, 0); } 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 bb792485..ca85b646 100644 --- a/src/main/java/the/bytecode/club/uikit/tabpopup/ITabPopupEventListener.java +++ b/src/main/java/the/bytecode/club/uikit/tabpopup/ITabPopupEventListener.java @@ -27,5 +27,5 @@ public interface ITabPopupEventListener { * @param index, index of tab * @param e */ - public void onTabPopupEvent(JTabbedPane tabbedPane, int index, TabPopupEvent e); + void onTabPopupEvent(JTabbedPane tabbedPane, int index, TabPopupEvent e); } 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 0a5020d1..added13d 100644 --- a/src/main/java/the/bytecode/club/uikit/tabpopup/ITabZeroComponentEventListener.java +++ b/src/main/java/the/bytecode/club/uikit/tabpopup/ITabZeroComponentEventListener.java @@ -25,5 +25,5 @@ public interface ITabZeroComponentEventListener { * * @param tabbedPane */ - public void onTabZeroComponent(JTabbedPane tabbedPane); + void onTabZeroComponent(JTabbedPane tabbedPane); } From 65d11ab47b09474d69daa6c7174be232ee48973b Mon Sep 17 00:00:00 2001 From: Konloch Date: Wed, 21 Aug 2024 11:42:46 -0600 Subject: [PATCH 13/26] General Refactoring --- .../bytecodeviewer/gui/resourceviewer/viewer/ClassViewer.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 7595390c..5da20851 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 @@ -56,7 +56,6 @@ public class ClassViewer extends ResourceViewer public BytecodeViewPanel bytecodeViewPanel1 = new BytecodeViewPanel(0, this); public BytecodeViewPanel bytecodeViewPanel2 = new BytecodeViewPanel(1, this); public BytecodeViewPanel bytecodeViewPanel3 = new BytecodeViewPanel(2, this); - public List methods = Arrays.asList(new MethodParser(), new MethodParser(), new MethodParser()); public ClassViewer(ResourceContainer container, String name) @@ -146,6 +145,7 @@ public class ClassViewer extends ResourceViewer return; Configuration.warnForEditing = true; + if (!BytecodeViewer.viewer.autoCompileOnRefresh.isSelected() && !BytecodeViewer.viewer.compileOnSave.isSelected()) { BytecodeViewer.showMessage("Make sure to compile (File>Compile or Ctrl + T) whenever you want to " + "test or export your changes.\nYou can set compile automatically on refresh or on save " + "in the settings menu."); From 77faf4254e70de5b20a802704ff9d905f1760a38 Mon Sep 17 00:00:00 2001 From: Konloch Date: Thu, 5 Sep 2024 17:50:48 -0600 Subject: [PATCH 14/26] Java Docs Cleanup --- .../java/the/bytecode/club/bytecodeviewer/bootloader/Boot.java | 2 +- .../club/bytecodeviewer/bootloader/InitialBootScreen.java | 2 +- .../club/bytecodeviewer/bootloader/classtree/ClassHelper.java | 2 +- .../club/bytecodeviewer/bootloader/classtree/ClassTree.java | 2 +- .../bootloader/classtree/nullpermablehashmap/NullCreator.java | 2 +- .../classtree/nullpermablehashmap/NullPermeableHashMap.java | 2 +- .../bootloader/classtree/nullpermablehashmap/SetCreator.java | 2 +- .../bootloader/classtree/nullpermablehashmap/ValueCreator.java | 2 +- .../bytecodeviewer/bootloader/loader/AbstractLoaderFactory.java | 2 +- .../club/bytecodeviewer/bootloader/loader/ClassPathLoader.java | 2 +- .../bytecode/club/bytecodeviewer/bootloader/loader/ILoader.java | 2 +- .../bytecodeviewer/bootloader/loader/LibraryClassLoader.java | 2 +- .../club/bytecodeviewer/bootloader/loader/LoaderFactory.java | 2 +- .../club/bytecodeviewer/bootloader/resource/DataContainer.java | 2 +- .../bootloader/resource/external/EmptyExternalResource.java | 2 +- .../bootloader/resource/external/ExternalLibrary.java | 2 +- .../bootloader/resource/external/ExternalResource.java | 2 +- .../club/bytecodeviewer/bootloader/resource/jar/JarInfo.java | 2 +- .../bytecodeviewer/bootloader/resource/jar/JarResource.java | 2 +- .../club/bytecodeviewer/bootloader/resource/jar/JarType.java | 2 +- .../bootloader/resource/jar/contents/JarContents.java | 2 +- .../bootloader/resource/jar/contents/LocateableJarContents.java | 2 +- .../club/bytecodeviewer/plugin/PluginLaunchStrategy.java | 2 +- .../plugin/strategies/CompiledJavaPluginLaunchStrategy.java | 2 +- .../plugin/strategies/GroovyPluginLaunchStrategy.java | 2 +- .../plugin/strategies/JavaPluginLaunchStrategy.java | 2 +- .../plugin/strategies/PythonPluginLaunchStrategy.java | 2 +- .../plugin/strategies/RubyPluginLaunchStrategy.java | 2 +- .../java/the/bytecode/club/bytecodeviewer/util/EncodeUtils.java | 2 +- 29 files changed, 29 insertions(+), 29 deletions(-) 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 b57db929..39ca0ad5 100644 --- a/src/main/java/the/bytecode/club/bytecodeviewer/bootloader/Boot.java +++ b/src/main/java/the/bytecode/club/bytecodeviewer/bootloader/Boot.java @@ -49,7 +49,7 @@ import static the.bytecode.club.bytecodeviewer.Constants.nl; /** * @author Konloch * @author Bibl (don't ban me pls) - * @created 19 Jul 2015 03:22:37 + * @since 19 Jul 2015 03:22:37 */ public class Boot { 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 1e033e00..203e788e 100644 --- a/src/main/java/the/bytecode/club/bytecodeviewer/bootloader/InitialBootScreen.java +++ b/src/main/java/the/bytecode/club/bytecodeviewer/bootloader/InitialBootScreen.java @@ -38,7 +38,7 @@ import static the.bytecode.club.bytecodeviewer.Configuration.language; /** * @author Konloch * @author Bibl (don't ban me pls) - * @created 19 Jul 2015 04:12:21 + * @since 19 Jul 2015 04:12:21 */ public class InitialBootScreen extends JFrame { 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 a2928ea2..0d7fd128 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 @@ -25,7 +25,7 @@ import org.objectweb.asm.tree.ClassNode; /** * @author Bibl (don't ban me pls) - * @created 25 May 2015 (actually before this) + * @since 25 May 2015 (actually before this) */ public class ClassHelper { 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 359461cd..c32f9782 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 @@ -34,7 +34,7 @@ import static the.bytecode.club.bytecodeviewer.bootloader.classtree.ClassHelper. /** * @author Bibl (don't ban me pls) - * @created 25 May 2015 (actually before this) + * @since 25 May 2015 (actually before this) */ public class ClassTree { private static final SetCreator SET_CREATOR = new SetCreator<>(); 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 1747ac3c..3bc9e2af 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 @@ -20,7 +20,7 @@ package the.bytecode.club.bytecodeviewer.bootloader.classtree.nullpermablehashma /** * @author Bibl (don't ban me pls) - * @created ages ago + * @since ages ago */ public class NullCreator implements ValueCreator { 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 ea4f35cc..e5833d86 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 @@ -22,7 +22,7 @@ import java.util.HashMap; /** * @author Bibl (don't ban me pls) - * @created ages ago + * @since ages ago */ public class NullPermeableHashMap extends HashMap { 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 19661c0b..603092b6 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 @@ -23,7 +23,7 @@ import java.util.Set; /** * @author Bibl (don't ban me pls) - * @created 25 May 2015 (actually before this) + * @since 25 May 2015 (actually before this) */ public class SetCreator implements ValueCreator> { 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 dec46f92..e062e76e 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 @@ -20,7 +20,7 @@ package the.bytecode.club.bytecodeviewer.bootloader.classtree.nullpermablehashma /** * @author Bibl (don't ban me pls) - * @created ages ago + * @since ages ago */ public interface ValueCreator { 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 71ca55b6..a16c0eb1 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 @@ -24,7 +24,7 @@ import the.bytecode.club.bytecodeviewer.bootloader.resource.external.ExternalRes /** * @author Bibl (don't ban me pls) - * @created 21 Jul 2015 00:18:07 + * @since 21 Jul 2015 00:18:07 */ public final class AbstractLoaderFactory { 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 600f1b88..e969770c 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 @@ -26,7 +26,7 @@ import the.bytecode.club.bytecodeviewer.bootloader.resource.external.ExternalRes /** * @author Bibl (don't ban me pls) - * @created 21 Jul 2015 00:09:53 + * @since 21 Jul 2015 00:09:53 */ public class ClassPathLoader implements ILoader { 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 e7520bc8..bab6b56d 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 @@ -22,7 +22,7 @@ import the.bytecode.club.bytecodeviewer.bootloader.resource.external.ExternalRes /** * @author Bibl (don't ban me pls) - * @created 19 Jul 2015 02:29:43 + * @since 19 Jul 2015 02:29:43 */ public interface ILoader { 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 3b807cfb..85998b0c 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 @@ -33,7 +33,7 @@ import the.bytecode.club.bytecodeviewer.bootloader.resource.jar.contents.JarCont /** * @author Bibl (don't ban me pls) - * @created 19 Jul 2015 02:48:41 + * @since 19 Jul 2015 02:48:41 * * TODO: Resource loading */ 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 12d57fb3..25edbe60 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 @@ -20,7 +20,7 @@ package the.bytecode.club.bytecodeviewer.bootloader.loader; /** * @author Bibl (don't ban me pls) - * @created 21 Jul 2015 00:14:53 + * @since 21 Jul 2015 00:14:53 */ public interface LoaderFactory { 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 3be53d05..d9f83e12 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 @@ -24,7 +24,7 @@ import java.util.Map; /** * @author Bibl (don't ban me pls) - * @created ages ago + * @since 21 Jul 2013 */ public abstract class DataContainer extends ArrayList { 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 b80da3f8..338ac8be 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 @@ -22,7 +22,7 @@ import java.net.URL; /** * @author Bibl (don't ban me pls) - * @created 21 Jul 2015 00:29:11 + * @since 21 Jul 2015 00:29:11 */ public class EmptyExternalResource extends ExternalResource { 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 b9e93abe..2dcd86e1 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 @@ -35,7 +35,7 @@ import the.bytecode.club.bytecodeviewer.bootloader.resource.jar.contents.JarCont /** * @author Bibl (don't ban me pls) - * @created 19 Jul 2015 02:33:23 + * @since 19 Jul 2015 02:33:23 */ public class ExternalLibrary extends ExternalResource> { 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 878f5e39..34995eb4 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 @@ -23,7 +23,7 @@ import java.net.URL; /** * @author Bibl (don't ban me pls) - * @created 19 Jul 2015 02:30:30 + * @since 19 Jul 2015 02:30:30 */ public abstract class ExternalResource { 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 2d1a3258..b4e9f528 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 @@ -27,7 +27,7 @@ import java.net.URL; * Holds information about a single local or external JarFile. * * @author Bibl - * @created ages ago + * @since 19 Jul 2013 */ public class JarInfo { 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 7658650f..21f788d9 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 @@ -22,7 +22,7 @@ import java.util.Arrays; /** * @author Bibl (don't ban me pls) - * @created ages ago + * @since 19 Jul 2013 */ public class JarResource { 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 5e4551cf..6983e27f 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 @@ -22,7 +22,7 @@ package the.bytecode.club.bytecodeviewer.bootloader.resource.jar; * Type of Jar Stored. * * @author Bibl - * @created ages ago + * @since 19 Jul 2013 */ public enum JarType { 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 de8676dd..5fdc2381 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 @@ -30,7 +30,7 @@ import the.bytecode.club.bytecodeviewer.bootloader.resource.jar.JarResource; /** * @author Bibl (don't ban me pls) - * @created ages ago + * @since 19 Jul 2013 */ public class JarContents { 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 4ee57453..209ebf2c 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 @@ -25,7 +25,7 @@ import the.bytecode.club.bytecodeviewer.bootloader.resource.jar.JarResource; /** * @author Bibl (don't ban me pls) - * @created ages ago + * @since 19 Jul 2013 */ public class LocateableJarContents extends JarContents { 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 6b4ac212..99377022 100644 --- a/src/main/java/the/bytecode/club/bytecodeviewer/plugin/PluginLaunchStrategy.java +++ b/src/main/java/the/bytecode/club/bytecodeviewer/plugin/PluginLaunchStrategy.java @@ -23,7 +23,7 @@ import the.bytecode.club.bytecodeviewer.api.Plugin; /** * @author Bibl (don't ban me pls) - * @created 1 Jun 2015 + * @since 1 Jun 2015 */ public interface PluginLaunchStrategy { 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 281a1318..b8b2147f 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 @@ -34,7 +34,7 @@ import the.bytecode.club.bytecodeviewer.util.MiscUtils; /** * @author Konloch * @author Bibl (don't ban me pls) - * @created 1 Jun 2015 + * @since 1 Jun 2015 */ public class CompiledJavaPluginLaunchStrategy implements PluginLaunchStrategy { 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 7f7b7c01..a01dad1a 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 @@ -29,7 +29,7 @@ import the.bytecode.club.bytecodeviewer.plugin.PluginLaunchStrategy; /** * @author Konloch * @author Bibl (don't ban me pls) - * @created 1 Jun 2015 + * @since 1 Jun 2015 */ public class GroovyPluginLaunchStrategy implements PluginLaunchStrategy { 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 8242b73c..11d4fa70 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 @@ -26,7 +26,7 @@ import the.bytecode.club.bytecodeviewer.plugin.PluginLaunchStrategy; /** * @author Konloch * @author Bibl (don't ban me pls) - * @created 1 Jun 2015 + * @since 1 Jun 2015 */ public class JavaPluginLaunchStrategy implements PluginLaunchStrategy 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 6e297d86..a093d779 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 @@ -29,7 +29,7 @@ import the.bytecode.club.bytecodeviewer.plugin.PluginLaunchStrategy; /** * @author Konloch * @author Bibl (don't ban me pls) - * @created 1 Jun 2015 + * @since 1 Jun 2015 */ public class PythonPluginLaunchStrategy implements PluginLaunchStrategy { 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 90e94d81..3e5aff69 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 @@ -29,7 +29,7 @@ import the.bytecode.club.bytecodeviewer.plugin.PluginLaunchStrategy; /** * @author Konloch * @author Bibl (don't ban me pls) - * @created 1 Jun 2015 + * @since 1 Jun 2015 */ public class RubyPluginLaunchStrategy implements PluginLaunchStrategy { 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 5c186927..de526d46 100644 --- a/src/main/java/the/bytecode/club/bytecodeviewer/util/EncodeUtils.java +++ b/src/main/java/the/bytecode/club/bytecodeviewer/util/EncodeUtils.java @@ -28,7 +28,7 @@ import org.apache.commons.lang3.StringUtils; * Encoding Convert Utils * * @author hupan - * @date 2019-11-19 14:29 + * @since 2019-11-19 14:29 */ public class EncodeUtils { From db26cd275838b0891118a949d5311983dcc63b56 Mon Sep 17 00:00:00 2001 From: Cody <6558800+Bl3nd@users.noreply.github.com> Date: Thu, 5 Sep 2024 17:51:09 -0600 Subject: [PATCH 15/26] Start of token parsing. --- pom.xml | 10 + .../gui/components/MyErrorStripe.java | 359 ++++ .../RSyntaxTextAreaHighlighterEx.java | 132 ++ .../resourceviewer/viewer/ClassViewer.java | 3 + .../gui/util/BytecodeViewPanelUpdater.java | 754 ++++---- .../classcontainer/ClassFileContainer.java | 92 + .../locations/ClassFieldLocation.java | 29 + .../locations/ClassLocalVariableLocation.java | 25 + .../locations/ClassMethodLocation.java | 25 + .../locations/ClassParameterLocation.java | 25 + .../classcontainer/parser/MyVoidVisitor.java | 1541 +++++++++++++++++ .../classcontainer/parser/TokenUtil.java | 28 + 12 files changed, 2707 insertions(+), 316 deletions(-) create mode 100644 src/main/java/the/bytecode/club/bytecodeviewer/gui/components/MyErrorStripe.java create mode 100644 src/main/java/the/bytecode/club/bytecodeviewer/gui/components/RSyntaxTextAreaHighlighterEx.java create mode 100644 src/main/java/the/bytecode/club/bytecodeviewer/resources/classcontainer/ClassFileContainer.java create mode 100644 src/main/java/the/bytecode/club/bytecodeviewer/resources/classcontainer/locations/ClassFieldLocation.java create mode 100644 src/main/java/the/bytecode/club/bytecodeviewer/resources/classcontainer/locations/ClassLocalVariableLocation.java create mode 100644 src/main/java/the/bytecode/club/bytecodeviewer/resources/classcontainer/locations/ClassMethodLocation.java create mode 100644 src/main/java/the/bytecode/club/bytecodeviewer/resources/classcontainer/locations/ClassParameterLocation.java create mode 100644 src/main/java/the/bytecode/club/bytecodeviewer/resources/classcontainer/parser/MyVoidVisitor.java create mode 100644 src/main/java/the/bytecode/club/bytecodeviewer/resources/classcontainer/parser/TokenUtil.java diff --git a/pom.xml b/pom.xml index 0a2add24..7e14e420 100644 --- a/pom.xml +++ b/pom.xml @@ -372,6 +372,16 @@ org.abego.treelayout.core ${treelayout.version} + + com.github.javaparser + javaparser-core + 3.26.1 + + + com.github.javaparser + javaparser-symbol-solver-core + 3.26.1 + 1.6.6bcv 3.4.1.3 21.2.0 - 3.3 + 3.4 0.2.1 0.6.0 - 3.4.0 + 3.5.1 2.1.1 - 2.0.12 - 3.0.5 + 2.0.16 + 3.0.8 1.34.1 1.0.3 a8f700b From e756324245cac09db300c967c30dcd17e9d78ef3 Mon Sep 17 00:00:00 2001 From: Cody <6558800+Bl3nd@users.noreply.github.com> Date: Mon, 16 Sep 2024 18:22:15 -0600 Subject: [PATCH 22/26] [Go-To] Move caret to requested field. - Also added enum constant declarations to the token parser. --- .../components/SearchableRSyntaxTextArea.java | 22 +- .../gui/components/actions/GoToAction.java | 97 ++- .../gui/resourceviewer/Workspace.java | 7 +- .../resourceviewer/viewer/ClassViewer.java | 617 +++++++++--------- .../gui/util/BytecodeViewPanelUpdater.java | 42 +- .../classcontainer/ClassFileContainer.java | 4 + .../classcontainer/parser/MyVoidVisitor.java | 27 + 7 files changed, 478 insertions(+), 338 deletions(-) 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 813ffd66..f093b811 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 @@ -30,9 +30,7 @@ import the.bytecode.club.bytecodeviewer.util.JTextAreaUtils; import javax.swing.*; import javax.swing.text.BadLocationException; import java.awt.*; -import java.awt.event.InputEvent; -import java.awt.event.KeyEvent; -import java.awt.event.MouseWheelEvent; +import java.awt.event.*; /** * Searching on an RSyntaxTextArea using swing highlighting @@ -87,6 +85,24 @@ public class SearchableRSyntaxTextArea extends RSyntaxTextArea GlobalHotKeys.keyPressed(keyEvent); })); + setCursor(new Cursor(Cursor.TEXT_CURSOR)); + getCaret().setBlinkRate(0); + getCaret().setVisible(true); + addFocusListener(new FocusAdapter() + { + @Override + public void focusGained(FocusEvent e) + { + getCaret().setVisible(true); + } + + @Override + public void focusLost(FocusEvent e) + { + getCaret().setVisible(true); + } + }); + final Font newFont = getFont().deriveFont((float) BytecodeViewer.viewer.getFontSize()); //set number-bar font diff --git a/src/main/java/the/bytecode/club/bytecodeviewer/gui/components/actions/GoToAction.java b/src/main/java/the/bytecode/club/bytecodeviewer/gui/components/actions/GoToAction.java index 07cb9e33..8fafc209 100644 --- a/src/main/java/the/bytecode/club/bytecodeviewer/gui/components/actions/GoToAction.java +++ b/src/main/java/the/bytecode/club/bytecodeviewer/gui/components/actions/GoToAction.java @@ -1,17 +1,20 @@ package the.bytecode.club.bytecodeviewer.gui.components.actions; import org.fife.ui.rsyntaxtextarea.RSyntaxTextArea; -import org.fife.ui.rsyntaxtextarea.Token; -import org.objectweb.asm.tree.ClassNode; import the.bytecode.club.bytecodeviewer.BytecodeViewer; +import the.bytecode.club.bytecodeviewer.gui.resourceviewer.BytecodeViewPanel; +import the.bytecode.club.bytecodeviewer.gui.resourceviewer.viewer.ClassViewer; +import the.bytecode.club.bytecodeviewer.gui.util.BytecodeViewPanelUpdater; import the.bytecode.club.bytecodeviewer.resources.ResourceContainer; import the.bytecode.club.bytecodeviewer.resources.classcontainer.ClassFileContainer; import the.bytecode.club.bytecodeviewer.resources.classcontainer.locations.ClassFieldLocation; -import the.bytecode.club.bytecodeviewer.resources.classcontainer.parser.TokenUtil; import javax.swing.*; +import javax.swing.event.CaretEvent; +import javax.swing.event.CaretListener; import javax.swing.text.Element; import java.awt.event.ActionEvent; +import java.util.HashMap; /** * Created by Bl3nd. @@ -36,20 +39,14 @@ public class GoToAction extends AbstractAction container.fieldMembers.values().forEach(fields -> fields.forEach(field -> { if (field.line == line && field.columnStart - 1 <= column && field.columnEnd >= column) { + Element root = textArea.getDocument().getDefaultRootElement(); // Open the class that is associated with the field's owner. if (!field.owner.equals(container.getName())) { - ResourceContainer resourceContainer = BytecodeViewer.getFileContainer(container.getParentContainer()); - if (resourceContainer != null) - { - String s = container.getImport(field.owner); - BytecodeViewer.viewer.workPane.addClassResource(resourceContainer, s + ".class"); - } - + openFieldClass(field, textArea); return; } - Element root = textArea.getDocument().getDefaultRootElement(); ClassFieldLocation first = fields.get(0); int startOffset = root.getElement(first.line - 1).getStartOffset() + (first.columnStart - 1); textArea.setCaretPosition(startOffset); @@ -100,4 +97,82 @@ public class GoToAction extends AbstractAction } })); } + + private void openFieldClass(ClassFieldLocation field, RSyntaxTextArea textArea) + { + String token = textArea.modelToToken(textArea.getCaretPosition()).getLexeme(); + ResourceContainer resourceContainer = BytecodeViewer.getFileContainer(container.getParentContainer()); + if (resourceContainer != null) + { + String s = container.getImport(field.owner); + BytecodeViewer.viewer.workPane.addClassResource(resourceContainer, s + ".class"); + ClassViewer activeResource = (ClassViewer) BytecodeViewer.viewer.workPane.getActiveResource(); + HashMap classFiles = BytecodeViewer.viewer.workPane.classFiles; + Thread thread = new Thread(() -> { + try + { + BytecodeViewer.updateBusyStatus(true); + Thread.sleep(1000); + } catch (InterruptedException e) + { + throw new RuntimeException(e); + } finally + { + BytecodeViewer.updateBusyStatus(false); + } + + String s2 = activeResource.resource.workingName + "-" + this.container.getDecompiler(); + ClassFileContainer classFileContainer = classFiles.get(s2); + classFileContainer.fieldMembers.forEach((field1, field2) -> { + if (field1.equals(token)) + { + field2.forEach(classFieldLocation -> { + if (classFieldLocation.type.equals("declaration")) + { + for (int i = 0; i < 3; i++) + { + BytecodeViewPanel panel = activeResource.getPanel(i); + if (panel.textArea != null) + { + if (panel.decompiler.getDecompilerName().equals(this.container.getDecompiler())) + { + Element root = panel.textArea.getDocument().getDefaultRootElement(); + int startOffset = root.getElement(classFieldLocation.line - 1).getStartOffset() + (classFieldLocation.columnStart - 1); + panel.textArea.setCaretPosition(startOffset); + for (CaretListener caretListener : panel.textArea.getCaretListeners()) + { + if (caretListener instanceof BytecodeViewPanelUpdater.MarkerCaretListener) + { + BytecodeViewPanelUpdater.MarkerCaretListener markerCaretListener = (BytecodeViewPanelUpdater.MarkerCaretListener) caretListener; + markerCaretListener.caretUpdate(new CaretEvent(panel.textArea) + { + @Override + public int getDot() + { + return panel.textArea.getCaret().getDot(); + } + + @Override + public int getMark() + { + return 0; + } + }); + } + } + + panel.textArea.requestFocusInWindow(); + + break; + } + } + } + } + }); + } + }); + }); + thread.start(); + } + } } 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 b25c3576..c513ab1b 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 @@ -24,6 +24,7 @@ import the.bytecode.club.bytecodeviewer.gui.resourceviewer.viewer.ClassViewer; import the.bytecode.club.bytecodeviewer.gui.resourceviewer.viewer.FileViewer; import the.bytecode.club.bytecodeviewer.gui.resourceviewer.viewer.ResourceViewer; import the.bytecode.club.bytecodeviewer.resources.ResourceContainer; +import the.bytecode.club.bytecodeviewer.resources.classcontainer.ClassFileContainer; import the.bytecode.club.bytecodeviewer.translation.TranslatedComponents; import the.bytecode.club.bytecodeviewer.translation.TranslatedStrings; import the.bytecode.club.bytecodeviewer.translation.components.TranslatedJButton; @@ -33,13 +34,10 @@ import the.bytecode.club.uikit.tabpopup.closer.PopupMenuTabsCloseConfiguration; import javax.swing.*; import java.awt.*; -import java.awt.event.MouseEvent; -import java.awt.event.MouseListener; +import java.util.HashMap; import java.util.HashSet; import java.util.Set; -import static the.bytecode.club.bytecodeviewer.Constants.BLOCK_TAB_MENU; - /** * This pane contains all the resources, as tabs. * @@ -54,6 +52,7 @@ public class Workspace extends TranslatedVisibleComponent { public final JPanel buttonPanel; public final JButton refreshClass; public final Set openedTabs = new HashSet<>(); + public HashMap classFiles = new HashMap<>(); public Workspace() { super("Workspace", TranslatedComponents.WORK_SPACE); 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 23c467d7..bd2d9115 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 @@ -27,7 +27,6 @@ import the.bytecode.club.bytecodeviewer.decompilers.Decompiler; import the.bytecode.club.bytecodeviewer.gui.resourceviewer.BytecodeViewPanel; import the.bytecode.club.bytecodeviewer.resources.Resource; import the.bytecode.club.bytecodeviewer.resources.ResourceContainer; -import the.bytecode.club.bytecodeviewer.resources.classcontainer.ClassFileContainer; import the.bytecode.club.bytecodeviewer.util.MethodParser; import javax.swing.*; @@ -38,7 +37,6 @@ import java.awt.event.ComponentEvent; import java.awt.event.HierarchyEvent; import java.awt.event.HierarchyListener; import java.util.Arrays; -import java.util.HashMap; import java.util.List; import static the.bytecode.club.bytecodeviewer.util.MethodParser.Method; @@ -53,307 +51,316 @@ import static the.bytecode.club.bytecodeviewer.util.MethodParser.Method; public class ClassViewer extends ResourceViewer { - public JSplitPane sp; - public JSplitPane sp2; - public BytecodeViewPanel bytecodeViewPanel1 = new BytecodeViewPanel(0, this); - public BytecodeViewPanel bytecodeViewPanel2 = new BytecodeViewPanel(1, this); - public BytecodeViewPanel bytecodeViewPanel3 = new BytecodeViewPanel(2, this); - public List methods = Arrays.asList(new MethodParser(), new MethodParser(), new MethodParser()); - public HashMap classFiles = new HashMap<>(); - - public ClassViewer(ResourceContainer container, String name) - { - super(new Resource(name, container.getWorkingName(name), container)); - - this.setName(name); - this.setLayout(new BorderLayout()); - this.sp = new JSplitPane(JSplitPane.HORIZONTAL_SPLIT, bytecodeViewPanel1, bytecodeViewPanel2); - this.sp2 = new JSplitPane(JSplitPane.HORIZONTAL_SPLIT, sp, bytecodeViewPanel3); - this.add(sp2, BorderLayout.CENTER); - - this.addComponentListener(new ComponentAdapter() - { - @Override - public void componentResized(ComponentEvent e) - { - resetDivider(); - } - }); - } - - @Override - public void refresh(JButton button) - { - setPanes(); - refreshTitle(); - - bytecodeViewPanel1.createPane(this); - bytecodeViewPanel2.createPane(this); - bytecodeViewPanel3.createPane(this); - - byte[] classBytes = getResourceBytes(); - - //TODO remove this once all of the importers have been properly updated to use a FileContainerImporter - if (classBytes == null || classBytes.length == 0 || Configuration.forceResourceUpdateFromClassNode) - { - //TODO remove this error message when all of the importers have been updated - // only APK and DEX are left - if (!Configuration.forceResourceUpdateFromClassNode) - { - System.err.println("WARNING: Class Resource imported using the old importer!"); - System.err.println("TODO: Update it to use the FileContainerImporter"); - } - - classBytes = ASMUtil.nodeToBytes(resource.getResourceClassNode()); - } - - bytecodeViewPanel1.updatePane(this, classBytes, button, isPanel1Editable()); - bytecodeViewPanel2.updatePane(this, classBytes, button, isPanel2Editable()); - bytecodeViewPanel3.updatePane(this, classBytes, button, isPanel3Editable()); - - Thread dumpBuild = new Thread(() -> - { - BytecodeViewer.updateBusyStatus(true); - - while (Configuration.currentlyDumping) - { - //wait until it's not dumping - try - { - Thread.sleep(100); - } - catch (InterruptedException e) - { - e.printStackTrace(); - } - } - - BytecodeViewer.updateBusyStatus(false); - - if (bytecodeViewPanel1.decompiler != Decompiler.NONE) - bytecodeViewPanel1.updateThread.startNewThread(); - - if (bytecodeViewPanel2.decompiler != Decompiler.NONE) - bytecodeViewPanel2.updateThread.startNewThread(); - - if (bytecodeViewPanel3.decompiler != Decompiler.NONE) - bytecodeViewPanel3.updateThread.startNewThread(); - }, "ClassViewer Temp Dump"); - - dumpBuild.start(); - - if (isPanel1Editable() || isPanel2Editable() || isPanel3Editable()) - { - if (Configuration.warnForEditing) - return; - - Configuration.warnForEditing = true; - - if (!BytecodeViewer.viewer.autoCompileOnRefresh.isSelected() && !BytecodeViewer.viewer.compileOnSave.isSelected()) - { - BytecodeViewer.showMessage("Make sure to compile (File>Compile or Ctrl + T) whenever you want to " + "test or export your changes.\nYou can set compile automatically on refresh or on save " + "in the settings menu."); - - SettingsSerializer.saveSettingsAsync(); - } - } - } - - public void setPanes() - { - bytecodeViewPanel1.decompiler = BytecodeViewer.viewer.viewPane1.getSelectedDecompiler(); - bytecodeViewPanel2.decompiler = BytecodeViewer.viewer.viewPane2.getSelectedDecompiler(); - bytecodeViewPanel3.decompiler = BytecodeViewer.viewer.viewPane3.getSelectedDecompiler(); - } - - public boolean isPanel1Editable() - { - setPanes(); - return BytecodeViewer.viewer.viewPane1.isPaneEditable(); - } - - public boolean isPanel2Editable() - { - setPanes(); - return BytecodeViewer.viewer.viewPane2.isPaneEditable(); - } - - public boolean isPanel3Editable() - { - setPanes(); - return BytecodeViewer.viewer.viewPane3.isPaneEditable(); - } - - - public static void selectMethod(RSyntaxTextArea area, int methodLine) - { - if (methodLine != area.getCaretLineNumber()) - { - setCaretLine(area, methodLine); - setViewLine(area, methodLine); - } - } - - public static void selectMethod(ClassViewer classViewer, int paneId, Method method) - { - RSyntaxTextArea area = null; - switch (paneId) - { - case 0: - area = classViewer.bytecodeViewPanel1.updateThread.updateUpdaterTextArea; - break; - - case 1: - area = classViewer.bytecodeViewPanel2.updateThread.updateUpdaterTextArea; - break; - - case 2: - area = classViewer.bytecodeViewPanel3.updateThread.updateUpdaterTextArea; - break; - } - - if (area != null) - { - MethodParser methods = classViewer.methods.get(paneId); - if (methods != null) - { - int methodLine = methods.findMethod(method); - - if (methodLine != -1) - selectMethod(area, methodLine); - } - } - } - - public static int getMaxViewLine(RSyntaxTextArea area) - { - Container parent = area.getParent(); - - if (parent instanceof JViewport) - { - JViewport viewport = (JViewport) parent; - int y = viewport.getViewSize().height - viewport.getExtentSize().height; - int lineHeight = area.getLineHeight(); - return y >= lineHeight ? y / lineHeight : 0; - } - - return 0; - } - - public static int getViewLine(RSyntaxTextArea area) - { - Container parent = area.getParent(); - - if (parent instanceof JViewport) - { - JViewport viewport = (JViewport) parent; - Point point = viewport.getViewPosition(); - int lineHeight = area.getLineHeight(); - return point.y >= lineHeight ? point.y / lineHeight : 0; - } - - return 0; - } - - public static void setViewLine(RSyntaxTextArea area, int line) - { - Container parent = area.getParent(); - - if (parent instanceof JViewport) - { - JViewport viewport = (JViewport) parent; - int maxLine = ClassViewer.getMaxViewLine(area); - line = Math.min(line, maxLine); - viewport.setViewPosition(new Point(0, line * area.getLineHeight())); - } - } - - public static void setCaretLine(RSyntaxTextArea area, int line) - { - try - { - area.setCaretPosition(area.getLineStartOffset(line)); - } - catch (BadLocationException ignored) - { - } - } - - public void resetDivider() - { - SwingUtilities.invokeLater(() -> - { - sp.setResizeWeight(0.5); - - if (bytecodeViewPanel2.decompiler != Decompiler.NONE && bytecodeViewPanel1.decompiler != Decompiler.NONE) - setDividerLocation(sp, 0.5); - else if (bytecodeViewPanel1.decompiler != Decompiler.NONE) - setDividerLocation(sp, 1); - else if (bytecodeViewPanel2.decompiler != Decompiler.NONE) - { - sp.setResizeWeight(1); - setDividerLocation(sp, 0); - } - else - setDividerLocation(sp, 0); - - if (bytecodeViewPanel3.decompiler != Decompiler.NONE) - { - sp2.setResizeWeight(0.7); - setDividerLocation(sp2, 0.7); - if ((bytecodeViewPanel2.decompiler == Decompiler.NONE && bytecodeViewPanel1.decompiler != Decompiler.NONE) || (bytecodeViewPanel1.decompiler == Decompiler.NONE && bytecodeViewPanel2.decompiler != Decompiler.NONE)) - setDividerLocation(sp2, 0.5); - else if (bytecodeViewPanel1.decompiler == Decompiler.NONE) - setDividerLocation(sp2, 0); - } - else - { - sp.setResizeWeight(1); - sp2.setResizeWeight(0); - setDividerLocation(sp2, 1); - } - }); - } - - /** - * Whoever wrote this function, THANK YOU! - */ - public static JSplitPane setDividerLocation(JSplitPane splitter, double proportion) - { - if (splitter.isShowing()) - { - if (splitter.getWidth() > 0 && splitter.getHeight() > 0) - splitter.setDividerLocation(proportion); - else - { - splitter.addComponentListener(new ComponentAdapter() - { - @Override - public void componentResized(ComponentEvent ce) - { - splitter.removeComponentListener(this); - setDividerLocation(splitter, proportion); - } - }); - } - } - else - { - splitter.addHierarchyListener(new HierarchyListener() - { - @Override - public void hierarchyChanged(HierarchyEvent e) - { - if ((e.getChangeFlags() & HierarchyEvent.SHOWING_CHANGED) != 0 && splitter.isShowing()) - { - splitter.removeHierarchyListener(this); - setDividerLocation(splitter, proportion); - } - } - }); - } - - return splitter; - } - - private static final long serialVersionUID = -8650495368920680024L; + public JSplitPane sp; + public JSplitPane sp2; + public BytecodeViewPanel bytecodeViewPanel1 = new BytecodeViewPanel(0, this); + public BytecodeViewPanel bytecodeViewPanel2 = new BytecodeViewPanel(1, this); + public BytecodeViewPanel bytecodeViewPanel3 = new BytecodeViewPanel(2, this); + public List methods = Arrays.asList(new MethodParser(), new MethodParser(), new MethodParser()); + + public ClassViewer(ResourceContainer container, String name) + { + super(new Resource(name, container.getWorkingName(name), container)); + + this.setName(name); + this.setLayout(new BorderLayout()); + this.sp = new JSplitPane(JSplitPane.HORIZONTAL_SPLIT, bytecodeViewPanel1, bytecodeViewPanel2); + this.sp2 = new JSplitPane(JSplitPane.HORIZONTAL_SPLIT, sp, bytecodeViewPanel3); + this.add(sp2, BorderLayout.CENTER); + + this.addComponentListener(new ComponentAdapter() + { + @Override + public void componentResized(ComponentEvent e) + { + resetDivider(); + } + }); + } + + @Override + public void refresh(JButton button) + { + setPanes(); + refreshTitle(); + + bytecodeViewPanel1.createPane(this); + bytecodeViewPanel2.createPane(this); + bytecodeViewPanel3.createPane(this); + + byte[] classBytes = getResourceBytes(); + + //TODO remove this once all of the importers have been properly updated to use a FileContainerImporter + if (classBytes == null || classBytes.length == 0 || Configuration.forceResourceUpdateFromClassNode) + { + //TODO remove this error message when all of the importers have been updated + // only APK and DEX are left + if (!Configuration.forceResourceUpdateFromClassNode) + { + System.err.println("WARNING: Class Resource imported using the old importer!"); + System.err.println("TODO: Update it to use the FileContainerImporter"); + } + + classBytes = ASMUtil.nodeToBytes(resource.getResourceClassNode()); + } + + bytecodeViewPanel1.updatePane(this, classBytes, button, isPanel1Editable()); + bytecodeViewPanel2.updatePane(this, classBytes, button, isPanel2Editable()); + bytecodeViewPanel3.updatePane(this, classBytes, button, isPanel3Editable()); + + Thread dumpBuild = new Thread(() -> + { + BytecodeViewer.updateBusyStatus(true); + + while (Configuration.currentlyDumping) + { + //wait until it's not dumping + try + { + Thread.sleep(100); + } catch (InterruptedException e) + { + e.printStackTrace(); + } + } + + BytecodeViewer.updateBusyStatus(false); + + if (bytecodeViewPanel1.decompiler != Decompiler.NONE) + bytecodeViewPanel1.updateThread.startNewThread(); + + if (bytecodeViewPanel2.decompiler != Decompiler.NONE) + bytecodeViewPanel2.updateThread.startNewThread(); + + if (bytecodeViewPanel3.decompiler != Decompiler.NONE) + bytecodeViewPanel3.updateThread.startNewThread(); + }, "ClassViewer Temp Dump"); + + dumpBuild.start(); + + if (isPanel1Editable() || isPanel2Editable() || isPanel3Editable()) + { + if (Configuration.warnForEditing) + return; + + Configuration.warnForEditing = true; + + if (!BytecodeViewer.viewer.autoCompileOnRefresh.isSelected() && !BytecodeViewer.viewer.compileOnSave.isSelected()) + { + BytecodeViewer.showMessage("Make sure to compile (File>Compile or Ctrl + T) whenever you want to " + "test or export your changes.\nYou can set compile automatically on refresh or on save " + "in the settings menu."); + + SettingsSerializer.saveSettingsAsync(); + } + } + } + + public void setPanes() + { + bytecodeViewPanel1.decompiler = BytecodeViewer.viewer.viewPane1.getSelectedDecompiler(); + bytecodeViewPanel2.decompiler = BytecodeViewer.viewer.viewPane2.getSelectedDecompiler(); + bytecodeViewPanel3.decompiler = BytecodeViewer.viewer.viewPane3.getSelectedDecompiler(); + } + + public boolean isPanel1Editable() + { + setPanes(); + return BytecodeViewer.viewer.viewPane1.isPaneEditable(); + } + + public boolean isPanel2Editable() + { + setPanes(); + return BytecodeViewer.viewer.viewPane2.isPaneEditable(); + } + + public boolean isPanel3Editable() + { + setPanes(); + return BytecodeViewer.viewer.viewPane3.isPaneEditable(); + } + + public BytecodeViewPanel getPanel(int index) + { + switch (index) + { + case 0: + return bytecodeViewPanel1; + case 1: + return bytecodeViewPanel2; + case 2: + return bytecodeViewPanel3; + } + + return null; + } + + + public static void selectMethod(RSyntaxTextArea area, int methodLine) + { + if (methodLine != area.getCaretLineNumber()) + { + setCaretLine(area, methodLine); + setViewLine(area, methodLine); + } + } + + public static void selectMethod(ClassViewer classViewer, int paneId, Method method) + { + RSyntaxTextArea area = null; + switch (paneId) + { + case 0: + area = classViewer.bytecodeViewPanel1.updateThread.updateUpdaterTextArea; + break; + + case 1: + area = classViewer.bytecodeViewPanel2.updateThread.updateUpdaterTextArea; + break; + + case 2: + area = classViewer.bytecodeViewPanel3.updateThread.updateUpdaterTextArea; + break; + } + + if (area != null) + { + MethodParser methods = classViewer.methods.get(paneId); + if (methods != null) + { + int methodLine = methods.findMethod(method); + + if (methodLine != -1) + selectMethod(area, methodLine); + } + } + } + + public static int getMaxViewLine(RSyntaxTextArea area) + { + Container parent = area.getParent(); + + if (parent instanceof JViewport) + { + JViewport viewport = (JViewport) parent; + int y = viewport.getViewSize().height - viewport.getExtentSize().height; + int lineHeight = area.getLineHeight(); + return y >= lineHeight ? y / lineHeight : 0; + } + + return 0; + } + + public static int getViewLine(RSyntaxTextArea area) + { + Container parent = area.getParent(); + + if (parent instanceof JViewport) + { + JViewport viewport = (JViewport) parent; + Point point = viewport.getViewPosition(); + int lineHeight = area.getLineHeight(); + return point.y >= lineHeight ? point.y / lineHeight : 0; + } + + return 0; + } + + public static void setViewLine(RSyntaxTextArea area, int line) + { + Container parent = area.getParent(); + + if (parent instanceof JViewport) + { + JViewport viewport = (JViewport) parent; + int maxLine = ClassViewer.getMaxViewLine(area); + line = Math.min(line, maxLine); + viewport.setViewPosition(new Point(0, line * area.getLineHeight())); + } + } + + public static void setCaretLine(RSyntaxTextArea area, int line) + { + try + { + area.setCaretPosition(area.getLineStartOffset(line)); + } catch (BadLocationException ignored) + { + } + } + + public void resetDivider() + { + SwingUtilities.invokeLater(() -> + { + sp.setResizeWeight(0.5); + + if (bytecodeViewPanel2.decompiler != Decompiler.NONE && bytecodeViewPanel1.decompiler != Decompiler.NONE) + setDividerLocation(sp, 0.5); + else if (bytecodeViewPanel1.decompiler != Decompiler.NONE) + setDividerLocation(sp, 1); + else if (bytecodeViewPanel2.decompiler != Decompiler.NONE) + { + sp.setResizeWeight(1); + setDividerLocation(sp, 0); + } else + setDividerLocation(sp, 0); + + if (bytecodeViewPanel3.decompiler != Decompiler.NONE) + { + sp2.setResizeWeight(0.7); + setDividerLocation(sp2, 0.7); + if ((bytecodeViewPanel2.decompiler == Decompiler.NONE && bytecodeViewPanel1.decompiler != Decompiler.NONE) || (bytecodeViewPanel1.decompiler == Decompiler.NONE && bytecodeViewPanel2.decompiler != Decompiler.NONE)) + setDividerLocation(sp2, 0.5); + else if (bytecodeViewPanel1.decompiler == Decompiler.NONE) + setDividerLocation(sp2, 0); + } else + { + sp.setResizeWeight(1); + sp2.setResizeWeight(0); + setDividerLocation(sp2, 1); + } + }); + } + + /** + * Whoever wrote this function, THANK YOU! + */ + public static JSplitPane setDividerLocation(JSplitPane splitter, double proportion) + { + if (splitter.isShowing()) + { + if (splitter.getWidth() > 0 && splitter.getHeight() > 0) + splitter.setDividerLocation(proportion); + else + { + splitter.addComponentListener(new ComponentAdapter() + { + @Override + public void componentResized(ComponentEvent ce) + { + splitter.removeComponentListener(this); + setDividerLocation(splitter, proportion); + } + }); + } + } else + { + splitter.addHierarchyListener(new HierarchyListener() + { + @Override + public void hierarchyChanged(HierarchyEvent e) + { + if ((e.getChangeFlags() & HierarchyEvent.SHOWING_CHANGED) != 0 && splitter.isShowing()) + { + splitter.removeHierarchyListener(this); + setDividerLocation(splitter, proportion); + } + } + }); + } + + return splitter; + } + + private static final long serialVersionUID = -8650495368920680024L; } 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 b22fd95b..2aaa80e9 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 @@ -72,6 +72,8 @@ public class BytecodeViewPanelUpdater implements Runnable private final JButton button; private final byte[] classBytes; + public MarkerCaretListener markerCaretListener; + private MyErrorStripe errorStripe; public SearchableRSyntaxTextArea updateUpdaterTextArea; public JComboBox methodsList; public boolean isPanelEditable; @@ -118,7 +120,7 @@ public class BytecodeViewPanelUpdater implements Runnable if (!container.hasBeenParsed) { container.parse(); - viewer.classFiles.put(viewer.resource.workingName + "-" + decompiler.getDecompilerName(), container); + BytecodeViewer.viewer.workPane.classFiles.put(viewer.resource.workingName + "-" + decompiler.getDecompilerName(), container); container.hasBeenParsed = true; } @@ -399,9 +401,6 @@ public class BytecodeViewPanelUpdater implements Runnable bytecodeViewPanel.textArea = updateUpdaterTextArea; bytecodeViewPanel.textArea.setMarkOccurrencesColor(Color.ORANGE); - bytecodeViewPanel.textArea.setCursor(new Cursor(Cursor.TEXT_CURSOR)); - bytecodeViewPanel.textArea.getCaret().setVisible(true); - bytecodeViewPanel.textArea.getCaret().setBlinkRate(0); bytecodeViewPanel.textArea.setHighlighter(new RSyntaxTextAreaHighlighterEx()); if (bytecodeViewPanel.decompiler != Decompiler.BYTECODE_DISASSEMBLER) @@ -426,26 +425,19 @@ public class BytecodeViewPanelUpdater implements Runnable String editable = isPanelEditable ? " - " + EDITABLE : ""; bytecodeViewPanel.textArea.getTextAreaSearchPanel().getTitleHeader().setText(decompiler.getDecompilerName() + editable); - MyErrorStripe errorStripe = new MyErrorStripe(bytecodeViewPanel.textArea); + errorStripe = new MyErrorStripe(bytecodeViewPanel.textArea); bytecodeViewPanel.add(errorStripe, BorderLayout.LINE_END); bytecodeViewPanel.revalidate(); bytecodeViewPanel.repaint(); String classContainerName = viewer.resource.workingName + "-" + decompiler.getDecompilerName(); - ClassFileContainer classFileContainer = viewer.classFiles.get(classContainerName); + ClassFileContainer classFileContainer = BytecodeViewer.viewer.workPane.classFiles.get(classContainerName); bytecodeViewPanel.textArea.getInputMap().put(KeyStroke.getKeyStroke(KeyEvent.VK_B, InputEvent.CTRL_DOWN_MASK), "goToAction"); bytecodeViewPanel.textArea.getActionMap().put("goToAction", new GoToAction(classFileContainer)); - bytecodeViewPanel.textArea.addCaretListener(e -> { - if (bytecodeViewPanel.textArea.isFocusOwner()) - { - RSyntaxTextAreaHighlighterEx highlighterEx = (RSyntaxTextAreaHighlighterEx) bytecodeViewPanel.textArea.getHighlighter(); - highlighterEx.clearMarkOccurrencesHighlights(); - RSyntaxTextArea textArea = (RSyntaxTextArea) e.getSource(); - markOccurrences(textArea, viewer.classFiles.get(classContainerName), errorStripe); - } - }); + markerCaretListener = new MarkerCaretListener(classContainerName); + bytecodeViewPanel.textArea.addCaretListener(markerCaretListener); } private void markOccurrences(RSyntaxTextArea textArea, ClassFileContainer classFileContainer, MyErrorStripe errorStripe) @@ -627,4 +619,24 @@ public class BytecodeViewPanelUpdater implements Runnable } })); } + + public class MarkerCaretListener implements CaretListener + { + + private final String classContainerName; + + public MarkerCaretListener(String classContainerName) + { + this.classContainerName = classContainerName; + } + + @Override + public void caretUpdate(CaretEvent e) + { + SearchableRSyntaxTextArea textArea = (SearchableRSyntaxTextArea) e.getSource(); + RSyntaxTextAreaHighlighterEx highlighterEx = (RSyntaxTextAreaHighlighterEx) bytecodeViewPanel.textArea.getHighlighter(); + highlighterEx.clearMarkOccurrencesHighlights(); + markOccurrences(textArea, BytecodeViewer.viewer.workPane.classFiles.get(classContainerName), errorStripe); + } + } } diff --git a/src/main/java/the/bytecode/club/bytecodeviewer/resources/classcontainer/ClassFileContainer.java b/src/main/java/the/bytecode/club/bytecodeviewer/resources/classcontainer/ClassFileContainer.java index 6a9d338b..7413dbd9 100644 --- a/src/main/java/the/bytecode/club/bytecodeviewer/resources/classcontainer/ClassFileContainer.java +++ b/src/main/java/the/bytecode/club/bytecodeviewer/resources/classcontainer/ClassFileContainer.java @@ -57,6 +57,10 @@ public class ClassFileContainer return this.className.substring(this.className.lastIndexOf('.') + 1); } + public String getDecompiler() { + return getName().substring(6); + } + public String getParentContainer() { return this.parentContainer; diff --git a/src/main/java/the/bytecode/club/bytecodeviewer/resources/classcontainer/parser/MyVoidVisitor.java b/src/main/java/the/bytecode/club/bytecodeviewer/resources/classcontainer/parser/MyVoidVisitor.java index 2bc3cfee..04ccfb5e 100644 --- a/src/main/java/the/bytecode/club/bytecodeviewer/resources/classcontainer/parser/MyVoidVisitor.java +++ b/src/main/java/the/bytecode/club/bytecodeviewer/resources/classcontainer/parser/MyVoidVisitor.java @@ -1312,6 +1312,12 @@ public class MyVoidVisitor extends VoidVisitorAdapter } } + /** + * Visit all {@link LambdaExpr}'s. + * + * @param n The current {@code LambdaExpr} + * @param arg Don't worry about it. + */ @Override public void visit(LambdaExpr n, Object arg) { @@ -1337,6 +1343,27 @@ public class MyVoidVisitor extends VoidVisitorAdapter } } + /** + * Visit all {@link EnumDeclaration}'s. + * + * @param n The current {@code EnumDeclaration} + * @param arg Don't worry about it. + */ + @Override + public void visit(EnumDeclaration n, Object arg) + { + super.visit(n, arg); + n.getEntries().forEach(entry -> { + SimpleName simpleName = entry.getName(); + String name = simpleName.getIdentifier(); + Range range = simpleName.getRange().get(); + int line = range.begin.line; + int columnStart = range.begin.column; + int columnEnd = range.end.column; + this.classFileContainer.putField(name, new ClassFieldLocation(getOwner(), "declaration", line, columnStart, columnEnd + 1)); + }); + } + /** * Look through the {@link CompilationUnit} for the specific statement within its methods. * From 00319e953769a3d028a173ac5ef6586456078393 Mon Sep 17 00:00:00 2001 From: Cody <6558800+Bl3nd@users.noreply.github.com> Date: Wed, 18 Sep 2024 20:26:39 -0600 Subject: [PATCH 23/26] Add a little documentation and rename a few variables for clarity. --- .../gui/components/actions/GoToAction.java | 17 +- .../classcontainer/ClassFileContainer.java | 162 +++++++++--------- .../classcontainer/parser/MyVoidVisitor.java | 4 +- 3 files changed, 100 insertions(+), 83 deletions(-) diff --git a/src/main/java/the/bytecode/club/bytecodeviewer/gui/components/actions/GoToAction.java b/src/main/java/the/bytecode/club/bytecodeviewer/gui/components/actions/GoToAction.java index 8fafc209..a71e625c 100644 --- a/src/main/java/the/bytecode/club/bytecodeviewer/gui/components/actions/GoToAction.java +++ b/src/main/java/the/bytecode/club/bytecodeviewer/gui/components/actions/GoToAction.java @@ -17,6 +17,8 @@ import java.awt.event.ActionEvent; import java.util.HashMap; /** + * This action is triggered by a user typing (CTRL+B). This goes to a specific variables declaration whether it be in the opened class, or a class within the jar. + *

* Created by Bl3nd. * Date: 9/7/2024 */ @@ -98,14 +100,20 @@ public class GoToAction extends AbstractAction })); } + /** + * Open a class that contains the declaration of a field. + * + * @param field The field to jump to + * @param textArea The text area of the current class (not the class we are opening) + */ private void openFieldClass(ClassFieldLocation field, RSyntaxTextArea textArea) { String token = textArea.modelToToken(textArea.getCaretPosition()).getLexeme(); ResourceContainer resourceContainer = BytecodeViewer.getFileContainer(container.getParentContainer()); if (resourceContainer != null) { - String s = container.getImport(field.owner); - BytecodeViewer.viewer.workPane.addClassResource(resourceContainer, s + ".class"); + String className = container.getImport(field.owner); + BytecodeViewer.viewer.workPane.addClassResource(resourceContainer, className + ".class"); ClassViewer activeResource = (ClassViewer) BytecodeViewer.viewer.workPane.getActiveResource(); HashMap classFiles = BytecodeViewer.viewer.workPane.classFiles; Thread thread = new Thread(() -> { @@ -121,8 +129,8 @@ public class GoToAction extends AbstractAction BytecodeViewer.updateBusyStatus(false); } - String s2 = activeResource.resource.workingName + "-" + this.container.getDecompiler(); - ClassFileContainer classFileContainer = classFiles.get(s2); + String containerName = activeResource.resource.workingName + "-" + this.container.getDecompiler(); + ClassFileContainer classFileContainer = classFiles.get(containerName); classFileContainer.fieldMembers.forEach((field1, field2) -> { if (field1.equals(token)) { @@ -162,7 +170,6 @@ public class GoToAction extends AbstractAction } panel.textArea.requestFocusInWindow(); - break; } } diff --git a/src/main/java/the/bytecode/club/bytecodeviewer/resources/classcontainer/ClassFileContainer.java b/src/main/java/the/bytecode/club/bytecodeviewer/resources/classcontainer/ClassFileContainer.java index 7413dbd9..9c53c137 100644 --- a/src/main/java/the/bytecode/club/bytecodeviewer/resources/classcontainer/ClassFileContainer.java +++ b/src/main/java/the/bytecode/club/bytecodeviewer/resources/classcontainer/ClassFileContainer.java @@ -17,102 +17,110 @@ import java.util.NavigableMap; import java.util.TreeMap; /** + * This is a container for a specific class. The container name is based on the actual class name and the decompiler used. + *

* Created by Bl3nd. * Date: 8/26/2024 */ public class ClassFileContainer { - public transient NavigableMap> fieldMembers = new TreeMap<>(); - public transient NavigableMap> methodParameterMembers = new TreeMap<>(); - public transient NavigableMap> methodLocalMembers = new TreeMap<>(); - public transient NavigableMap> methodMembers = new TreeMap<>(); - public transient NavigableMap imports = new TreeMap<>(); + public transient NavigableMap> fieldMembers = new TreeMap<>(); + public transient NavigableMap> methodParameterMembers = new TreeMap<>(); + public transient NavigableMap> methodLocalMembers = new TreeMap<>(); + public transient NavigableMap> methodMembers = new TreeMap<>(); + public transient NavigableMap imports = new TreeMap<>(); - public boolean hasBeenParsed = false; - public final String className; - private final String content; - private final String parentContainer; + public boolean hasBeenParsed = false; + public final String className; + private final String content; + private final String parentContainer; - public ClassFileContainer(String className, String content, String parentContainer) - { - this.className = className; - this.content = content; - this.parentContainer = parentContainer; - } + public ClassFileContainer(String className, String content, String parentContainer) + { + this.className = className; + this.content = content; + this.parentContainer = parentContainer; + } - public void parse() - { - try - { - StaticJavaParser.getParserConfiguration().setSymbolResolver(new JavaSymbolSolver(new ReflectionTypeSolver())); - CompilationUnit compilationUnit = StaticJavaParser.parse(this.content); - compilationUnit.accept(new MyVoidVisitor(this, compilationUnit), null); - } catch (ParseProblemException e) - { - System.err.println("Parsing error!"); - } - } + /** + * Parse the class content with JavaParser. + */ + public void parse() + { + try + { + StaticJavaParser.getParserConfiguration().setSymbolResolver(new JavaSymbolSolver(new ReflectionTypeSolver())); + CompilationUnit compilationUnit = StaticJavaParser.parse(this.content); + compilationUnit.accept(new MyVoidVisitor(this, compilationUnit), null); + } catch (ParseProblemException e) + { + System.err.println("Parsing error!"); + } + } - public String getName() { - return this.className.substring(this.className.lastIndexOf('.') + 1); - } + public String getName() + { + return this.className.substring(this.className.lastIndexOf('.') + 1); + } - public String getDecompiler() { - return getName().substring(6); - } + public String getDecompiler() + { + return getName().substring(6); + } - public String getParentContainer() - { - return this.parentContainer; - } + public String getParentContainer() + { + return this.parentContainer; + } - public void putField(String key, ClassFieldLocation value) - { - this.fieldMembers.computeIfAbsent(key, v -> new ArrayList<>()).add(value); - } + public void putField(String key, ClassFieldLocation value) + { + this.fieldMembers.computeIfAbsent(key, v -> new ArrayList<>()).add(value); + } - public List getFieldLocationsFor(String fieldName) - { - return fieldMembers.getOrDefault(fieldName, new ArrayList<>()); - } + public List getFieldLocationsFor(String fieldName) + { + return fieldMembers.getOrDefault(fieldName, new ArrayList<>()); + } - public void putParameter(String key, ClassParameterLocation value) - { - this.methodParameterMembers.computeIfAbsent(key, v -> new ArrayList<>()).add(value); - } + public void putParameter(String key, ClassParameterLocation value) + { + this.methodParameterMembers.computeIfAbsent(key, v -> new ArrayList<>()).add(value); + } - public List getParameterLocationsFor(String key) - { - return methodParameterMembers.getOrDefault(key, new ArrayList<>()); - } + public List getParameterLocationsFor(String key) + { + return methodParameterMembers.getOrDefault(key, new ArrayList<>()); + } - public void putLocalVariable(String key, ClassLocalVariableLocation value) - { - this.methodLocalMembers.computeIfAbsent(key, v -> new ArrayList<>()).add(value); - } + public void putLocalVariable(String key, ClassLocalVariableLocation value) + { + this.methodLocalMembers.computeIfAbsent(key, v -> new ArrayList<>()).add(value); + } - public List getLocalLocationsFor(String key) - { - return methodLocalMembers.getOrDefault(key, new ArrayList<>()); - } + public List getLocalLocationsFor(String key) + { + return methodLocalMembers.getOrDefault(key, new ArrayList<>()); + } - public void putMethod(String key, ClassMethodLocation value) - { - this.methodMembers.computeIfAbsent(key, v -> new ArrayList<>()).add(value); - } + public void putMethod(String key, ClassMethodLocation value) + { + this.methodMembers.computeIfAbsent(key, v -> new ArrayList<>()).add(value); + } - public List getMethodLocationsFor(String key) - { - return methodMembers.getOrDefault(key, new ArrayList<>()); - } + public List getMethodLocationsFor(String key) + { + return methodMembers.getOrDefault(key, new ArrayList<>()); + } - public void putImport(String key, String value) - { - this.imports.put(key, value); - } + public void putImport(String key, String value) + { + this.imports.put(key, value); + } - public String getImport(String key) { - String value = this.imports.get(key); - return value + "/" + key; - } + public String getImport(String key) + { + String value = this.imports.get(key); + return value + "/" + key; + } } diff --git a/src/main/java/the/bytecode/club/bytecodeviewer/resources/classcontainer/parser/MyVoidVisitor.java b/src/main/java/the/bytecode/club/bytecodeviewer/resources/classcontainer/parser/MyVoidVisitor.java index 04ccfb5e..ed4c6c24 100644 --- a/src/main/java/the/bytecode/club/bytecodeviewer/resources/classcontainer/parser/MyVoidVisitor.java +++ b/src/main/java/the/bytecode/club/bytecodeviewer/resources/classcontainer/parser/MyVoidVisitor.java @@ -20,6 +20,8 @@ import java.util.Objects; import java.util.concurrent.atomic.AtomicInteger; /** + * Our custom visitor that allows us to get the information from JavaParser we need. + *

* Created by Bl3nd. * Date: 9/5/2024 */ @@ -1315,7 +1317,7 @@ public class MyVoidVisitor extends VoidVisitorAdapter /** * Visit all {@link LambdaExpr}'s. * - * @param n The current {@code LambdaExpr} + * @param n The current {@code LambdaExpr} * @param arg Don't worry about it. */ @Override From 7b7f8976eae47aa61694615e00b04958fa273de8 Mon Sep 17 00:00:00 2001 From: Cody <6558800+Bl3nd@users.noreply.github.com> Date: Wed, 18 Sep 2024 22:28:13 -0600 Subject: [PATCH 24/26] Bug: Fixed imports with '.*'. - Also added a resolver to help resolve classes within the jar. --- .../gui/util/BytecodeViewPanelUpdater.java | 2 +- .../classcontainer/ClassFileContainer.java | 17 +++++++++--- .../classcontainer/parser/MyVoidVisitor.java | 27 ++++++++++--------- 3 files changed, 29 insertions(+), 17 deletions(-) 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 2aaa80e9..9d59d87e 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 @@ -116,7 +116,7 @@ public class BytecodeViewPanelUpdater implements Runnable //perform decompiling inside of this thread final String decompiledSource = decompiler.getDecompiler().decompileClassNode(viewer.resource.getResourceClassNode(), classBytes); - ClassFileContainer container = new ClassFileContainer(viewer.resource.workingName + "-" + decompiler.getDecompilerName(), decompiledSource, viewer.resource.container.name); + ClassFileContainer container = new ClassFileContainer(viewer.resource.workingName + "-" + decompiler.getDecompilerName(), decompiledSource, viewer.resource.container); if (!container.hasBeenParsed) { container.parse(); diff --git a/src/main/java/the/bytecode/club/bytecodeviewer/resources/classcontainer/ClassFileContainer.java b/src/main/java/the/bytecode/club/bytecodeviewer/resources/classcontainer/ClassFileContainer.java index 9c53c137..78265f24 100644 --- a/src/main/java/the/bytecode/club/bytecodeviewer/resources/classcontainer/ClassFileContainer.java +++ b/src/main/java/the/bytecode/club/bytecodeviewer/resources/classcontainer/ClassFileContainer.java @@ -3,14 +3,19 @@ package the.bytecode.club.bytecodeviewer.resources.classcontainer; import com.github.javaparser.ParseProblemException; import com.github.javaparser.StaticJavaParser; import com.github.javaparser.ast.CompilationUnit; +import com.github.javaparser.resolution.TypeSolver; import com.github.javaparser.symbolsolver.JavaSymbolSolver; +import com.github.javaparser.symbolsolver.resolution.typesolvers.CombinedTypeSolver; +import com.github.javaparser.symbolsolver.resolution.typesolvers.JarTypeSolver; import com.github.javaparser.symbolsolver.resolution.typesolvers.ReflectionTypeSolver; +import the.bytecode.club.bytecodeviewer.resources.ResourceContainer; import the.bytecode.club.bytecodeviewer.resources.classcontainer.locations.ClassFieldLocation; import the.bytecode.club.bytecodeviewer.resources.classcontainer.locations.ClassLocalVariableLocation; import the.bytecode.club.bytecodeviewer.resources.classcontainer.locations.ClassMethodLocation; import the.bytecode.club.bytecodeviewer.resources.classcontainer.locations.ClassParameterLocation; import the.bytecode.club.bytecodeviewer.resources.classcontainer.parser.MyVoidVisitor; +import java.io.IOException; import java.util.ArrayList; import java.util.List; import java.util.NavigableMap; @@ -34,12 +39,14 @@ public class ClassFileContainer public final String className; private final String content; private final String parentContainer; + private final String path; - public ClassFileContainer(String className, String content, String parentContainer) + public ClassFileContainer(String className, String content, ResourceContainer resourceContainer) { this.className = className; this.content = content; - this.parentContainer = parentContainer; + this.parentContainer = resourceContainer.name; + this.path = resourceContainer.file.getAbsolutePath(); } /** @@ -49,12 +56,16 @@ public class ClassFileContainer { try { - StaticJavaParser.getParserConfiguration().setSymbolResolver(new JavaSymbolSolver(new ReflectionTypeSolver())); + TypeSolver typeSolver = new CombinedTypeSolver(new ReflectionTypeSolver(), new JarTypeSolver(path)); + StaticJavaParser.getParserConfiguration().setSymbolResolver(new JavaSymbolSolver(typeSolver)); CompilationUnit compilationUnit = StaticJavaParser.parse(this.content); compilationUnit.accept(new MyVoidVisitor(this, compilationUnit), null); } catch (ParseProblemException e) { System.err.println("Parsing error!"); + } catch (IOException e) + { + throw new RuntimeException(e); } } diff --git a/src/main/java/the/bytecode/club/bytecodeviewer/resources/classcontainer/parser/MyVoidVisitor.java b/src/main/java/the/bytecode/club/bytecodeviewer/resources/classcontainer/parser/MyVoidVisitor.java index ed4c6c24..99b6dfba 100644 --- a/src/main/java/the/bytecode/club/bytecodeviewer/resources/classcontainer/parser/MyVoidVisitor.java +++ b/src/main/java/the/bytecode/club/bytecodeviewer/resources/classcontainer/parser/MyVoidVisitor.java @@ -6,10 +6,10 @@ import com.github.javaparser.ast.ImportDeclaration; import com.github.javaparser.ast.body.*; import com.github.javaparser.ast.expr.*; import com.github.javaparser.ast.stmt.*; -import com.github.javaparser.ast.type.ClassOrInterfaceType; import com.github.javaparser.ast.visitor.VoidVisitorAdapter; import com.github.javaparser.resolution.UnsolvedSymbolException; import com.github.javaparser.resolution.declarations.ResolvedValueDeclaration; +import com.github.javaparser.resolution.types.ResolvedType; import the.bytecode.club.bytecodeviewer.resources.classcontainer.ClassFileContainer; import the.bytecode.club.bytecodeviewer.resources.classcontainer.locations.ClassFieldLocation; import the.bytecode.club.bytecodeviewer.resources.classcontainer.locations.ClassLocalVariableLocation; @@ -75,11 +75,14 @@ public class MyVoidVisitor extends VoidVisitorAdapter public void visit(ImportDeclaration n, Object arg) { super.visit(n, arg); - Name class_ = n.getName(); - String className = class_.getIdentifier(); - String package_ = Objects.requireNonNull(class_.getQualifier().orElse(null)).asString(); - package_ = package_.replace('.', '/'); - this.classFileContainer.putImport(className, package_); + if (!n.isAsterisk()) + { + Name class_ = n.getName(); + String className = class_.getIdentifier(); + String package_ = Objects.requireNonNull(class_.getQualifier().orElse(null)).asString(); + package_ = package_.replace('.', '/'); + this.classFileContainer.putImport(className, package_); + } } /** @@ -137,6 +140,11 @@ public class MyVoidVisitor extends VoidVisitorAdapter } } catch (UnsolvedSymbolException ignore) { + ResolvedType resolvedType = n.getSymbolResolver().calculateType(nameExpr); + String qualifiedName = resolvedType.asReferenceType().getQualifiedName(); + String className = qualifiedName.substring(qualifiedName.lastIndexOf('.') + 1); + String packageName = qualifiedName.substring(0, qualifiedName.lastIndexOf('.')); + this.classFileContainer.putImport(className, packageName.replace('.', '/')); this.classFileContainer.putField(fieldName, new ClassFieldLocation(name1, "reference", line, columnStart, columnEnd + 1)); } } @@ -144,13 +152,6 @@ public class MyVoidVisitor extends VoidVisitorAdapter } } - @Override - public void visit(ClassOrInterfaceType n, Object arg) - { - super.visit(n, arg); -// System.err.println(n.getName().getIdentifier()); - } - /** * Visit all {@link ConstructorDeclaration}s. *

From 9a08a5f100ad70455ea0d1631d992a897f055c4f Mon Sep 17 00:00:00 2001 From: Cody <6558800+Bl3nd@users.noreply.github.com> Date: Sat, 21 Sep 2024 23:15:58 -0600 Subject: [PATCH 25/26] Token parsing updates. - Fixed a few bugs - Added methods and classes (highlighting and go-to) --- .../gui/components/actions/GoToAction.java | 297 ++++++++++++++---- .../gui/util/BytecodeViewPanelUpdater.java | 146 +++++---- .../classcontainer/ClassFileContainer.java | 38 ++- .../locations/ClassMethodLocation.java | 4 +- .../locations/ClassReferenceLocation.java | 33 ++ .../classcontainer/parser/MyVoidVisitor.java | 208 +++++++----- .../classcontainer/parser/TokenUtil.java | 1 + 7 files changed, 499 insertions(+), 228 deletions(-) create mode 100644 src/main/java/the/bytecode/club/bytecodeviewer/resources/classcontainer/locations/ClassReferenceLocation.java diff --git a/src/main/java/the/bytecode/club/bytecodeviewer/gui/components/actions/GoToAction.java b/src/main/java/the/bytecode/club/bytecodeviewer/gui/components/actions/GoToAction.java index a71e625c..75f0198e 100644 --- a/src/main/java/the/bytecode/club/bytecodeviewer/gui/components/actions/GoToAction.java +++ b/src/main/java/the/bytecode/club/bytecodeviewer/gui/components/actions/GoToAction.java @@ -1,6 +1,7 @@ package the.bytecode.club.bytecodeviewer.gui.components.actions; import org.fife.ui.rsyntaxtextarea.RSyntaxTextArea; +import org.fife.ui.rsyntaxtextarea.Token; import the.bytecode.club.bytecodeviewer.BytecodeViewer; import the.bytecode.club.bytecodeviewer.gui.resourceviewer.BytecodeViewPanel; import the.bytecode.club.bytecodeviewer.gui.resourceviewer.viewer.ClassViewer; @@ -8,6 +9,9 @@ import the.bytecode.club.bytecodeviewer.gui.util.BytecodeViewPanelUpdater; import the.bytecode.club.bytecodeviewer.resources.ResourceContainer; import the.bytecode.club.bytecodeviewer.resources.classcontainer.ClassFileContainer; import the.bytecode.club.bytecodeviewer.resources.classcontainer.locations.ClassFieldLocation; +import the.bytecode.club.bytecodeviewer.resources.classcontainer.locations.ClassMethodLocation; +import the.bytecode.club.bytecodeviewer.resources.classcontainer.locations.ClassReferenceLocation; +import the.bytecode.club.bytecodeviewer.resources.classcontainer.parser.TokenUtil; import javax.swing.*; import javax.swing.event.CaretEvent; @@ -45,7 +49,7 @@ public class GoToAction extends AbstractAction // Open the class that is associated with the field's owner. if (!field.owner.equals(container.getName())) { - openFieldClass(field, textArea); + open(textArea, false, true, false); return; } @@ -98,88 +102,247 @@ public class GoToAction extends AbstractAction } } })); + + container.methodMembers.values().forEach(methods -> methods.forEach(method -> { + if (method.line == line && method.columnStart - 1 <= column && method.columnEnd >= column) + { + Element root = textArea.getDocument().getDefaultRootElement(); + if (method.decRef.equalsIgnoreCase("declaration")) + { + int startOffset = root.getElement(method.line - 1).getStartOffset() + (method.columnStart - 1); + textArea.setCaretPosition(startOffset); + } else + { + methods.stream().filter(classMethodLocation -> classMethodLocation.owner.equals(method.owner)).forEach(classMethodLocation -> { + if (classMethodLocation.decRef.equalsIgnoreCase("declaration")) + { + int startOffset = root.getElement(classMethodLocation.line - 1).getStartOffset() + (classMethodLocation.columnStart - 1); + textArea.setCaretPosition(startOffset); + } + }); + + + open(textArea, false, false, true); + } + } + })); + + container.classReferences.values().forEach(classes -> classes.forEach(clazz -> { + String name; + if (clazz.line == line && clazz.columnStart - 1 <= column && clazz.columnEnd - 1 >= column) + { + name = clazz.owner; + Element root = textArea.getDocument().getDefaultRootElement(); + if (clazz.type.equals("declaration")) + { + int startOffset = root.getElement(clazz.line - 1).getStartOffset() + (clazz.columnStart - 1); + textArea.setCaretPosition(startOffset); + } else + { + classes.stream().filter(classReferenceLocation -> classReferenceLocation.owner.equals(name)).forEach(classReferenceLocation -> { + if (classReferenceLocation.type.equals("declaration")) + { + int startOffset = root.getElement(classReferenceLocation.line - 1).getStartOffset() + (classReferenceLocation.columnStart - 1); + textArea.setCaretPosition(startOffset); + } + }); + + // Should not really do anything when the class is already open + open(textArea, true, false, false); + } + } + })); } - /** - * Open a class that contains the declaration of a field. - * - * @param field The field to jump to - * @param textArea The text area of the current class (not the class we are opening) - */ - private void openFieldClass(ClassFieldLocation field, RSyntaxTextArea textArea) + private ClassFileContainer openClass(String lexeme, boolean field, boolean method) { - String token = textArea.modelToToken(textArea.getCaretPosition()).getLexeme(); + if (lexeme.equals(container.getName())) + return null; + ResourceContainer resourceContainer = BytecodeViewer.getFileContainer(container.getParentContainer()); - if (resourceContainer != null) + if (resourceContainer == null) + return null; + + if (field) { - String className = container.getImport(field.owner); + String className = container.getClassForField(lexeme); BytecodeViewer.viewer.workPane.addClassResource(resourceContainer, className + ".class"); ClassViewer activeResource = (ClassViewer) BytecodeViewer.viewer.workPane.getActiveResource(); HashMap classFiles = BytecodeViewer.viewer.workPane.classFiles; - Thread thread = new Thread(() -> { - try - { - BytecodeViewer.updateBusyStatus(true); - Thread.sleep(1000); - } catch (InterruptedException e) - { - throw new RuntimeException(e); - } finally - { - BytecodeViewer.updateBusyStatus(false); - } + return wait(classFiles, activeResource); + } else if (method) + { + ClassMethodLocation classMethodLocation = container.getMethodLocationsFor(lexeme).get(0); + ClassReferenceLocation classReferenceLocation = null; + try + { + classReferenceLocation = container.getClassReferenceLocationsFor(classMethodLocation.owner).get(0); + } catch (Exception ignored) + { + } - String containerName = activeResource.resource.workingName + "-" + this.container.getDecompiler(); - ClassFileContainer classFileContainer = classFiles.get(containerName); - classFileContainer.fieldMembers.forEach((field1, field2) -> { - if (field1.equals(token)) + if (classReferenceLocation == null) + return null; + + String packagePath = classReferenceLocation.packagePath; + if (packagePath.startsWith("java") || packagePath.startsWith("javax") || packagePath.startsWith("com.sun")) + return null; + + String resourceName = packagePath + "/" + classMethodLocation.owner; + if (resourceContainer.resourceClasses.containsKey(resourceName)) + { + BytecodeViewer.viewer.workPane.addClassResource(resourceContainer, resourceName + ".class"); + ClassViewer activeResource = (ClassViewer) BytecodeViewer.viewer.workPane.getActiveResource(); + HashMap classFiles = BytecodeViewer.viewer.workPane.classFiles; + return wait(classFiles, activeResource); + } + } else + { + ClassReferenceLocation classReferenceLocation = container.getClassReferenceLocationsFor(lexeme).get(0); + String packagePath = classReferenceLocation.packagePath; + if (packagePath.startsWith("java") || packagePath.startsWith("javax") || packagePath.startsWith("com.sun")) + return null; + + String resourceName = packagePath + "/" + lexeme; + if (resourceContainer.resourceClasses.containsKey(resourceName)) + { + BytecodeViewer.viewer.workPane.addClassResource(resourceContainer, resourceName + ".class"); + ClassViewer activeResource = (ClassViewer) BytecodeViewer.viewer.workPane.getActiveResource(); + HashMap classFiles = BytecodeViewer.viewer.workPane.classFiles; + return wait(classFiles, activeResource); + } + } + + return null; + } + + private void open(RSyntaxTextArea textArea, boolean isClass, boolean isField, boolean isMethod) + { + Thread thread = new Thread(() -> { + Token token = textArea.modelToToken(textArea.getCaretPosition()); + token = TokenUtil.getToken(textArea, token); + String lexeme = token.getLexeme(); + ClassFileContainer classFileContainer; + if (isClass) + { + classFileContainer = openClass(lexeme, false, false); + if (classFileContainer == null) + return; + + classFileContainer.classReferences.forEach((className, classReference) -> { + if (className.equals(lexeme)) { - field2.forEach(classFieldLocation -> { - if (classFieldLocation.type.equals("declaration")) + classReference.forEach(classReferenceLocation -> { + if (classReferenceLocation.type.equals("declaration")) { - for (int i = 0; i < 3; i++) - { - BytecodeViewPanel panel = activeResource.getPanel(i); - if (panel.textArea != null) - { - if (panel.decompiler.getDecompilerName().equals(this.container.getDecompiler())) - { - Element root = panel.textArea.getDocument().getDefaultRootElement(); - int startOffset = root.getElement(classFieldLocation.line - 1).getStartOffset() + (classFieldLocation.columnStart - 1); - panel.textArea.setCaretPosition(startOffset); - for (CaretListener caretListener : panel.textArea.getCaretListeners()) - { - if (caretListener instanceof BytecodeViewPanelUpdater.MarkerCaretListener) - { - BytecodeViewPanelUpdater.MarkerCaretListener markerCaretListener = (BytecodeViewPanelUpdater.MarkerCaretListener) caretListener; - markerCaretListener.caretUpdate(new CaretEvent(panel.textArea) - { - @Override - public int getDot() - { - return panel.textArea.getCaret().getDot(); - } - - @Override - public int getMark() - { - return 0; - } - }); - } - } - - panel.textArea.requestFocusInWindow(); - break; - } - } - } + moveCursor(classReferenceLocation.line, classReferenceLocation.columnStart); } }); } }); + } else if (isField) + { + classFileContainer = openClass(lexeme, true, false); + if (classFileContainer == null) + return; + + classFileContainer.fieldMembers.forEach((fieldName, fields) -> { + if (fieldName.equals(lexeme)) + { + fields.forEach(classFieldLocation -> { + if (classFieldLocation.type.equals("declaration")) + { + moveCursor(classFieldLocation.line, classFieldLocation.columnStart); + } + }); + } + }); + } else if (isMethod) + { + classFileContainer = openClass(lexeme, false, true); + if (classFileContainer == null) + return; + + classFileContainer.methodMembers.forEach((methodName, methods) -> { + if (methodName.equals(lexeme)) + { + methods.forEach(method -> { + if (method.decRef.equalsIgnoreCase("declaration")) + { + moveCursor(method.line, method.columnStart); + } + }); + } + }); + } + }, "Open Class"); + thread.start(); + } + + private ClassFileContainer wait(HashMap classFiles, ClassViewer activeResource) + { + String containerName = activeResource.resource.workingName + "-" + this.container.getDecompiler(); + try + { + BytecodeViewer.updateBusyStatus(true); + Thread.getAllStackTraces().forEach((name, stackTrace) -> { + if (name.getName().equals("Pane Update")) + { + try + { + name.join(); + } catch (InterruptedException e) + { + throw new RuntimeException(e); + } + } }); - thread.start(); + } catch (Exception e) + { + throw new RuntimeException(e); + } finally + { + BytecodeViewer.updateBusyStatus(false); + } + + return classFiles.get(containerName); + } + + private void moveCursor(int line, int columnStart) + { + for (int i = 0; i < 3; i++) + { + BytecodeViewPanel panel = ((ClassViewer) BytecodeViewer.viewer.workPane.getActiveResource()).getPanel(i); + if (panel.decompiler.getDecompilerName().equals(this.container.getDecompiler())) + { + Element root = panel.textArea.getDocument().getDefaultRootElement(); + int startOffset = root.getElement(line - 1).getStartOffset() + (columnStart - 1); + panel.textArea.setCaretPosition(startOffset); + for (CaretListener caretListener : panel.textArea.getCaretListeners()) + { + if (caretListener instanceof BytecodeViewPanelUpdater.MarkerCaretListener) + { + BytecodeViewPanelUpdater.MarkerCaretListener markerCaretListener = (BytecodeViewPanelUpdater.MarkerCaretListener) caretListener; + markerCaretListener.caretUpdate(new CaretEvent(panel.textArea) + { + @Override + public int getDot() + { + return panel.textArea.getCaret().getDot(); + } + + @Override + public int getMark() + { + return 0; + } + }); + } + } + + panel.textArea.requestFocusInWindow(); + break; + } } } } 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 9d59d87e..cf6f73eb 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 @@ -34,9 +34,7 @@ import the.bytecode.club.bytecodeviewer.gui.hexviewer.HexViewer; import the.bytecode.club.bytecodeviewer.gui.resourceviewer.BytecodeViewPanel; import the.bytecode.club.bytecodeviewer.gui.resourceviewer.viewer.ClassViewer; import the.bytecode.club.bytecodeviewer.resources.classcontainer.ClassFileContainer; -import the.bytecode.club.bytecodeviewer.resources.classcontainer.locations.ClassFieldLocation; -import the.bytecode.club.bytecodeviewer.resources.classcontainer.locations.ClassLocalVariableLocation; -import the.bytecode.club.bytecodeviewer.resources.classcontainer.locations.ClassParameterLocation; +import the.bytecode.club.bytecodeviewer.resources.classcontainer.locations.*; import the.bytecode.club.bytecodeviewer.resources.classcontainer.parser.TokenUtil; import the.bytecode.club.bytecodeviewer.util.MethodParser; @@ -117,7 +115,7 @@ public class BytecodeViewPanelUpdater implements Runnable final String decompiledSource = decompiler.getDecompiler().decompileClassNode(viewer.resource.getResourceClassNode(), classBytes); ClassFileContainer container = new ClassFileContainer(viewer.resource.workingName + "-" + decompiler.getDecompilerName(), decompiledSource, viewer.resource.container); - if (!container.hasBeenParsed) + if (!BytecodeViewer.viewer.workPane.classFiles.containsKey(viewer.resource.workingName + "-" + decompiler.getDecompilerName())) { container.parse(); BytecodeViewer.viewer.workPane.classFiles.put(viewer.resource.workingName + "-" + decompiler.getDecompilerName(), container); @@ -446,9 +444,13 @@ public class BytecodeViewPanelUpdater implements Runnable Token token = textArea.modelToToken(textArea.getCaretPosition()); if (token == null) { - highlighterEx.clearMarkOccurrencesHighlights(); - errorStripe.refreshMarkers(); - return; + token = textArea.modelToToken(textArea.getCaretPosition() - 1); + if (token == null) + { + highlighterEx.clearMarkOccurrencesHighlights(); + errorStripe.refreshMarkers(); + return; + } } token = TokenUtil.getToken(textArea, token); @@ -468,6 +470,11 @@ public class BytecodeViewPanelUpdater implements Runnable */ markField(textArea, classFileContainer, line, column, finalToken, highlighterEx); + /* + Methods + */ + markMethod(textArea, classFileContainer, line, column, finalToken, highlighterEx); + /* Method parameters */ @@ -478,6 +485,11 @@ public class BytecodeViewPanelUpdater implements Runnable */ markMethodLocalVariable(textArea, classFileContainer, line, column, finalToken, highlighterEx); + /* + Class references + */ + markClasses(textArea, classFileContainer, line, column, finalToken, highlighterEx); + errorStripe.refreshMarkers(); } @@ -489,20 +501,11 @@ public class BytecodeViewPanelUpdater implements Runnable try { Element root = textArea.getDocument().getDefaultRootElement(); - for ( - ClassFieldLocation location : - classFileContainer.getFieldLocationsFor(finalToken.getLexeme()) - ) + for (ClassFieldLocation location : classFileContainer.getFieldLocationsFor(finalToken.getLexeme())) { - int startOffset = root - .getElement(location.line - 1) - .getStartOffset() + (location.columnStart - 1); - int endOffset = root - .getElement(location.line - 1) - .getStartOffset() + (location.columnEnd - 1); - highlighterEx.addMarkedOccurrenceHighlight( - startOffset, endOffset, new SmartHighlightPainter() - ); + int startOffset = root.getElement(location.line - 1).getStartOffset() + (location.columnStart - 1); + int endOffset = root.getElement(location.line - 1).getStartOffset() + (location.columnEnd - 1); + highlighterEx.addMarkedOccurrenceHighlight(startOffset, endOffset, new SmartHighlightPainter()); } } catch (BadLocationException ex) { @@ -512,6 +515,35 @@ public class BytecodeViewPanelUpdater implements Runnable })); } + private void markMethod(RSyntaxTextArea textArea, ClassFileContainer classFileContainer, int line, int column, Token finalToken, RSyntaxTextAreaHighlighterEx highlighterEx) + { + classFileContainer.methodMembers.values().forEach(methods -> methods.forEach(method -> { + String owner; + String parameters; + if (method.line == line && method.columnStart - 1 <= column && method.columnEnd >= column) + { + owner = method.owner; + parameters = method.methodParameterTypes; + Element root = textArea.getDocument().getDefaultRootElement(); + for (ClassMethodLocation location : classFileContainer.getMethodLocationsFor(finalToken.getLexeme())) + { + try + { + if (Objects.equals(owner, location.owner) && Objects.equals(parameters, location.methodParameterTypes)) + { + int startOffset = root.getElement(location.line - 1).getStartOffset() + (location.columnStart - 1); + int endOffset = root.getElement(location.line - 1).getStartOffset() + (location.columnEnd - 1); + highlighterEx.addMarkedOccurrenceHighlight(startOffset, endOffset, new SmartHighlightPainter()); + } + } catch (BadLocationException e) + { + throw new RuntimeException(e); + } + } + } + })); + } + /** * Search through the text area and mark all occurrences that match the selected token. * @@ -522,14 +554,7 @@ public class BytecodeViewPanelUpdater implements Runnable * @param finalToken the token * @param highlighterEx the highlighter */ - private static void markMethodParameter( - RSyntaxTextArea textArea, - ClassFileContainer classFileContainer, - int line, - int column, - Token finalToken, - RSyntaxTextAreaHighlighterEx highlighterEx - ) + private static void markMethodParameter(RSyntaxTextArea textArea, ClassFileContainer classFileContainer, int line, int column, Token finalToken, RSyntaxTextAreaHighlighterEx highlighterEx) { classFileContainer.methodParameterMembers.values().forEach(parameters -> parameters.forEach(parameter -> { String method; @@ -539,23 +564,14 @@ public class BytecodeViewPanelUpdater implements Runnable try { Element root = textArea.getDocument().getDefaultRootElement(); - for ( - ClassParameterLocation location : - classFileContainer.getParameterLocationsFor(finalToken.getLexeme()) - ) + for (ClassParameterLocation location : classFileContainer.getParameterLocationsFor(finalToken.getLexeme())) { if (Objects.equals(method, location.method)) { - int startOffset = root - .getElement(location.line - 1) - .getStartOffset() + (location.columnStart - 1); - int endOffset = root - .getElement(location.line - 1) - .getStartOffset() + (location.columnEnd - 1); + int startOffset = root.getElement(location.line - 1).getStartOffset() + (location.columnStart - 1); + int endOffset = root.getElement(location.line - 1).getStartOffset() + (location.columnEnd - 1); - highlighterEx.addMarkedOccurrenceHighlight( - startOffset, endOffset, new SmartHighlightPainter() - ); + highlighterEx.addMarkedOccurrenceHighlight(startOffset, endOffset, new SmartHighlightPainter()); } } } catch (BadLocationException ex) @@ -576,14 +592,7 @@ public class BytecodeViewPanelUpdater implements Runnable * @param finalToken the token * @param highlighterEx the highlighter */ - private static void markMethodLocalVariable( - RSyntaxTextArea textArea, - ClassFileContainer classFileContainer, - int line, - int column, - Token finalToken, - RSyntaxTextAreaHighlighterEx highlighterEx - ) + private static void markMethodLocalVariable(RSyntaxTextArea textArea, ClassFileContainer classFileContainer, int line, int column, Token finalToken, RSyntaxTextAreaHighlighterEx highlighterEx) { classFileContainer.methodLocalMembers.values().forEach(localVariables -> localVariables.forEach(localVariable -> { String method; @@ -593,23 +602,14 @@ public class BytecodeViewPanelUpdater implements Runnable try { Element root = textArea.getDocument().getDefaultRootElement(); - for ( - ClassLocalVariableLocation location : - classFileContainer.getLocalLocationsFor(finalToken.getLexeme()) - ) + for (ClassLocalVariableLocation location : classFileContainer.getLocalLocationsFor(finalToken.getLexeme())) { if (Objects.equals(method, location.method)) { - int startOffset = root - .getElement(location.line - 1) - .getStartOffset() + (location.columnStart - 1); - int endOffset = root - .getElement(location.line - 1) - .getStartOffset() + (location.columnEnd - 1); + int startOffset = root.getElement(location.line - 1).getStartOffset() + (location.columnStart - 1); + int endOffset = root.getElement(location.line - 1).getStartOffset() + (location.columnEnd - 1); - highlighterEx.addMarkedOccurrenceHighlight( - startOffset, endOffset, new SmartHighlightPainter() - ); + highlighterEx.addMarkedOccurrenceHighlight(startOffset, endOffset, new SmartHighlightPainter()); } } } catch (BadLocationException ex) @@ -620,9 +620,29 @@ public class BytecodeViewPanelUpdater implements Runnable })); } + private void markClasses(RSyntaxTextArea textArea, ClassFileContainer classFileContainer, int line, int column, Token finalToken, RSyntaxTextAreaHighlighterEx highlighterEx) + { + classFileContainer.classReferences.values().forEach(classes -> classes.forEach(clazz -> { + if (clazz.line == line && clazz.columnStart - 1 <= column && clazz.columnEnd - 1 >= column) + { + try + { + Element root = textArea.getDocument().getDefaultRootElement(); + for (ClassReferenceLocation location : classFileContainer.getClassReferenceLocationsFor(finalToken.getLexeme())) + { + int startOffset = root.getElement(location.line - 1).getStartOffset() + (location.columnStart - 1); + int endOffset = root.getElement(location.line - 1).getStartOffset() + (location.columnEnd - 1); + highlighterEx.addMarkedOccurrenceHighlight(startOffset, endOffset, new SmartHighlightPainter()); + } + } catch (Exception ignored) + { + } + } + })); + } + public class MarkerCaretListener implements CaretListener { - private final String classContainerName; public MarkerCaretListener(String classContainerName) diff --git a/src/main/java/the/bytecode/club/bytecodeviewer/resources/classcontainer/ClassFileContainer.java b/src/main/java/the/bytecode/club/bytecodeviewer/resources/classcontainer/ClassFileContainer.java index 78265f24..f9b68eb5 100644 --- a/src/main/java/the/bytecode/club/bytecodeviewer/resources/classcontainer/ClassFileContainer.java +++ b/src/main/java/the/bytecode/club/bytecodeviewer/resources/classcontainer/ClassFileContainer.java @@ -9,10 +9,7 @@ import com.github.javaparser.symbolsolver.resolution.typesolvers.CombinedTypeSol import com.github.javaparser.symbolsolver.resolution.typesolvers.JarTypeSolver; import com.github.javaparser.symbolsolver.resolution.typesolvers.ReflectionTypeSolver; import the.bytecode.club.bytecodeviewer.resources.ResourceContainer; -import the.bytecode.club.bytecodeviewer.resources.classcontainer.locations.ClassFieldLocation; -import the.bytecode.club.bytecodeviewer.resources.classcontainer.locations.ClassLocalVariableLocation; -import the.bytecode.club.bytecodeviewer.resources.classcontainer.locations.ClassMethodLocation; -import the.bytecode.club.bytecodeviewer.resources.classcontainer.locations.ClassParameterLocation; +import the.bytecode.club.bytecodeviewer.resources.classcontainer.locations.*; import the.bytecode.club.bytecodeviewer.resources.classcontainer.parser.MyVoidVisitor; import java.io.IOException; @@ -20,6 +17,7 @@ import java.util.ArrayList; import java.util.List; import java.util.NavigableMap; import java.util.TreeMap; +import java.util.concurrent.atomic.AtomicReference; /** * This is a container for a specific class. The container name is based on the actual class name and the decompiler used. @@ -33,7 +31,7 @@ public class ClassFileContainer public transient NavigableMap> methodParameterMembers = new TreeMap<>(); public transient NavigableMap> methodLocalMembers = new TreeMap<>(); public transient NavigableMap> methodMembers = new TreeMap<>(); - public transient NavigableMap imports = new TreeMap<>(); + public transient NavigableMap> classReferences = new TreeMap<>(); public boolean hasBeenParsed = false; public final String className; @@ -56,7 +54,7 @@ public class ClassFileContainer { try { - TypeSolver typeSolver = new CombinedTypeSolver(new ReflectionTypeSolver(), new JarTypeSolver(path)); + TypeSolver typeSolver = new CombinedTypeSolver(new ReflectionTypeSolver(false), new JarTypeSolver(path)); StaticJavaParser.getParserConfiguration().setSymbolResolver(new JavaSymbolSolver(typeSolver)); CompilationUnit compilationUnit = StaticJavaParser.parse(this.content); compilationUnit.accept(new MyVoidVisitor(this, compilationUnit), null); @@ -71,12 +69,12 @@ public class ClassFileContainer public String getName() { - return this.className.substring(this.className.lastIndexOf('.') + 1); + return this.className.substring(this.className.lastIndexOf('/') + 1, this.className.lastIndexOf('.')); } public String getDecompiler() { - return getName().substring(6); + return this.className.substring(this.className.lastIndexOf('-') + 1); } public String getParentContainer() @@ -124,14 +122,28 @@ public class ClassFileContainer return methodMembers.getOrDefault(key, new ArrayList<>()); } - public void putImport(String key, String value) + public void putClassReference(String key, ClassReferenceLocation value) { - this.imports.put(key, value); + this.classReferences.computeIfAbsent(key, v -> new ArrayList<>()).add(value); } - public String getImport(String key) + public List getClassReferenceLocationsFor(String key) { - String value = this.imports.get(key); - return value + "/" + key; + return classReferences.getOrDefault(key, null); + } + + public String getClassForField(String fieldName) + { + AtomicReference className = new AtomicReference<>(""); + this.classReferences.forEach((s, v) -> { + v.forEach(classReferenceLocation -> { + if (classReferenceLocation.fieldName.equals(fieldName)) + { + className.set(classReferenceLocation.packagePath + "/" + s); + } + }); + }); + + return className.get(); } } diff --git a/src/main/java/the/bytecode/club/bytecodeviewer/resources/classcontainer/locations/ClassMethodLocation.java b/src/main/java/the/bytecode/club/bytecodeviewer/resources/classcontainer/locations/ClassMethodLocation.java index 34b821d4..38b474e1 100644 --- a/src/main/java/the/bytecode/club/bytecodeviewer/resources/classcontainer/locations/ClassMethodLocation.java +++ b/src/main/java/the/bytecode/club/bytecodeviewer/resources/classcontainer/locations/ClassMethodLocation.java @@ -7,15 +7,17 @@ package the.bytecode.club.bytecodeviewer.resources.classcontainer.locations; public class ClassMethodLocation { public final String owner; + public final String signature; public final String methodParameterTypes; public final String decRef; public final int line; public final int columnStart; public final int columnEnd; - public ClassMethodLocation(String owner, String methodParameterTypes, String decRef, int line, int columnStart, int columnEnd) + public ClassMethodLocation(String owner, String signature, String methodParameterTypes, String decRef, int line, int columnStart, int columnEnd) { this.owner = owner; + this.signature = signature; this.methodParameterTypes = methodParameterTypes; this.decRef = decRef; this.line = line; diff --git a/src/main/java/the/bytecode/club/bytecodeviewer/resources/classcontainer/locations/ClassReferenceLocation.java b/src/main/java/the/bytecode/club/bytecodeviewer/resources/classcontainer/locations/ClassReferenceLocation.java new file mode 100644 index 00000000..620e3b2d --- /dev/null +++ b/src/main/java/the/bytecode/club/bytecodeviewer/resources/classcontainer/locations/ClassReferenceLocation.java @@ -0,0 +1,33 @@ +package the.bytecode.club.bytecodeviewer.resources.classcontainer.locations; + +/** + * Created by Bl3nd. + * Date: 9/20/2024 + */ +public class ClassReferenceLocation +{ + public final String owner; + public final String packagePath; + public final String fieldName; + public final String type; + public final int line; + public final int columnStart; + public final int columnEnd; + + public ClassReferenceLocation(String owner, String packagePath, String fieldName, String type, int line, int columnStart, int columnEnd) + { + this.owner = owner; + this.packagePath = packagePath; + this.fieldName = fieldName; + this.type = type; + this.line = line; + this.columnStart = columnStart; + this.columnEnd = columnEnd; + } + + @Override + public String toString() + { + return "ClassClassLocation{" + "owner='" + owner + '\'' + ", fieldName='" + fieldName + '\'' + ", type='" + type + '\'' + ", line=" + line + ", columnStart=" + columnStart + ", columnEnd=" + columnEnd + '}'; + } +} \ No newline at end of file diff --git a/src/main/java/the/bytecode/club/bytecodeviewer/resources/classcontainer/parser/MyVoidVisitor.java b/src/main/java/the/bytecode/club/bytecodeviewer/resources/classcontainer/parser/MyVoidVisitor.java index 99b6dfba..ae5a2ec8 100644 --- a/src/main/java/the/bytecode/club/bytecodeviewer/resources/classcontainer/parser/MyVoidVisitor.java +++ b/src/main/java/the/bytecode/club/bytecodeviewer/resources/classcontainer/parser/MyVoidVisitor.java @@ -2,22 +2,19 @@ package the.bytecode.club.bytecodeviewer.resources.classcontainer.parser; import com.github.javaparser.Range; import com.github.javaparser.ast.CompilationUnit; -import com.github.javaparser.ast.ImportDeclaration; import com.github.javaparser.ast.body.*; import com.github.javaparser.ast.expr.*; import com.github.javaparser.ast.stmt.*; +import com.github.javaparser.ast.type.ClassOrInterfaceType; import com.github.javaparser.ast.visitor.VoidVisitorAdapter; import com.github.javaparser.resolution.UnsolvedSymbolException; +import com.github.javaparser.resolution.declarations.ResolvedConstructorDeclaration; +import com.github.javaparser.resolution.declarations.ResolvedMethodDeclaration; +import com.github.javaparser.resolution.declarations.ResolvedReferenceTypeDeclaration; import com.github.javaparser.resolution.declarations.ResolvedValueDeclaration; import com.github.javaparser.resolution.types.ResolvedType; import the.bytecode.club.bytecodeviewer.resources.classcontainer.ClassFileContainer; -import the.bytecode.club.bytecodeviewer.resources.classcontainer.locations.ClassFieldLocation; -import the.bytecode.club.bytecodeviewer.resources.classcontainer.locations.ClassLocalVariableLocation; -import the.bytecode.club.bytecodeviewer.resources.classcontainer.locations.ClassMethodLocation; -import the.bytecode.club.bytecodeviewer.resources.classcontainer.locations.ClassParameterLocation; - -import java.util.Objects; -import java.util.concurrent.atomic.AtomicInteger; +import the.bytecode.club.bytecodeviewer.resources.classcontainer.locations.*; /** * Our custom visitor that allows us to get the information from JavaParser we need. @@ -47,6 +44,19 @@ public class MyVoidVisitor extends VoidVisitorAdapter return method.getDeclarationAsString(false, false); } + @Override + public void visit(ClassOrInterfaceDeclaration n, Object arg) + { + super.visit(n, arg); + SimpleName name = n.getName(); + Range range = name.getRange().get(); + ResolvedReferenceTypeDeclaration resolve = n.resolve(); + int line = range.begin.line; + int columnStart = range.begin.column; + int columnEnd = range.end.column; + this.classFileContainer.putClassReference(resolve.getName(), new ClassReferenceLocation(getOwner(), resolve.getPackageName(), "", "declaration", line, columnStart, columnEnd + 1)); + } + /** * Visit all {@link FieldDeclaration}s. *

@@ -72,16 +82,21 @@ public class MyVoidVisitor extends VoidVisitorAdapter } @Override - public void visit(ImportDeclaration n, Object arg) + public void visit(ClassOrInterfaceType n, Object arg) { super.visit(n, arg); - if (!n.isAsterisk()) + try { - Name class_ = n.getName(); - String className = class_.getIdentifier(); - String package_ = Objects.requireNonNull(class_.getQualifier().orElse(null)).asString(); - package_ = package_.replace('.', '/'); - this.classFileContainer.putImport(className, package_); + ResolvedType resolve = n.resolve(); + String nameAsString = n.getNameAsString(); + String qualifiedName = resolve.asReferenceType().getQualifiedName(); + String packagePath = qualifiedName.substring(0, qualifiedName.lastIndexOf('.')).replace('.', '/'); + Range range = n.getName().getRange().get(); + int line = range.begin.line; + int columnStart = range.begin.column; + int columnEnd = range.end.column; + this.classFileContainer.putClassReference(nameAsString, new ClassReferenceLocation(getOwner(), packagePath, "", "reference", line, columnStart, columnEnd + 1)); + } catch (Exception e) { } } @@ -144,9 +159,17 @@ public class MyVoidVisitor extends VoidVisitorAdapter String qualifiedName = resolvedType.asReferenceType().getQualifiedName(); String className = qualifiedName.substring(qualifiedName.lastIndexOf('.') + 1); String packageName = qualifiedName.substring(0, qualifiedName.lastIndexOf('.')); - this.classFileContainer.putImport(className, packageName.replace('.', '/')); + this.classFileContainer.putClassReference(className, new ClassReferenceLocation(getOwner(), packageName.replace('.', '/'), fieldName, "reference", line1, columnStart1, columnEnd1 + 1)); this.classFileContainer.putField(fieldName, new ClassFieldLocation(name1, "reference", line, columnStart, columnEnd + 1)); } + } else if (scope instanceof ThisExpr) { + ThisExpr thisExpr = (ThisExpr) scope; + ResolvedType resolvedType = n.getSymbolResolver().calculateType(thisExpr); + String qualifiedName = resolvedType.asReferenceType().getQualifiedName(); + String className = qualifiedName.substring(qualifiedName.lastIndexOf('.') + 1); + String packageName = qualifiedName.substring(0, qualifiedName.lastIndexOf('.')); + this.classFileContainer.putClassReference(className, new ClassReferenceLocation(getOwner(), packageName.replace('.', '/'), fieldName, "reference", line, columnStart, columnEnd + 1)); + this.classFileContainer.putField(fieldName, new ClassFieldLocation(className, "reference", line, columnStart, columnEnd + 1)); } } } @@ -165,8 +188,6 @@ public class MyVoidVisitor extends VoidVisitorAdapter public void visit(ConstructorDeclaration n, Object arg) { super.visit(n, arg); - StringBuilder parameterTypes = new StringBuilder(); - AtomicInteger count = new AtomicInteger(); n.getParameters().forEach(parameter -> { SimpleName name = parameter.getName(); String parameterName = name.getIdentifier(); @@ -174,25 +195,24 @@ public class MyVoidVisitor extends VoidVisitorAdapter int line = range.begin.line; int columnStart = range.begin.column; int columnEnd = range.end.column; - this.classFileContainer.putParameter(parameterName, new ClassParameterLocation(getOwner(), n.getDeclarationAsString(false, false), - "declaration", line, columnStart, columnEnd + 1)); - count.getAndIncrement(); - parameterTypes.append(parameter.getTypeAsString()); - if (n.getParameters().size() > 1 && count.get() != n.getParameters().size()) - { - parameterTypes.append(", "); - } + this.classFileContainer.putParameter(parameterName, new ClassParameterLocation(getOwner(), n.getDeclarationAsString(false, false), "declaration", line, columnStart, columnEnd + 1)); }); + ResolvedConstructorDeclaration resolve = n.resolve(); + String signature = resolve.getQualifiedSignature(); + String parameters = ""; + if (resolve.getNumberOfParams() != 0) + { + parameters = signature.substring(signature.indexOf('(') + 1, signature.lastIndexOf(')')); + } + SimpleName simpleName = n.getName(); String constructorName = simpleName.getIdentifier(); Range range = simpleName.getRange().get(); int line = range.begin.line; int columnStart = range.begin.column; int columnEnd = range.end.column; - this.classFileContainer.putMethod(constructorName, new ClassMethodLocation(getOwner(), parameterTypes.toString(), "declaration", line, - columnStart, - columnEnd + 1)); + this.classFileContainer.putMethod(constructorName, new ClassMethodLocation(resolve.getClassName(), signature, parameters, "declaration", line, columnStart, columnEnd + 1)); } /** @@ -261,33 +281,31 @@ public class MyVoidVisitor extends VoidVisitorAdapter public void visit(MethodDeclaration n, Object arg) { super.visit(n, arg); - StringBuilder parameterTypes = new StringBuilder(); - AtomicInteger count = new AtomicInteger(); - n.getParameters().forEach(parameter -> { - SimpleName name = parameter.getName(); - String parameterName = name.getIdentifier(); - Range range = name.getRange().get(); - int line = range.begin.line; - int columnStart = range.begin.column; - int columnEnd = range.end.column; - this.classFileContainer.putParameter(parameterName, new ClassParameterLocation(getOwner(), n.getDeclarationAsString(false, false), - "declaration", line, columnStart, columnEnd + 1)); - count.getAndIncrement(); - parameterTypes.append(parameter.getTypeAsString()); - if (n.getParameters().size() > 1 && count.get() != n.getParameters().size()) - { - parameterTypes.append(", "); - } - }); + ResolvedMethodDeclaration resolve = n.resolve(); + String signature = resolve.getQualifiedSignature(); + String parameters = ""; + if (resolve.getNumberOfParams() != 0) + { + parameters = signature.substring(signature.indexOf('(') + 1, signature.lastIndexOf(')')); + } SimpleName methodSimpleName = n.getName(); - String methodName = methodSimpleName.getIdentifier(); Range range = methodSimpleName.getRange().get(); int line = range.begin.line; int columnStart = range.begin.column; int columnEnd = range.end.column; - this.classFileContainer.putMethod(methodName, new ClassMethodLocation(getOwner(), parameterTypes.toString(), "declaration", line, columnStart, - columnEnd + 1)); + this.classFileContainer.putMethod(methodSimpleName.getIdentifier(), new ClassMethodLocation(resolve.getClassName(), signature, parameters, "declaration", line, columnStart, columnEnd + 1)); + + n.getParameters().forEach(parameter -> { + SimpleName name = parameter.getName(); + String parameterName = name.getIdentifier(); + Range range1 = name.getRange().get(); + int line1 = range1.begin.line; + int columnStart1 = range1.begin.column; + int columnEnd1 = range1.end.column; + this.classFileContainer.putParameter(parameterName, new ClassParameterLocation(getOwner(), n.getDeclarationAsString(false, false), + "declaration", line1, columnStart1, columnEnd1 + 1)); + }); } /** @@ -311,6 +329,26 @@ public class MyVoidVisitor extends VoidVisitorAdapter } } + try + { + ResolvedMethodDeclaration resolve = n.resolve(); + String signature = resolve.getQualifiedSignature(); + String parameters = ""; + if (resolve.getNumberOfParams() != 0) + { + parameters = signature.substring(signature.indexOf('(') + 1, signature.lastIndexOf(')')); + } + + SimpleName methodSimpleName = n.getName(); + Range range = methodSimpleName.getRange().get(); + int line = range.begin.line; + int columnStart = range.begin.column; + int columnEnd = range.end.column; + this.classFileContainer.putMethod(methodSimpleName.getIdentifier(), new ClassMethodLocation(resolve.getClassName(), signature, parameters, "reference", line, columnStart, columnEnd + 1)); + } catch (Exception e) + { + } + if (method != null) { if (n.hasScope()) @@ -319,28 +357,32 @@ public class MyVoidVisitor extends VoidVisitorAdapter if (scope instanceof NameExpr) { NameExpr nameExpr = (NameExpr) scope; + SimpleName simpleName = nameExpr.getName(); + String name = simpleName.getIdentifier(); + Range range1 = simpleName.getRange().get(); + int line1 = range1.begin.line; + int columnStart1 = range1.begin.column; + int columnEnd1 = range1.end.column; try { ResolvedValueDeclaration vd = nameExpr.resolve(); - SimpleName simpleName = nameExpr.getName(); - String name = simpleName.getIdentifier(); - Range range = simpleName.getRange().get(); - int line = range.begin.line; - int columnStart = range.begin.column; - int columnEnd = range.end.column; if (vd.isField()) { - this.classFileContainer.putField(name, new ClassFieldLocation(getOwner(), "reference", line, columnStart, columnEnd + 1)); + this.classFileContainer.putField(name, new ClassFieldLocation(getOwner(), "reference", line1, columnStart1, columnEnd1 + 1)); } else if (vd.isVariable()) { - this.classFileContainer.putLocalVariable(name, new ClassLocalVariableLocation(getOwner(), getMethod(method), "reference", line, columnStart, columnEnd + 1)); + this.classFileContainer.putLocalVariable(name, new ClassLocalVariableLocation(getOwner(), getMethod(method), "reference", line1, columnStart1, columnEnd1 + 1)); } else if (vd.isParameter()) { - this.classFileContainer.putParameter(name, new ClassParameterLocation(getOwner(), getMethod(method), "reference", line, columnStart, columnEnd + 1)); + this.classFileContainer.putParameter(name, new ClassParameterLocation(getOwner(), getMethod(method), "reference", line1, columnStart1, columnEnd1 + 1)); } } catch (UnsolvedSymbolException ignored) { - + ResolvedType resolvedType = n.getSymbolResolver().calculateType(nameExpr); + String qualifiedName = resolvedType.asReferenceType().getQualifiedName(); + String className = qualifiedName.substring(qualifiedName.lastIndexOf('.') + 1); + String packageName = qualifiedName.substring(0, qualifiedName.lastIndexOf('.')); + this.classFileContainer.putClassReference(className, new ClassReferenceLocation(getOwner(), packageName.replace('.', '/'), "", "reference", line1, columnStart1, columnEnd1 + 1)); } } } @@ -353,19 +395,19 @@ public class MyVoidVisitor extends VoidVisitorAdapter ResolvedValueDeclaration vd = nameExpr.resolve(); SimpleName simpleName = nameExpr.getName(); String name = simpleName.getIdentifier(); - Range range = simpleName.getRange().get(); - int line = range.begin.line; - int columnStart = range.begin.column; - int columnEnd = range.end.column; + Range range1 = simpleName.getRange().get(); + int line1 = range1.begin.line; + int columnStart1 = range1.begin.column; + int columnEnd1 = range1.end.column; if (vd.isField()) { - this.classFileContainer.putField(name, new ClassFieldLocation(getOwner(), "reference", line, columnStart, columnEnd + 1)); + this.classFileContainer.putField(name, new ClassFieldLocation(getOwner(), "reference", line1, columnStart1, columnEnd1 + 1)); } else if (vd.isVariable()) { - this.classFileContainer.putLocalVariable(name, new ClassLocalVariableLocation(getOwner(), getMethod(finalMethod), "reference", line, columnStart, columnEnd + 1)); + this.classFileContainer.putLocalVariable(name, new ClassLocalVariableLocation(getOwner(), getMethod(finalMethod), "reference", line1, columnStart1, columnEnd1 + 1)); } else if (vd.isParameter()) { - this.classFileContainer.putParameter(name, new ClassParameterLocation(getOwner(), getMethod(finalMethod), "reference", line, columnStart, columnEnd + 1)); + this.classFileContainer.putParameter(name, new ClassParameterLocation(getOwner(), getMethod(finalMethod), "reference", line1, columnStart1, columnEnd1 + 1)); } } }); @@ -382,19 +424,19 @@ public class MyVoidVisitor extends VoidVisitorAdapter ResolvedValueDeclaration vd = nameExpr.resolve(); SimpleName simpleName = nameExpr.getName(); String name = simpleName.getIdentifier(); - Range range = simpleName.getRange().get(); - int line = range.begin.line; - int columnStart = range.begin.column; - int columnEnd = range.end.column; + Range range1 = simpleName.getRange().get(); + int line1 = range1.begin.line; + int columnStart1 = range1.begin.column; + int columnEnd1 = range1.end.column; if (vd.isField()) { - this.classFileContainer.putField(name, new ClassFieldLocation(getOwner(), "reference", line, columnStart, columnEnd + 1)); + this.classFileContainer.putField(name, new ClassFieldLocation(getOwner(), "reference", line1, columnStart1, columnEnd1 + 1)); } else if (vd.isVariable()) { - this.classFileContainer.putLocalVariable(name, new ClassLocalVariableLocation(getOwner(), "static", "reference", line, columnStart, columnEnd + 1)); + this.classFileContainer.putLocalVariable(name, new ClassLocalVariableLocation(getOwner(), "static", "reference", line1, columnStart1, columnEnd1 + 1)); } else if (vd.isParameter()) { - this.classFileContainer.putParameter(name, new ClassParameterLocation(getOwner(), "static", "reference", line, columnStart, columnEnd + 1)); + this.classFileContainer.putParameter(name, new ClassParameterLocation(getOwner(), "static", "reference", line1, columnStart1, columnEnd1 + 1)); } } catch (UnsolvedSymbolException ignored) { @@ -410,19 +452,19 @@ public class MyVoidVisitor extends VoidVisitorAdapter ResolvedValueDeclaration vd = nameExpr.resolve(); SimpleName simpleName = nameExpr.getName(); String name = simpleName.getIdentifier(); - Range range = simpleName.getRange().get(); - int line = range.begin.line; - int columnStart = range.begin.column; - int columnEnd = range.end.column; + Range range1 = simpleName.getRange().get(); + int line1 = range1.begin.line; + int columnStart1 = range1.begin.column; + int columnEnd1 = range1.end.column; if (vd.isField()) { - this.classFileContainer.putField(name, new ClassFieldLocation(getOwner(), "reference", line, columnStart, columnEnd + 1)); + this.classFileContainer.putField(name, new ClassFieldLocation(getOwner(), "reference", line1, columnStart1, columnEnd1 + 1)); } else if (vd.isVariable()) { - this.classFileContainer.putLocalVariable(name, new ClassLocalVariableLocation(getOwner(), "static", "reference", line, columnStart, columnEnd + 1)); + this.classFileContainer.putLocalVariable(name, new ClassLocalVariableLocation(getOwner(), "static", "reference", line1, columnStart1, columnEnd1 + 1)); } else if (vd.isParameter()) { - this.classFileContainer.putParameter(name, new ClassParameterLocation(getOwner(), "static", "reference", line, columnStart, columnEnd + 1)); + this.classFileContainer.putParameter(name, new ClassParameterLocation(getOwner(), "static", "reference", line1, columnStart1, columnEnd1 + 1)); } } }); @@ -640,9 +682,7 @@ public class MyVoidVisitor extends VoidVisitorAdapter } else if (vd.isVariable()) { this.classFileContainer.putLocalVariable(name, new ClassLocalVariableLocation(getOwner(), "static", "reference", line, columnStart, columnEnd + 1)); - }/* else if (vd.isParameter()) { - System.err.println("AssignExpr - parameter2"); - }*/ + } } catch (UnsolvedSymbolException e) { System.err.println(nameExpr.getName().getIdentifier() + " not resolved. " + e.getMessage()); diff --git a/src/main/java/the/bytecode/club/bytecodeviewer/resources/classcontainer/parser/TokenUtil.java b/src/main/java/the/bytecode/club/bytecodeviewer/resources/classcontainer/parser/TokenUtil.java index 5bb5b8ae..0860efd7 100644 --- a/src/main/java/the/bytecode/club/bytecodeviewer/resources/classcontainer/parser/TokenUtil.java +++ b/src/main/java/the/bytecode/club/bytecodeviewer/resources/classcontainer/parser/TokenUtil.java @@ -24,6 +24,7 @@ public class TokenUtil || lexeme.equals(" ") || lexeme.equals(";") || lexeme.equals(",") + || lexeme.equals(">") ? textArea.modelToToken(textArea.getCaretPosition() - 1) : token; } From 06e61171752dcf6e66d6759431cf3ece0c2e2ff0 Mon Sep 17 00:00:00 2001 From: Cody <6558800+Bl3nd@users.noreply.github.com> Date: Mon, 23 Sep 2024 21:59:51 -0600 Subject: [PATCH 26/26] Add ability to use 'CTRL' + LMB for go to action. --- .../gui/util/BytecodeViewPanelUpdater.java | 45 ++++++++++++++++++- 1 file changed, 43 insertions(+), 2 deletions(-) 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 cf6f73eb..33e79048 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 @@ -46,8 +46,7 @@ import javax.swing.event.ChangeListener; import javax.swing.text.BadLocationException; import javax.swing.text.Element; import java.awt.*; -import java.awt.event.InputEvent; -import java.awt.event.KeyEvent; +import java.awt.event.*; import java.util.Objects; import java.util.regex.Matcher; @@ -434,6 +433,48 @@ public class BytecodeViewPanelUpdater implements Runnable bytecodeViewPanel.textArea.getInputMap().put(KeyStroke.getKeyStroke(KeyEvent.VK_B, InputEvent.CTRL_DOWN_MASK), "goToAction"); bytecodeViewPanel.textArea.getActionMap().put("goToAction", new GoToAction(classFileContainer)); + bytecodeViewPanel.textArea.addMouseMotionListener(new MouseMotionAdapter() + { + @Override + public void mouseMoved(MouseEvent e) + { + if (e.isControlDown()) + { + RSyntaxTextArea textArea = (RSyntaxTextArea) e.getSource(); + Token token = textArea.viewToToken(e.getPoint()); + if (token != null) + { + String lexeme = token.getLexeme(); + if (classFileContainer.fieldMembers.containsKey(lexeme) || classFileContainer.methodMembers.containsKey(lexeme) + || classFileContainer.methodLocalMembers.containsKey(lexeme) || classFileContainer.methodParameterMembers.containsKey(lexeme) + || classFileContainer.classReferences.containsKey(lexeme)) + { + textArea.setCursor(new Cursor(Cursor.HAND_CURSOR)); + } + } + } else + { + if (bytecodeViewPanel.textArea.getCursor().getType() != Cursor.TEXT_CURSOR) + { + bytecodeViewPanel.textArea.setCursor(new Cursor(Cursor.TEXT_CURSOR)); + } + } + } + }); + + bytecodeViewPanel.textArea.addMouseListener(new MouseAdapter() + { + @Override + public void mouseClicked(MouseEvent e) + { + if (e.isControlDown()) + { + RSyntaxTextArea textArea = (RSyntaxTextArea) e.getSource(); + textArea.getActionMap().get("goToAction").actionPerformed(new ActionEvent(textArea, ActionEvent.ACTION_PERFORMED, "goToAction")); + } + } + }); + markerCaretListener = new MarkerCaretListener(classContainerName); bytecodeViewPanel.textArea.addCaretListener(markerCaretListener); }