You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@sis.apache.org by de...@apache.org on 2024/12/04 13:27:47 UTC

(sis) branch geoapi-4.0 updated: Minor cleanups: * Fix wrong class name in documentation: ReferencingFactory → WKTDictionary * Add a missing `synchronized` keyword on `WorldFileStore.getFileSet()`.

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


The following commit(s) were added to refs/heads/geoapi-4.0 by this push:
     new 5437963714 Minor cleanups: * Fix wrong class name in documentation: ReferencingFactory → WKTDictionary * Add a missing `synchronized` keyword on `WorldFileStore.getFileSet()`.
5437963714 is described below

commit 5437963714faa082ec3879dbb495b5e0af841145
Author: Martin Desruisseaux <ma...@geomatys.com>
AuthorDate: Wed Dec 4 14:19:59 2024 +0100

    Minor cleanups:
    * Fix wrong class name in documentation: ReferencingFactory → WKTDictionary
    * Add a missing `synchronized` keyword on `WorldFileStore.getFileSet()`.
---
 .../main/org/apache/sis/io/wkt/doc-files/ESRI.txt                       | 2 +-
 .../org.apache.sis.referencing/test/org/apache/sis/io/wkt/ExtraCRS.txt  | 2 +-
 .../org.apache.sis.referencing/test/org/apache/sis/io/wkt/Malformed.txt | 2 +-
 .../main/org/apache/sis/storage/image/WorldFileStore.java               | 2 +-
 4 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/endorsed/src/org.apache.sis.referencing/main/org/apache/sis/io/wkt/doc-files/ESRI.txt b/endorsed/src/org.apache.sis.referencing/main/org/apache/sis/io/wkt/doc-files/ESRI.txt
index 2a981b90e9..38eb77260f 100644
--- a/endorsed/src/org.apache.sis.referencing/main/org/apache/sis/io/wkt/doc-files/ESRI.txt
+++ b/endorsed/src/org.apache.sis.referencing/main/org/apache/sis/io/wkt/doc-files/ESRI.txt
@@ -1,5 +1,5 @@
 #
-# Example file for org.apache.sis.io.wkt.ReferencingFactory.
+# Example file for org.apache.sis.io.wkt.WKTDictionary.
 # This file provides Coordinate Reference System definitions
 # in Well-Known Text (WKT) format. One or many files can be
 # used for extending the set of CRS with custom definitions.
diff --git a/endorsed/src/org.apache.sis.referencing/test/org/apache/sis/io/wkt/ExtraCRS.txt b/endorsed/src/org.apache.sis.referencing/test/org/apache/sis/io/wkt/ExtraCRS.txt
index b273a4db35..37700a5728 100644
--- a/endorsed/src/org.apache.sis.referencing/test/org/apache/sis/io/wkt/ExtraCRS.txt
+++ b/endorsed/src/org.apache.sis.referencing/test/org/apache/sis/io/wkt/ExtraCRS.txt
@@ -1,5 +1,5 @@
 #
-# Test file for org.apache.sis.io.wkt.ReferencingFactory.
+# Test file for org.apache.sis.io.wkt.WKTDictionary.
 # See "doc-files/ESRI.txt" for file syntax.
 #
 
diff --git a/endorsed/src/org.apache.sis.referencing/test/org/apache/sis/io/wkt/Malformed.txt b/endorsed/src/org.apache.sis.referencing/test/org/apache/sis/io/wkt/Malformed.txt
index e9150a2300..5c6f3bd8ba 100644
--- a/endorsed/src/org.apache.sis.referencing/test/org/apache/sis/io/wkt/Malformed.txt
+++ b/endorsed/src/org.apache.sis.referencing/test/org/apache/sis/io/wkt/Malformed.txt
@@ -1,5 +1,5 @@
 #
-# Test file for org.apache.sis.io.wkt.ReferencingFactory.
+# Test file for org.apache.sis.io.wkt.WKTDictionary.
 # See "doc-files/ESRI.txt" for file syntax.
 #
 
diff --git a/endorsed/src/org.apache.sis.storage/main/org/apache/sis/storage/image/WorldFileStore.java b/endorsed/src/org.apache.sis.storage/main/org/apache/sis/storage/image/WorldFileStore.java
index 692af3ddd9..957e45bb34 100644
--- a/endorsed/src/org.apache.sis.storage/main/org/apache/sis/storage/image/WorldFileStore.java
+++ b/endorsed/src/org.apache.sis.storage/main/org/apache/sis/storage/image/WorldFileStore.java
@@ -448,7 +448,7 @@ loop:   for (int convention=0;; convention++) {
      * @throws DataStoreException if the URI cannot be converted to a {@link Path}.
      */
     @Override
-    public Optional<FileSet> getFileSet() throws DataStoreException {
+    public synchronized Optional<FileSet> getFileSet() throws DataStoreException {
         if (suffixWLD == null) try {
             getGridGeometry(MAIN_IMAGE);                // Will compute `suffixWLD` as a side effect.
         } catch (URISyntaxException | IOException e) {