Skip to content

Commit

Permalink
Remove get prefix on model property getters
Browse files Browse the repository at this point in the history
  • Loading branch information
jianghaolu committed Apr 15, 2016
1 parent fc7d9a9 commit cea6f72
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ public class Resource {
*
* @return the id value
*/
public String getId() {
public String id() {
return this.id;
}

Expand All @@ -58,7 +58,7 @@ public String getId() {
*
* @return the name value
*/
public String getName() {
public String name() {
return this.name;
}

Expand All @@ -67,7 +67,7 @@ public String getName() {
*
* @return the type value
*/
public String getType() {
public String type() {
return this.type;
}

Expand All @@ -76,7 +76,7 @@ public String getType() {
*
* @return the location value
*/
public String getLocation() {
public String location() {
return this.location;
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ public class SubResource {
*
* @return the id value
*/
public String getId() {
public String id() {
return this.id;
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,8 @@ protected void initializeObjectMapper(ObjectMapper mapper) {
mapper.setVisibility(mapper.getSerializationConfig().getDefaultVisibilityChecker()
.withFieldVisibility(JsonAutoDetect.Visibility.ANY)
.withSetterVisibility(JsonAutoDetect.Visibility.NONE)
.withGetterVisibility(JsonAutoDetect.Visibility.NONE));
.withGetterVisibility(JsonAutoDetect.Visibility.NONE)
.withIsGetterVisibility(JsonAutoDetect.Visibility.NONE));
}

/**
Expand Down

0 comments on commit cea6f72

Please sign in to comment.