robohorse / RoboPOJOGenerator

IntelliJ IDEA and Android Studio plugin
MIT License
716 stars 84 forks source link

Key "A" convert to "private String A", but not to "private String a" #119

Closed ShyshkinOleksii closed 1 year ago

ShyshkinOleksii commented 2 years ago

Convert JSON to Java Jackson: key with > 1char convert to first letter with lowerCase (OK) key with = 1char convert to first (and only one) letter with UpperCase (notOK)


Input JSON to POJOgenerator: { "Subject": { "A": "some1", "B": "some2", "CLONGNAME": "some3" } }

result: public class Subject{

@JsonProperty("A")
private String A;

@JsonProperty("B")
private String B;

@JsonProperty("CLONGNAME")
private String cLONGNAME;

}

robohorse commented 1 year ago

Hey, thanks for the report. Please check 2.3.8 - it will be live soon.