This is an automated email from the ASF dual-hosted git repository. desruisseaux pushed a commit to branch geoapi-4.0 in repository https://gitbox.apache.org/repos/asf/sis.git
commit 184ea54db1f1e91a9b0a85c30d1c351853d73927 Author: Martin Desruisseaux <martin.desruisse...@geomatys.com> AuthorDate: Fri Apr 12 17:42:06 2024 +0200 Minor cleaning for a method which is no longer worth to define. --- .../sis/referencing/factory/GeodeticObjectFactory.java | 14 ++------------ 1 file changed, 2 insertions(+), 12 deletions(-) diff --git a/endorsed/src/org.apache.sis.referencing/main/org/apache/sis/referencing/factory/GeodeticObjectFactory.java b/endorsed/src/org.apache.sis.referencing/main/org/apache/sis/referencing/factory/GeodeticObjectFactory.java index 4e53130ade..cf596c51d3 100644 --- a/endorsed/src/org.apache.sis.referencing/main/org/apache/sis/referencing/factory/GeodeticObjectFactory.java +++ b/endorsed/src/org.apache.sis.referencing/main/org/apache/sis/referencing/factory/GeodeticObjectFactory.java @@ -282,7 +282,7 @@ public class GeodeticObjectFactory extends AbstractFactory implements CRSFactory @Override protected Object invisibleEntry(final Object key) { if (ReferencingFactoryContainer.MT_FACTORY.equals(key)) { - return getMathTransformFactory(); + return DefaultMathTransformFactory.provider(); } else { return super.invisibleEntry(key); } @@ -290,16 +290,6 @@ public class GeodeticObjectFactory extends AbstractFactory implements CRSFactory }; } - /** - * Returns the math transform factory for internal usage only. - * The {@code MathTransformFactory} is normally not needed by {@code GeodeticObjectFactory}, - * except when constructing the Apache SIS implementation of derived and projected CRS. - * For this reason, we will fetch this dependency only if really requested. - */ - final MathTransformFactory getMathTransformFactory() { - return DefaultMathTransformFactory.provider(); - } - /** * Returns a unique instance of the given object. If this method recycles an existing object, * then the existing instance is returned silently. Otherwise this method logs a message at @@ -1577,7 +1567,7 @@ public class GeodeticObjectFactory extends AbstractFactory implements CRSFactory c.setAccessible(true); parserConstructor = c; } - p = c.newInstance(defaultProperties, this, getMathTransformFactory()); + p = c.newInstance(defaultProperties, this, DefaultMathTransformFactory.provider()); } catch (ReflectiveOperationException e) { throw new FactoryException(e); }