Skip to content

Commit

Permalink
Adds braces for better visibility
Browse files Browse the repository at this point in the history
git-svn-id: https://svn.apache.org/repos/asf/struts/struts2/trunk@1506419 13f79535-47bb-0310-9956-ffa450edef68
  • Loading branch information
lukaszlenart committed Jul 24, 2013
1 parent 34e0f14 commit e366ae8
Showing 1 changed file with 7 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -303,12 +303,13 @@ protected void setParameters(final Object action, ValueStack stack, final Map<St
MemberAccessValueStack accessValueStack = (MemberAccessValueStack) newStack;
accessValueStack.setAcceptProperties(acceptParams);
accessValueStack.setExcludeProperties(excludeParams);
if (action instanceof ParameterNameAware)
accessValueStack.setPropertiesJudge(new PropertiesJudge() {
public boolean acceptProperty(String propertyName) {
return ((ParameterNameAware) action).acceptableParameterName(propertyName);
}
});
if (action instanceof ParameterNameAware) {
accessValueStack.setPropertiesJudge(new PropertiesJudge() {
public boolean acceptProperty(String propertyName) {
return ((ParameterNameAware) action).acceptableParameterName(propertyName);
}
});
}
}

for (Map.Entry<String, Object> entry : acceptableParameters.entrySet()) {
Expand Down

0 comments on commit e366ae8

Please sign in to comment.