Skip to content

Commit

Permalink
fix typo
Browse files Browse the repository at this point in the history
  • Loading branch information
yanxutao89 committed Jun 25, 2023
1 parent 9eb7572 commit b576a3d
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 8 deletions.
3 changes: 0 additions & 3 deletions codegen/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -121,9 +121,6 @@
</goals>
</execution>
</executions>
<configuration>
<skip>true</skip>
</configuration>
</plugin>
</plugins>
</build>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -112,12 +112,12 @@ private static void buildCode(

List<AttributeInfo> fields = si.getReaderAttributes();

Class supperClass = CodeGenUtils.getSuperClass(fields.size());
ClassWriter cw = new ClassWriter(packageName, generateClassName, supperClass, new Class[0]);
Class superClass = CodeGenUtils.getSuperClass(fields.size());
ClassWriter cw = new ClassWriter(packageName, generateClassName, superClass, new Class[0]);

final boolean generatedFields = fields.size() < 128;
if (generatedFields) {
genFields(fields, cw, supperClass);
genFields(fields, cw, superClass);
}

{
Expand Down Expand Up @@ -180,7 +180,7 @@ private static void buildCode(
Opcodes.allocateArray(FieldReader.class, null, fieldReaders)
);

genInitFields(fields.size(), generatedFields, "fieldReaders", mw, supperClass);
genInitFields(fields.size(), generatedFields, "fieldReaders", mw, superClass);
}

{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@

public class CodeGenUtilsTest {
@Test
public void getSupperClass() {
public void getSuperClass() {
for (int i = 1; i <= 12; i++) {
assertEquals("ObjectReader" + i, CodeGenUtils.getSuperClass(i).getSimpleName());
}
Expand Down

0 comments on commit b576a3d

Please sign in to comment.