Commits

Anonymous committed d4f0209

Nitpicky code cleanup

git-svn-id: http://svn.opensymphony.com/svn/xwork/trunk@332e221344d-f017-0410-9bd5-d282ab1896d7

  • Participants
  • Parent commits 7c3eb9a

Comments (0)

Files changed (1)

File src/java/com/opensymphony/xwork/interceptor/ParametersInterceptor.java

                 log.debug("Setting params " + parameters);
             }
 
+            ActionContext invocationContext = invocation.getInvocationContext();
             try {
-                invocation.getInvocationContext().put(InstantiatingNullHandler.CREATE_NULL_OBJECTS, Boolean.TRUE);
-                invocation.getInvocationContext().put(XWorkMethodAccessor.DENY_METHOD_EXECUTION, Boolean.TRUE);
-                invocation.getInvocationContext().put(XWorkConverter.REPORT_CONVERSION_ERRORS, Boolean.TRUE);
+                invocationContext.put(InstantiatingNullHandler.CREATE_NULL_OBJECTS, Boolean.TRUE);
+                invocationContext.put(XWorkMethodAccessor.DENY_METHOD_EXECUTION, Boolean.TRUE);
+                invocationContext.put(XWorkConverter.REPORT_CONVERSION_ERRORS, Boolean.TRUE);
 
                 if (parameters != null) {
                     final OgnlValueStack stack = ActionContext.getContext().getValueStack();
                     }
                 }
             } finally {
-                invocation.getInvocationContext().put(InstantiatingNullHandler.CREATE_NULL_OBJECTS, Boolean.FALSE);
-                invocation.getInvocationContext().put(XWorkMethodAccessor.DENY_METHOD_EXECUTION, Boolean.FALSE);
-                invocation.getInvocationContext().put(XWorkConverter.REPORT_CONVERSION_ERRORS, Boolean.FALSE);
+                invocationContext.put(InstantiatingNullHandler.CREATE_NULL_OBJECTS, Boolean.FALSE);
+                invocationContext.put(XWorkMethodAccessor.DENY_METHOD_EXECUTION, Boolean.FALSE);
+                invocationContext.put(XWorkConverter.REPORT_CONVERSION_ERRORS, Boolean.FALSE);
             }
         }
     }