src/main/java/org/apache/bval/bench/Util.java
public static JExpression literalExpr(Object value) {
        if (value == null) {
            return JExpr._null();
        } else if (value instanceof String) {
            return JExpr.lit((String) value);
        } else if (value instanceof Integer) {
            return JExpr.lit((Integer) value);
        }

        throw new RuntimeException("Impossible to construct initial value for: " + value);
    }
/**
     * Calls the correct {@link JExpr} <code>lit</code> method.
     * 
     * @param value
     *            The literal value that must be output in an expresion.
     * @return The matching expression for the real type of value.
     */
Calls the correct  JExpr lit method.

@param value
The literal value that must be output in an expresion.
@return The matching expression for the real type of value.
Calls the correct JExpr lit method . @param value The literal value that must be output in an expresion . @return The matching expression for the real type of value .
public static JExpression literalExpr(Object value) {
        if (value == null) {
            return JExpr._null();
        } else if (value instanceof String) {
            return JExpr.lit((String) value);
        } else if (value instanceof Integer) {
            return JExpr.lit((Integer) value);
        }
        throw new RuntimeException("Impossible to construct initial value for: " + value);
    }
public static JExpression literalExpr ( Object value ) { if ( value == null ) { return JExpr . _null ( ) ; } else if ( value instanceof String ) { return JExpr . lit ( ( String ) value ) ; } else if ( value instanceof Integer ) { return JExpr . lit ( ( Integer ) value ) ; } throw new RuntimeException ( "Impossible to construct initial value for: " + value ) ; }
Calls the correct {@link JExpr} <code>lit</code> method.
Calls the correct { @link JExpr } <code > lit< / code > method .