DatumAliases changes for revisions 25049:25050

This class will not be ported to SIS.

Command line:

svn diff --extensions "--unified --ignore-space-change --ignore-all-space --ignore-eol-style" -r25049:25050 https://svn.osgeo.org/geotools/trunk/modules/library/referencing/src/main/java/org/geotools/referencing/factory/DatumAliases.java
Revision 25049Revision 25050
import org.opengis.util.ScopedName;

// Geotools dependencies
import org.geotools.referencing.FactoryFinder;
import org.geotools.referencing.AbstractIdentifiedObject;
import org.geotools.referencing.datum.AbstractDatum;        // For javadoc
import org.geotools.referencing.datum.BursaWolfParameters;  // For javadoc
import org.opengis.util.ScopedName;

// Geotools dependencies
import org.geotools.referencing.ReferencingFactoryFinder;
import org.geotools.referencing.AbstractIdentifiedObject;
import org.geotools.referencing.datum.AbstractDatum;        // For javadoc
import org.geotools.referencing.datum.BursaWolfParameters;  // For javadoc
/**
 * The underlying datum factory. If {@code null}, a default factory will be fetch
 * from {@link FactoryFinder} when first needed. A default value can't be set at
 * construction time, since all factories may not be registered at this time.
 */
private DatumFactory factory;
/**
 * The underlying datum factory. If {@code null}, a default factory will be fetch
 * from {@link ReferencingFactoryFinder} when first needed. A default value can't be set at
 * construction time, since all factories may not be registered at this time.
 */
private DatumFactory factory;
assert Thread.holdsLock(this);
if (factory == null) {
    DatumFactory candidate;
    final Iterator it = FactoryFinder.getDatumFactories(null).iterator();
    do candidate = (DatumFactory) it.next();
    while (candidate == this);
    factory = candidate;
assert Thread.holdsLock(this);
if (factory == null) {
    DatumFactory candidate;
    final Iterator it = ReferencingFactoryFinder.getDatumFactories(null).iterator();
    do candidate = (DatumFactory) it.next();
    while (candidate == this);
    factory = candidate;