DefaultGeometricObjects changes for revisions 24972:24973

Replacement of int primitive type by Integer wapper. This change has been forced by a GeoAPI change. Reverting this change causes a compilation failure, which is resolved by restoring the Integer 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/GeometricObjectsImpl.java
Revision 24972Revision 24973
/**
 * Total number of the point or vector object type occurring in the dataset.
 */
private int geometricObjectCount;

/**
 * Constructs an initially empty geometric objects.
/**
 * Total number of the point or vector object type occurring in the dataset.
 */
private Integer geometricObjectCount;

/**
 * Constructs an initially empty geometric objects.
/**
 * Total number of the point or vector object type occurring in the dataset.
 */
public int getGeometricObjectCount() {
    return geometricObjectCount;
}

/**
 * Set the total number of the point or vector object type occurring in the dataset.
 */
public synchronized void setGeometricObjectCount(final int newValue) {
    checkWritePermission();
    geometricObjectCount = newValue;
}
/**
 * Total number of the point or vector object type occurring in the dataset.
 */
public Integer getGeometricObjectCount() {
    return geometricObjectCount;
}

/**
 * Set the total number of the point or vector object type occurring in the dataset.
 */
public synchronized void setGeometricObjectCount(final Integer newValue) {
    checkWritePermission();
    geometricObjectCount = newValue;
}