core/src/main/java/org/jruby/RubyProc.java
@Deprecated
    public static IRubyObject[] prepareArgs(ThreadContext context, Block.Type type, BlockBody blockBody, IRubyObject[] args) {
        if (type == Block.Type.LAMBDA) return args;

        int arityValue = blockBody.getSignature().arityValue();
        if (args.length == 1 && (arityValue < -1 || arityValue > 1)) args = IRRuntimeHelpers.toAry(context, args);
        return args;
    }
/**
     * For non-lambdas transforms the given arguments appropriately for the given arity (i.e. trimming to one arg for fixed
     * arity of one, etc.)
     *
     * Note: nothing should be calling this any more.
     */
For non-lambdas transforms the given arguments appropriately for the given arity

nothing should be calling this any more.
For non - lambdas transforms the given arguments appropriately for the given arity nothing should be calling this any more .
@Deprecated
    public static IRubyObject[] prepareArgs(ThreadContext context, Block.Type type, BlockBody blockBody, IRubyObject[] args) {
        if (type == Block.Type.LAMBDA) return args;
        int arityValue = blockBody.getSignature().arityValue();
        if (args.length == 1 && (arityValue < -1 || arityValue > 1)) args = IRRuntimeHelpers.toAry(context, args);
        return args;
    }
@ Deprecated public static IRubyObject [ ] prepareArgs ( ThreadContext context , Block . Type type , BlockBody blockBody , IRubyObject [ ] args ) { if ( type == Block . Type . LAMBDA ) return args ; int arityValue = blockBody . getSignature ( ) . arityValue ( ) ; if ( args . length == 1 && ( arityValue < - 1 || arityValue > 1 ) ) args = IRRuntimeHelpers . toAry ( context , args ) ; return args ; }
For non-lambdas transforms the given arguments appropriately for the given arity (i.e.
For non - lambdas transforms the given arguments appropriately for the given arity ( i . e .