library/src/main/java/com/alibaba/dcm/internal/JavaVersion.java
private static float toFloatVersion(final String value) {
        final int defaultReturnValue = -1;
        if (value.contains(".")) {
            final String[] toParse = value.split("\\.");
            if (toParse.length >= 2) {
                return toFloat(toParse[0] + '.' + toParse[1], defaultReturnValue);
            }
        } else {
            return toFloat(value, defaultReturnValue);
        }
        return defaultReturnValue;
    }
/**
     * Parses a float value from a String.
     *
     * @param value the String to parse.
     * @return the float value represented by the string or -1 if the given String can not be parsed.
     */
Parses a float value from a String.
@param value the String to parse.
@return the float value represented by the string or -1 if the given String can not be parsed.
Parses a float value from a String . @param value the String to parse . @return the float value represented by the string or - 1 if the given String can not be parsed .
private static float toFloatVersion(final String value) {
        final int defaultReturnValue = -1;
        if (value.contains(".")) {
            final String[] toParse = value.split("\\.");
            if (toParse.length >= 2) {
                return toFloat(toParse[0] + '.' + toParse[1], defaultReturnValue);
            }
        } else {
            return toFloat(value, defaultReturnValue);
        }
        return defaultReturnValue;
    }
private static float toFloatVersion ( final String value ) { final int defaultReturnValue = - 1 ; if ( value . contains ( "." ) ) { final String [ ] toParse = value . split ( "\\." ) ; if ( toParse . length >= 2 ) { return toFloat ( toParse [ 0 ] + '.' + toParse [ 1 ] , defaultReturnValue ) ; } } else { return toFloat ( value , defaultReturnValue ) ; } return defaultReturnValue ; }
Parses a float value from a String.
Parses a float value from a String .