DefaultDimension changes for revisions 24972:24973

Replacement of primitive int and double types by Integer and Double wrappers. This change has been forced by a GeoAPI change. Reverting this change causes a compilation failure, which is resolved by restoring the Double values as required by GeoAPI interfaces. So rewriting this contribution produces identical result.

Action: all contributions forced by changes in GeoAPI interfaces (mostly import statements and method signatures) have been rewritten from scratch by creating an empty Java class implementing the interface, clicking on the "Implement all abstract methods" contextual menu in NetBeans, removing the <? extends> part in parameterized type of collections, adding the synchronized keyword (for now) and finally adding the corresponding private fields. This action has been committed in the Apache SIS JDK7 branch at revision 1458238.

Command line:

svn diff --extensions "--unified --ignore-space-change --ignore-all-space --ignore-eol-style" -r24972:24973 https://svn.osgeo.org/geotools/trunk/modules/library/metadata/src/main/java/org/geotools/metadata/iso/spatial/DimensionImpl.java
Revision 24972Revision 24973
/**
 * Number of elements along the axis.
 */
private int dimensionSize;

/**
 * Degree of detail in the grid dataset.
 */
private double resolution;

/**
 * Constructs an initially empty dimension.
/**
 * Number of elements along the axis.
 */
private Integer dimensionSize;

/**
 * Degree of detail in the grid dataset.
 */
private Double resolution;

/**
 * Constructs an initially empty dimension.
/*
 * Creates a dimension initialized to the given type.
 */
public DimensionImpl(final DimensionNameType dimensionName, final int dimensionSize) {
    setDimensionName(dimensionName);
    setDimensionSize(dimensionSize);
}
/*
 * Creates a dimension initialized to the given type.
 */
public DimensionImpl(final DimensionNameType dimensionName, final Integer dimensionSize) {
    setDimensionName(dimensionName);
    setDimensionSize(dimensionSize);
}
/**
 * Number of elements along the axis.
 */
public int getDimensionSize() {
    return dimensionSize;
}

/**
 * Set the number of elements along the axis.
 */
public synchronized void setDimensionSize(final int newValue) {
    checkWritePermission();
    dimensionSize = newValue;
}
/**
 * Number of elements along the axis.
 */
public Integer getDimensionSize() {
    return dimensionSize;
}

/**
 * Set the number of elements along the axis.
 */
public synchronized void setDimensionSize(final Integer newValue) {
    checkWritePermission();
    dimensionSize = newValue;
}
/**
 * Degree of detail in the grid dataset.
 */
public double getResolution() {
    return resolution;
}

/**
 * Set the degree of detail in the grid dataset.
 */
public synchronized void setResolution(final double newValue) {
    checkWritePermission();
    resolution = newValue;
}
/**
 * Degree of detail in the grid dataset.
 */
public Double getResolution() {
    return resolution;
}

/**
 * Set the degree of detail in the grid dataset.
 */
public synchronized void setResolution(final Double newValue) {
    checkWritePermission();
    resolution = newValue;
}