Commits

Anonymous committed bcd39b9

removing java 5 code from xwork

git-svn-id: http://svn.opensymphony.com/svn/xwork/branches/xwork_1-2@1070e221344d-f017-0410-9bd5-d282ab1896d7

Comments (0)

Files changed (2)

src/java/com/opensymphony/xwork/interceptor/DefaultWorkflowInterceptor.java

 	
 	
 	public void setAlwaysInvokeValidate(String alwaysInvokeValidate) {
-		this.alwaysInvokeValidate = Boolean.parseBoolean(alwaysInvokeValidate);
+        this.alwaysInvokeValidate = Boolean.valueOf(alwaysInvokeValidate).booleanValue();
 	}
 	
     protected String doIntercept(ActionInvocation invocation) throws Exception {

src/java/com/opensymphony/xwork/interceptor/PrepareInterceptor.java

 	private boolean alwaysInvokePrepare = true;
 	
 	public void setAlwaysInvokePrepare(String alwaysInvokePrepare) {
-		this.alwaysInvokePrepare = Boolean.parseBoolean(alwaysInvokePrepare);
+		this.alwaysInvokePrepare = Boolean.valueOf(alwaysInvokePrepare).booleanValue();
 	}
 	
     protected void after(ActionInvocation dispatcher, String result) throws Exception {