I saw some projects (like jsoup) use this new getter / setter naming convention:
String name() void name(String value)
instead of the old getter / setter build:
String getName() void setName(String value)
What are the positive and negative aspects of each naming convention? When and why do you think you need to give preference to another?
java oop naming-conventions
Ali shakiba
source share