From d642610d72214ed62e8ee8315ffdd43e66e5aca3 Mon Sep 17 00:00:00 2001 From: Cody <6558800+Bl3nd@users.noreply.github.com> Date: Sat, 28 Sep 2024 00:12:42 -0600 Subject: [PATCH] Clean-up --- .../bytecodeviewer/gui/util/BytecodeViewPanelUpdater.java | 8 ++------ .../resources/classcontainer/ClassFileContainer.java | 2 -- 2 files changed, 2 insertions(+), 8 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 52465cab2..4e1a40fcb 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 @@ -510,7 +510,6 @@ private void markOccurrences(RSyntaxTextArea textArea, ClassFileContainer classF if (token == null) { highlighterEx.clearMarkOccurrencesHighlights(); - errorStripe.refreshMarkers(); return; } } @@ -519,7 +518,6 @@ private void markOccurrences(RSyntaxTextArea textArea, ClassFileContainer classF if (token == null) { highlighterEx.clearMarkOccurrencesHighlights(); - errorStripe.refreshMarkers(); return; } @@ -620,7 +618,7 @@ private void markMethod(RSyntaxTextArea textArea, ClassFileContainer classFileCo * @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 void markMethodParameter(RSyntaxTextArea textArea, ClassFileContainer classFileContainer, int line, int column, Token finalToken, RSyntaxTextAreaHighlighterEx highlighterEx) { classFileContainer.methodParameterMembers.values().forEach(parameters -> parameters.forEach(parameter -> { @@ -637,7 +635,6 @@ private static void markMethodParameter(RSyntaxTextArea textArea, ClassFileConta { 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()); } } @@ -660,7 +657,7 @@ private static void markMethodParameter(RSyntaxTextArea textArea, ClassFileConta * @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 void markMethodLocalVariable(RSyntaxTextArea textArea, ClassFileContainer classFileContainer, int line, int column, Token finalToken, RSyntaxTextAreaHighlighterEx highlighterEx) { classFileContainer.methodLocalMembers.values().forEach(localVariables -> localVariables.forEach(localVariable -> { @@ -677,7 +674,6 @@ private static void markMethodLocalVariable(RSyntaxTextArea textArea, ClassFileC { 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()); } } 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 2d0429fec..50e71bb6f 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 @@ -1,10 +1,8 @@ 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.resolution.UnsolvedSymbolException; import com.github.javaparser.symbolsolver.JavaSymbolSolver; import com.github.javaparser.symbolsolver.resolution.typesolvers.CombinedTypeSolver; import com.github.javaparser.symbolsolver.resolution.typesolvers.JarTypeSolver;