src/main/java/ognl/enhance/ExpressionCompiler.java
public static String getCastString(Class type)
    {
        if (type == null)
            return null;
        
        return type.isArray() ? type.getComponentType().getName() + "[]" : type.getName();
    }
public static String getCastString(Class type)
    {
        if (type == null)
            return null;
        
        return type.isArray() ? type.getComponentType().getName() + "[]" : type.getName();
    }
public static String getCastString ( Class type ) { if ( type == null ) return null ; return type . isArray ( ) ? type . getComponentType ( ) . getName ( ) + "[]" : type . getName ( ) ; }
Returns the appropriate casting expression (minus parens) for the specified class type.

<p/>
For instance, if given an {@link Integer} object the string <code>"java.lang.Integer"</code>
would be returned. For an array of primitive ints <code>"int[]"</code> and so on..
</p>

@param type The class to cast a string expression for.
@return The converted raw string version of the class name.
Returns the appropriate casting expression ( minus parens ) for the specified class type .