Skip to content

Commit

Permalink
remove helper for case conversion
Browse files Browse the repository at this point in the history
  • Loading branch information
sbera87 committed Oct 24, 2024
1 parent c75a2d7 commit efa5bb4
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,7 @@ dependencies {
testRuntimeOnly(test.junit.jupiter.engine)
implementation("ch.qos.logback:logback-classic:1.4.7") // Adding Logback for SLF4J
implementation("com.google.code.gson:gson:2.10.1")// Use the latest version


implementation("com.google.guava:guava:32.1.2-jre")
}

tasks.test {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@
import java.util.List;
import java.util.Map;

import com.google.common.base.CaseFormat;

public interface GenericCodegenAdapter<SHAPE, DATA> {

public Map<String, SHAPE> getMemberShapes(SHAPE shape);
Expand Down Expand Up @@ -100,8 +102,8 @@ default public String GenerateCppSetters(
// functionMap
//if object is a simple type, then return will just be the value.
String functionName = new String();
String varName = key.toLowerCase();
String functionNameSuffix = convertSnakeToPascal(varName + "_lvl" + level + "_idx" + count);
String varName = CaseFormat.UPPER_CAMEL.to(CaseFormat.LOWER_UNDERSCORE, key);//key.toLowerCase();
String functionNameSuffix = CaseFormat.LOWER_UNDERSCORE.to(CaseFormat.LOWER_CAMEL, varName + "_lvl" + level + "_idx" + count );

recordContainerForImport(shape);

Expand Down

0 comments on commit efa5bb4

Please sign in to comment.