/*
 * Copyright 2016 the original author or authors.
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *      http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */
package leap.web.action;

import leap.core.validation.Validation;
import leap.lang.Out;

public interface ArgumentValidator {

    /**
     * @deprecated  use {@link #validate(Validation, Argument, Object, Out)} instead.
     */
    @Deprecated
    default boolean validate(Validation validation, Argument arg, Object value) {
        return validate(validation, arg, value, Out.empty());
    }

    /**
     * Returns <code>true</code> if validate success!
     */
    boolean validate(Validation validation, Argument arg, Object value, Out<Object> out);

}
@@ -955,53 +955,12 @@
 urn 
-validate(validation, arg, value, Out.empty())
+true
 ;%0A  
@@ -1038,16 +1038,24 @@
  */%0A    
+default 
 boolean 
@@ -1130,12 +1130,68 @@
 ct%3E out)
-;
+ %7B%0A        return validate(validation, arg, value);%0A    %7D
 %0A%0A%7D

make ArgumentValidator compatible