Skip to content

Commit

Permalink
Make needlessly instance methods final
Browse files Browse the repository at this point in the history
  • Loading branch information
lukebemish authored Apr 18, 2024
1 parent a3aa9da commit 387b3ca
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ public byte[] transform(Module module, ClassLoader loader, String className, Cla
return transformCharacterClass(classfileBuffer);
}

private byte[] transformCharacterClass(byte[] original) {
private static byte[] transformCharacterClass(byte[] original) {
ClassWriter writer = new ClassWriter(0);
ClassVisitor visitor = new ClassVisitor(Opcodes.ASM9, writer) {
@Override
Expand Down Expand Up @@ -138,7 +138,7 @@ private static ConstantDynamic invoke(String descriptor, Object handle, Object..
);
}

public ConstantDynamic booleanConstant(boolean bool) {
private static ConstantDynamic booleanConstant(boolean bool) {
return new ConstantDynamic(
// booleans are fucky in ConstantDynamics. Here's an alternative...
bool ? "TRUE" : "FALSE",
Expand Down

0 comments on commit 387b3ca

Please sign in to comment.