src/main/java/ognl/OgnlRuntime.java
public static String getPointerString(int num)
    {
        StringBuffer result = new StringBuffer();
        String hex = Integer.toHexString(num), pad;
        Integer l = new Integer(hex.length());

        // result.append(HEX_PREFIX);
        if ((pad = (String) HEX_PADDING.get(l)) == null) {
            StringBuffer pb = new StringBuffer();

            for (int i = hex.length(); i < HEX_LENGTH; i++) {
                pb.append('0');
            }
            pad = new String(pb);
            HEX_PADDING.put(l, pad);
        }
        result.append(pad);
        result.append(hex);
        return new String(result);
    }
public static String getPointerString(int num)
    {
        StringBuffer result = new StringBuffer();
        String hex = Integer.toHexString(num), pad;
        Integer l = new Integer(hex.length());

        // result.append(HEX_PREFIX);
        if ((pad = (String) HEX_PADDING.get(l)) == null) {
            StringBuffer pb = new StringBuffer();

            for (int i = hex.length(); i < HEX_LENGTH; i++) {
                pb.append('0');
            }
            pad = new String(pb);
            HEX_PADDING.put(l, pad);
        }
        result.append(pad);
        result.append(hex);
        return new String(result);
    }
public static String getPointerString ( int num ) { StringBuffer result = new StringBuffer ( ) ; String hex = Integer . toHexString ( num ) , pad ; Integer l = new Integer ( hex . length ( ) ) ; // result.append(HEX_PREFIX); if ( ( pad = ( String ) HEX_PADDING . get ( l ) ) == null ) { StringBuffer pb = new StringBuffer ( ) ; for ( int i = hex . length ( ) ; i < HEX_LENGTH ; i ++ ) { pb . append ( ' ' ) ; } pad = new String ( pb ) ; HEX_PADDING . put ( l , pad ) ; } result . append ( pad ) ; result . append ( hex ) ; return new String ( result ) ; }
Returns a "pointer" string in the usual format for these things - 0x<hex digits>.
Returns a pointer string in the usual format for these things - 0x<hex digits > .