Skip to content

Commit

Permalink
WW-4536 Drops static to allow redefine the key
Browse files Browse the repository at this point in the history
(cherry picked from commit 755ad3f)
  • Loading branch information
lukaszlenart committed Oct 19, 2015
1 parent 617bfd2 commit 5dcbe65
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -210,7 +210,7 @@ public void validate(Object object, String context, ValidatorContext validatorCo
* @param context context
* @return a validator key which is the class name plus context.
*/
protected static String buildValidatorKey(Class clazz, String context) {
protected String buildValidatorKey(Class clazz, String context) {
ActionInvocation invocation = ActionContext.getContext().getActionInvocation();
ActionProxy proxy = invocation.getProxy();
ActionConfig config = proxy.getConfig();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ public class AnnotationActionValidatorManagerTest extends XWorkTestCase {
}

public void testBuildValidatorKey() {
String validatorKey = AnnotationActionValidatorManager.buildValidatorKey(SimpleAnnotationAction.class, "name");
String validatorKey = annotationActionValidatorManager.buildValidatorKey(SimpleAnnotationAction.class, "name");
assertEquals(SimpleAnnotationAction.class.getName() + "/packageName/name", validatorKey);
}

Expand Down

0 comments on commit 5dcbe65

Please sign in to comment.