Skip to content

Commit

Permalink
Remove final from generated classes to allow mocking (#617)
Browse files Browse the repository at this point in the history
  • Loading branch information
radcortez authored Jul 12, 2021
1 parent 31607d1 commit 32f0635
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ static byte[] generate(final ConfigMappingInterface mapping) {
ClassWriter writer = new ClassWriter(ClassWriter.COMPUTE_FRAMES | ClassWriter.COMPUTE_MAXS);
ClassVisitor visitor = usefulDebugInfo ? new Debugging.ClassVisitorImpl(writer) : writer;

visitor.visit(Opcodes.V1_8, Opcodes.ACC_PUBLIC | Opcodes.ACC_FINAL, mapping.getClassInternalName(), null, I_OBJECT,
visitor.visit(Opcodes.V1_8, Opcodes.ACC_PUBLIC, mapping.getClassInternalName(), null, I_OBJECT,
new String[] {
I_CONFIGURATION_OBJECT,
getInternalName(mapping.getInterfaceType())
Expand Down

0 comments on commit 32f0635

Please sign in to comment.