Skip to content

Commit

Permalink
#18177 make getTitle() final
Browse files Browse the repository at this point in the history
  • Loading branch information
wezell committed Mar 24, 2020
1 parent 71ad3fd commit 4edfd7b
Show file tree
Hide file tree
Showing 4 changed files with 2 additions and 12 deletions.
Expand Up @@ -18,10 +18,7 @@ public class DefaultVanityUrl extends Contentlet implements VanityUrl {
*/
private static final long serialVersionUID = 1L;

@Override
public String getTitle() {
return getStringProperty(VanityUrlContentType.TITLE_FIELD_VAR);
}


@Override
public void setTitle(final String title) {
Expand Down
Expand Up @@ -68,9 +68,6 @@ protected Event (Contentlet c) {

}

public String getTitle() {
return getStringProperty("title");
}

public void setTitle(String title) {
setStringProperty("title", title);
Expand Down
Expand Up @@ -272,7 +272,7 @@ public String getName() {
}

@Override
public String getTitle(){
public final String getTitle(){
try {

if (UtilMethods.isSet(this.map.get(TITTLE_KEY))) {
Expand Down
Expand Up @@ -209,10 +209,6 @@ public void setTitle(String title) {
setStringProperty(HTMLPageAssetAPI.TITLE_FIELD, title);
}

@Override
public String getTitle() {
return getStringProperty(HTMLPageAssetAPI.TITLE_FIELD);
}

@Override
public boolean isContent() {
Expand Down

0 comments on commit 4edfd7b

Please sign in to comment.