I'm trying to map json strings that use underscore naming convention to their corresponding java objects, the problem is the getters and setters get messy. For example
public static class ChargeState{
private String charging_state;
public String getCharging_state() {
return charging_state;
}
}
But what I want eclipse to generate
public String getChargingState() {
return charging_state;
}
When I go into the preferences there is Java->Code Style->Code Templates
then for the setter body option it says ${field} = ${param};
Can i change this pattern or something to remove the underscore?