Fixed RecipeInfoView getIsPublic naming.
This commit is contained in:
parent
faf4434b7a
commit
23d6f147c4
@ -149,7 +149,7 @@ public class RecipeServiceImpl implements RecipeService {
|
||||
view.setSlug(entity.getSlug());
|
||||
view.setTitle(entity.getTitle());
|
||||
view.setOwnerUsername(entity.getOwner().getUsername());
|
||||
view.setPublic(entity.isPublic());
|
||||
view.setIsPublic(entity.isPublic());
|
||||
view.setStarCount(this.getStarCount(entity));
|
||||
if (entity.getMainImage() != null) {
|
||||
view.setMainImage(this.imageService.toImageView(entity.getMainImage()));
|
||||
|
@ -56,12 +56,12 @@ public final class RecipeInfoView {
|
||||
this.ownerUsername = ownerUsername;
|
||||
}
|
||||
|
||||
public boolean isPublic() {
|
||||
public boolean getIsPublic() {
|
||||
return this.isPublic;
|
||||
}
|
||||
|
||||
public void setPublic(boolean aPublic) {
|
||||
isPublic = aPublic;
|
||||
public void setIsPublic(boolean isPublic) {
|
||||
this.isPublic = isPublic;
|
||||
}
|
||||
|
||||
public int getStarCount() {
|
||||
|
Loading…
Reference in New Issue
Block a user