Aklakan commented on code in PR #3703:
URL: https://github.com/apache/jena/pull/3703#discussion_r2716645917


##########
jena-geosparql/src/main/java/org/apache/jena/geosparql/spatial/index/compat/SpatialIndexIo.java:
##########
@@ -43,27 +41,13 @@ public static final SpatialIndex load(Path 
spatialIndexFile) throws SpatialIndex
      * Attempt to load a spatial index from file using all supported formats.
      * This method should only be used for testing as it allows suppressing 
warnings when loading legacy index formats.
      */
-    public static final SpatialIndex load(Path spatialIndexFile, boolean 
suppressLegacyWarnings) throws SpatialIndexException {
+    private static final SpatialIndex load(Path spatialIndexFile, boolean 
suppressLegacyWarnings) throws SpatialIndexException {

Review Comment:
   You could remove the private load method and change the body of the public 
one to:
   
   ```java
   public static final SpatialIndex load(Path spatialIndexFile) throws 
SpatialIndexException {
       return SpatialIndexIoKryo.load(spatialIndexFile);
   }
   ```



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to