Skip to content

Commit

Permalink
add missing @OverRide annotations
Browse files Browse the repository at this point in the history
  • Loading branch information
sdutry committed Jan 3, 2018
1 parent 79951db commit 0713da4
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion core/src/main/java/org/apache/struts2/components/Anchor.java
Original file line number Diff line number Diff line change
Expand Up @@ -80,14 +80,17 @@ public Anchor(ValueStack stack, HttpServletRequest request, HttpServletResponse
urlProvider.setHttpServletResponse(response);
}

@Override
public String getDefaultOpenTemplate() {
return OPEN_TEMPLATE;
}

@Override
protected String getDefaultTemplate() {
return TEMPLATE;
}

@Override
public boolean usesBody() {
return true;
}
Expand Down Expand Up @@ -135,6 +138,7 @@ public boolean start(Writer writer) {
/**
* Overrides to be able to render body in a template rather than always before the template
*/
@Override
public boolean end(Writer writer, String body) {
this.processingTagBody = false;
evaluateParams();
Expand All @@ -151,7 +155,7 @@ public boolean end(Writer writer, String body) {
return false;
}


@Override
public void addParameter(String key, Object value) {
/*
the parameters added by this method are used in the template. this method is also
Expand Down Expand Up @@ -196,6 +200,7 @@ public void setScheme(String scheme) {
urlProvider.setScheme(scheme);
}

@Override
@StrutsTagAttribute(description = "The target value to use, if not using action")
public void setValue(String value) {
urlProvider.setValue(value);
Expand Down

0 comments on commit 0713da4

Please sign in to comment.