DefaultParameterValue changes for revisions 9353:9354

This commit has been reverted. It does not appear in SIS.

Command line:

svn diff --extensions "--unified --ignore-space-change --ignore-all-space --ignore-eol-style" -r9353:9354 https://svn.osgeo.org/geotools/trunk/modules/library/referencing/src/main/java/org/geotools/parameter/Parameter.java
Revision 9353Revision 9354
public double doubleValue() throws InvalidParameterTypeException {
    if (value instanceof Number) {
        return ((Number) value).doubleValue();
    }
    final String name = getName(descriptor);
    if (value == null) {
        throw new IllegalStateException(Resources.format(
                  ResourceKeys.ERROR_MISSING_PARAMETER_$1, name));
    }
    throw new InvalidParameterTypeException(getClassTypeError(), name);
}

/**
 * Returns the positive integer value of an operation parameter, usually used
    public double doubleValue() throws InvalidParameterTypeException {
        if (value instanceof Number) {
            return ((Number) value).doubleValue();
        } else if (value == null) {
            return Double.NaN;
        } else {
            throw new InvalidParameterTypeException(getClassTypeError(), getName(descriptor));
        }
//        final String name = getName(descriptor);
//        if (value == null) {
//            throw new IllegalStateException(Resources.format(
//                      ResourceKeys.ERROR_MISSING_PARAMETER_$1, name));
//        }
//        throw new InvalidParameterTypeException(getClassTypeError(), name);
        }

    /**
     * Returns the positive integer value of an operation parameter, usually used