Skip to content

Commit

Permalink
style: run spotless java over project
Browse files Browse the repository at this point in the history
  • Loading branch information
jumanji144 committed Dec 9, 2023
1 parent 84b6524 commit 8370db8
Show file tree
Hide file tree
Showing 75 changed files with 191 additions and 118 deletions.
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
package me.darknet.assembler.cli;

import me.darknet.assembler.cli.commands.MainCommand;

import picocli.CommandLine;

public class JasmCli {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
import me.darknet.assembler.compiler.Compiler;
import me.darknet.assembler.compiler.CompilerOptions;
import me.darknet.assembler.helper.Processor;

import picocli.CommandLine;

import java.io.File;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
import me.darknet.assembler.printer.JvmClassPrinter;
import me.darknet.assembler.printer.PrintContext;
import me.darknet.assembler.printer.Printer;

import picocli.CommandLine;

import java.io.File;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
package me.darknet.assembler.cli.commands;

import me.darknet.assembler.parser.BytecodeFormat;

import picocli.CommandLine;

@CommandLine.Command(
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
package me.darknet.assembler.compile;

import me.darknet.assembler.compiler.InheritanceChecker;

import org.objectweb.asm.ClassReader;
import org.objectweb.asm.ClassWriter;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,11 +1,5 @@
package me.darknet.assembler.compile;

import dev.xdark.blw.BytecodeLibrary;
import dev.xdark.blw.asm.AsmBytecodeLibrary;
import dev.xdark.blw.asm.ClassWriterProvider;
import dev.xdark.blw.classfile.ClassBuilder;
import dev.xdark.blw.classfile.ClassFileView;
import dev.xdark.blw.version.JavaVersion;
import me.darknet.assembler.ast.ASTElement;
import me.darknet.assembler.compile.builder.BlwReplaceClassBuilder;
import me.darknet.assembler.compile.visitor.BlwRootVisitor;
Expand All @@ -14,6 +8,13 @@
import me.darknet.assembler.error.ErrorCollector;
import me.darknet.assembler.error.Result;
import me.darknet.assembler.transformer.Transformer;

import dev.xdark.blw.BytecodeLibrary;
import dev.xdark.blw.asm.AsmBytecodeLibrary;
import dev.xdark.blw.asm.ClassWriterProvider;
import dev.xdark.blw.classfile.ClassBuilder;
import dev.xdark.blw.classfile.ClassFileView;
import dev.xdark.blw.version.JavaVersion;
import org.objectweb.asm.ClassReader;
import org.objectweb.asm.ClassWriter;
import org.objectweb.asm.Opcodes;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
package me.darknet.assembler.compile;

import dev.xdark.blw.version.JavaVersion;
import me.darknet.assembler.compile.analysis.VariableNameLookup;
import me.darknet.assembler.compile.analysis.jvm.JvmAnalysisEngine;
import me.darknet.assembler.compile.analysis.jvm.JvmAnalysisEngineFactory;
Expand All @@ -9,6 +8,8 @@
import me.darknet.assembler.compiler.CompilerOptions;
import me.darknet.assembler.compiler.InheritanceChecker;
import me.darknet.assembler.compiler.ReflectiveInheritanceChecker;

import dev.xdark.blw.version.JavaVersion;
import org.jetbrains.annotations.NotNull;
import org.objectweb.asm.ClassWriter;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
package me.darknet.assembler.compile.analysis;

import me.darknet.assembler.compile.analysis.frame.FrameMergeException;

import dev.xdark.blw.code.CodeElement;
import dev.xdark.blw.simulation.SimulationException;
import me.darknet.assembler.compile.analysis.frame.FrameMergeException;
import org.jetbrains.annotations.NotNull;
import org.jetbrains.annotations.Nullable;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

import me.darknet.assembler.ast.primitive.ASTCode;
import me.darknet.assembler.compile.analysis.frame.Frame;

import org.jetbrains.annotations.NotNull;
import org.jetbrains.annotations.Nullable;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
package me.darknet.assembler.compile.analysis;

import me.darknet.assembler.compiler.InheritanceChecker;

import dev.xdark.blw.type.ClassType;
import dev.xdark.blw.type.ObjectType;
import dev.xdark.blw.type.PrimitiveType;
import dev.xdark.blw.type.Types;
import me.darknet.assembler.compiler.InheritanceChecker;
import org.jetbrains.annotations.NotNull;

public class AnalysisUtils {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
package me.darknet.assembler.compile.analysis;

import dev.xdark.blw.type.*;
import me.darknet.assembler.compiler.InheritanceChecker;

import dev.xdark.blw.type.*;
import org.jetbrains.annotations.NotNull;
import org.jetbrains.annotations.Nullable;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@
import org.jetbrains.annotations.NotNull;

import java.io.*;
import java.lang.reflect.Type;
import java.lang.reflect.*;
import java.lang.reflect.Type;
import java.net.*;
import java.nio.Buffer;
import java.nio.ByteBuffer;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
package me.darknet.assembler.compile.analysis.frame;

import dev.xdark.blw.type.ClassType;
import me.darknet.assembler.compile.analysis.Local;
import me.darknet.assembler.compiler.InheritanceChecker;

import dev.xdark.blw.type.ClassType;
import org.jetbrains.annotations.NotNull;
import org.jetbrains.annotations.Nullable;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
package me.darknet.assembler.compile.analysis.frame;

import me.darknet.assembler.compile.analysis.Local;

import org.jetbrains.annotations.NotNull;

public interface FrameOps<F extends Frame> {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
package me.darknet.assembler.compile.analysis.frame;

import me.darknet.assembler.compile.analysis.Local;

import dev.xdark.blw.type.ClassType;
import dev.xdark.blw.type.Types;
import me.darknet.assembler.compile.analysis.Local;
import org.jetbrains.annotations.NotNull;
import org.jetbrains.annotations.Nullable;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
package me.darknet.assembler.compile.analysis.frame;

import dev.xdark.blw.type.ClassType;
import dev.xdark.blw.type.Types;
import me.darknet.assembler.compile.analysis.AnalysisUtils;
import me.darknet.assembler.compile.analysis.Local;
import me.darknet.assembler.compiler.InheritanceChecker;

import dev.xdark.blw.type.ClassType;
import dev.xdark.blw.type.Types;
import org.jetbrains.annotations.NotNull;

import java.util.*;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
package me.darknet.assembler.compile.analysis.frame;

import me.darknet.assembler.compile.analysis.Local;

import org.jetbrains.annotations.NotNull;

public class TypedFrameOps implements FrameOps<TypedFrame> {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
package me.darknet.assembler.compile.analysis.frame;

import dev.xdark.blw.type.ClassType;
import dev.xdark.blw.type.Types;
import me.darknet.assembler.compile.analysis.Local;
import me.darknet.assembler.compile.analysis.Value;
import me.darknet.assembler.compile.analysis.ValuedLocal;

import dev.xdark.blw.type.ClassType;
import dev.xdark.blw.type.Types;
import org.jetbrains.annotations.NotNull;
import org.jetbrains.annotations.Nullable;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,12 +1,13 @@
package me.darknet.assembler.compile.analysis.frame;

import dev.xdark.blw.type.ClassType;
import dev.xdark.blw.type.Types;
import me.darknet.assembler.compile.analysis.AnalysisUtils;
import me.darknet.assembler.compile.analysis.Value;
import me.darknet.assembler.compile.analysis.ValuedLocal;
import me.darknet.assembler.compile.analysis.Values;
import me.darknet.assembler.compiler.InheritanceChecker;

import dev.xdark.blw.type.ClassType;
import dev.xdark.blw.type.Types;
import org.jetbrains.annotations.NotNull;

import java.util.*;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
import me.darknet.assembler.compile.analysis.Local;
import me.darknet.assembler.compile.analysis.ValuedLocal;
import me.darknet.assembler.compile.analysis.Values;

import org.jetbrains.annotations.NotNull;

public class ValuedFrameOps implements FrameOps<ValuedFrame> {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,18 +1,19 @@
package me.darknet.assembler.compile.analysis.jvm;

import me.darknet.assembler.compile.analysis.AnalysisException;
import me.darknet.assembler.compile.analysis.Local;
import me.darknet.assembler.compile.analysis.frame.Frame;
import me.darknet.assembler.compile.analysis.frame.FrameMergeException;
import me.darknet.assembler.compile.analysis.frame.FrameOps;
import me.darknet.assembler.compiler.InheritanceChecker;

import dev.xdark.blw.code.*;
import dev.xdark.blw.code.instruction.BranchInstruction;
import dev.xdark.blw.code.instruction.ConditionalJumpInstruction;
import dev.xdark.blw.simulation.ExecutionEngines;
import dev.xdark.blw.simulation.Simulation;
import dev.xdark.blw.type.InstanceType;
import dev.xdark.blw.type.Types;
import me.darknet.assembler.compile.analysis.AnalysisException;
import me.darknet.assembler.compile.analysis.Local;
import me.darknet.assembler.compile.analysis.frame.Frame;
import me.darknet.assembler.compile.analysis.frame.FrameMergeException;
import me.darknet.assembler.compile.analysis.frame.FrameOps;
import me.darknet.assembler.compiler.InheritanceChecker;
import org.jetbrains.annotations.NotNull;
import org.jetbrains.annotations.Nullable;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
package me.darknet.assembler.compile.analysis.jvm;

import dev.xdark.blw.code.instruction.MethodInstruction;
import me.darknet.assembler.compile.analysis.Value;
import me.darknet.assembler.compile.analysis.Values;

import dev.xdark.blw.code.instruction.MethodInstruction;
import org.jetbrains.annotations.NotNull;
import org.jetbrains.annotations.Nullable;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
package me.darknet.assembler.compile.analysis.jvm;

import dev.xdark.blw.code.instruction.FieldInstruction;
import me.darknet.assembler.compile.analysis.Value;

import dev.xdark.blw.code.instruction.FieldInstruction;
import org.jetbrains.annotations.NotNull;
import org.jetbrains.annotations.Nullable;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,15 +1,16 @@
package me.darknet.assembler.compile.analysis.jvm;

import dev.xdark.blw.code.Instruction;
import dev.xdark.blw.code.JavaOpcodes;
import dev.xdark.blw.code.Label;
import dev.xdark.blw.code.instruction.*;
import dev.xdark.blw.simulation.ExecutionEngine;
import me.darknet.assembler.compile.analysis.AnalysisException;
import me.darknet.assembler.compile.analysis.AnalysisResults;
import me.darknet.assembler.compile.analysis.VariableNameLookup;
import me.darknet.assembler.compile.analysis.frame.Frame;
import me.darknet.assembler.compile.analysis.frame.FrameOps;

import dev.xdark.blw.code.Instruction;
import dev.xdark.blw.code.JavaOpcodes;
import dev.xdark.blw.code.Label;
import dev.xdark.blw.code.instruction.*;
import dev.xdark.blw.simulation.ExecutionEngine;
import org.jetbrains.annotations.NotNull;
import org.jetbrains.annotations.Nullable;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
package me.darknet.assembler.compile.analysis.jvm;

import me.darknet.assembler.compile.analysis.VariableNameLookup;

import org.jetbrains.annotations.NotNull;

/**
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
package me.darknet.assembler.compile.analysis.jvm;

import dev.xdark.blw.code.instruction.MethodInstruction;
import me.darknet.assembler.compile.analysis.Value;

import dev.xdark.blw.code.instruction.MethodInstruction;
import org.jetbrains.annotations.NotNull;
import org.jetbrains.annotations.Nullable;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,15 +1,16 @@
package me.darknet.assembler.compile.analysis.jvm;

import dev.xdark.blw.code.instruction.*;
import dev.xdark.blw.constant.*;
import dev.xdark.blw.type.ClassType;
import dev.xdark.blw.type.MethodType;
import dev.xdark.blw.type.Types;
import me.darknet.assembler.compile.analysis.Local;
import me.darknet.assembler.compile.analysis.VariableNameLookup;
import me.darknet.assembler.compile.analysis.frame.FrameOps;
import me.darknet.assembler.compile.analysis.frame.TypedFrame;
import me.darknet.assembler.compile.analysis.frame.TypedFrameOps;

import dev.xdark.blw.code.instruction.*;
import dev.xdark.blw.constant.*;
import dev.xdark.blw.type.ClassType;
import dev.xdark.blw.type.MethodType;
import dev.xdark.blw.type.Types;
import org.jetbrains.annotations.NotNull;

import java.util.List;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,13 +1,14 @@
package me.darknet.assembler.compile.analysis.jvm;

import dev.xdark.blw.code.instruction.*;
import dev.xdark.blw.constant.*;
import dev.xdark.blw.type.*;
import me.darknet.assembler.compile.analysis.*;
import me.darknet.assembler.compile.analysis.frame.FrameOps;
import me.darknet.assembler.compile.analysis.frame.ValuedFrame;
import me.darknet.assembler.compile.analysis.frame.ValuedFrameOps;
import me.darknet.assembler.compiler.InheritanceChecker;

import dev.xdark.blw.code.instruction.*;
import dev.xdark.blw.constant.*;
import dev.xdark.blw.type.*;
import org.jetbrains.annotations.NotNull;

import java.util.ArrayList;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,11 +1,12 @@
package me.darknet.assembler.compile.builder;

import me.darknet.assembler.compile.analysis.AnalysisResults;
import me.darknet.assembler.compile.analysis.MethodAnalysisLookup;

import dev.xdark.blw.classfile.MemberIdentifier;
import dev.xdark.blw.classfile.generic.GenericClassBuilder;
import dev.xdark.blw.classfile.generic.GenericMethodBuilder;
import dev.xdark.blw.type.MethodType;
import me.darknet.assembler.compile.analysis.AnalysisResults;
import me.darknet.assembler.compile.analysis.MethodAnalysisLookup;
import org.jetbrains.annotations.NotNull;
import org.jetbrains.annotations.Nullable;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,15 +1,16 @@
package me.darknet.assembler.compile.visitor;

import me.darknet.assembler.ast.primitive.ASTIdentifier;
import me.darknet.assembler.ast.specific.ASTValue;
import me.darknet.assembler.visitor.ASTAnnotationArrayVisitor;
import me.darknet.assembler.visitor.ASTAnnotationVisitor;

import dev.xdark.blw.annotation.ElementArrayBuilder;
import dev.xdark.blw.annotation.ElementEnum;
import dev.xdark.blw.annotation.ElementType;
import dev.xdark.blw.type.InstanceType;
import dev.xdark.blw.type.ObjectType;
import dev.xdark.blw.type.Types;
import me.darknet.assembler.ast.primitive.ASTIdentifier;
import me.darknet.assembler.ast.specific.ASTValue;
import me.darknet.assembler.visitor.ASTAnnotationArrayVisitor;
import me.darknet.assembler.visitor.ASTAnnotationVisitor;

public class BlwAnnotationArrayVisitor implements ASTAnnotationArrayVisitor, BlwElementAdapter {
private final ElementArrayBuilder<?> builder;
Expand Down
Loading

0 comments on commit 8370db8

Please sign in to comment.