[Git][debian-gis-team/jmapviewer][bookworm-backports] 7 commits: Bump Standards-Version to 4.7.0, no changes.

Bas Couwenberg (@sebastic) gitlab at salsa.debian.org
Sun Aug 18 07:12:15 BST 2024



Bas Couwenberg pushed to branch bookworm-backports at Debian GIS Project / jmapviewer


Commits:
d7af9290 by Bas Couwenberg at 2024-07-28T19:40:58+02:00
Bump Standards-Version to 4.7.0, no changes.

- - - - -
1ffe1cc1 by Bas Couwenberg at 2024-08-13T05:16:51+02:00
New upstream version 2.21+dfsg
- - - - -
1aabe27c by Bas Couwenberg at 2024-08-13T05:16:51+02:00
Update upstream source from tag 'upstream/2.21+dfsg'

Update to upstream version '2.21+dfsg'
with Debian dir 88c677feda3762f05ee81e7a74949f1c23b65afe
- - - - -
a799f4f1 by Bas Couwenberg at 2024-08-13T05:17:12+02:00
New upstream release.

- - - - -
a8b5f187 by Bas Couwenberg at 2024-08-13T05:19:31+02:00
Set distribution to unstable.

- - - - -
56f75b43 by Bas Couwenberg at 2024-08-18T08:02:30+02:00
Merge tag 'debian/2.21+dfsg-1' into bookworm-backports

releasing package jmapviewer version 2.21+dfsg-1

- - - - -
d79058a4 by Bas Couwenberg at 2024-08-18T08:02:40+02:00
Rebuild for bookworm-backports.

- - - - -


4 changed files:

- debian/changelog
- debian/control
- src/org/openstreetmap/gui/jmapviewer/MemoryTileCache.java
- src/org/openstreetmap/gui/jmapviewer/interfaces/TileCache.java


Changes:

=====================================
debian/changelog
=====================================
@@ -1,3 +1,16 @@
+jmapviewer (2.21+dfsg-1~bpo12+1) bookworm-backports; urgency=medium
+
+  * Rebuild for bookworm-backports.
+
+ -- Bas Couwenberg <sebastic at debian.org>  Sun, 18 Aug 2024 08:02:36 +0200
+
+jmapviewer (2.21+dfsg-1) unstable; urgency=medium
+
+  * New upstream release.
+  * Bump Standards-Version to 4.7.0, no changes.
+
+ -- Bas Couwenberg <sebastic at debian.org>  Tue, 13 Aug 2024 05:19:21 +0200
+
 jmapviewer (2.20+dfsg-1~bpo12+1) bookworm-backports; urgency=medium
 
   * Rebuild for bookworm-backports.


=====================================
debian/control
=====================================
@@ -12,7 +12,7 @@ Build-Depends: debhelper-compat (= 13),
                docbook-xsl,
                docbook-xml,
                xsltproc
-Standards-Version: 4.6.2
+Standards-Version: 4.7.0
 Vcs-Browser: https://salsa.debian.org/debian-gis-team/jmapviewer
 Vcs-Git: https://salsa.debian.org/debian-gis-team/jmapviewer.git -b bookworm-backports
 Homepage: https://wiki.openstreetmap.org/wiki/JMapViewer


=====================================
src/org/openstreetmap/gui/jmapviewer/MemoryTileCache.java
=====================================
@@ -1,10 +1,12 @@
 // License: GPL. For details, see Readme.txt file.
 package org.openstreetmap.gui.jmapviewer;
 
+import java.util.Collection;
 import java.util.HashMap;
 import java.util.Map;
 import java.util.logging.Level;
 import java.util.logging.Logger;
+import java.util.stream.Collectors;
 
 import org.openstreetmap.gui.jmapviewer.interfaces.TileCache;
 import org.openstreetmap.gui.jmapviewer.interfaces.TileSource;
@@ -103,6 +105,13 @@ public class MemoryTileCache implements TileCache {
         lruTiles.clear();
     }
 
+    @Override
+    public synchronized void clearErrorTiles() {
+        Collection<CacheEntry> toRemove = hash.values().stream().filter(cacheEntry -> cacheEntry.tile.hasError()).collect(Collectors.toList());
+        hash.values().removeAll(toRemove);
+        toRemove.forEach(lruTiles::removeEntry);
+    }
+
     @Override
     public synchronized int getTileCount() {
         return hash.size();


=====================================
src/org/openstreetmap/gui/jmapviewer/interfaces/TileCache.java
=====================================
@@ -48,6 +48,14 @@ public interface TileCache {
      */
     void clear();
 
+    /**
+     * Removes error tiles from memory.
+     * This is implementation specific; the default calls {@link #clear()}.
+     */
+    default void clearErrorTiles() {
+        this.clear();
+    }
+
     /**
      * Size of the cache.
      * @return maximum number of tiles in cache



View it on GitLab: https://salsa.debian.org/debian-gis-team/jmapviewer/-/compare/7a1da35cca8f84cef584457ac35f1f6a9cee372e...d79058a4778be273915b689352b3707d3832c9f2

-- 
View it on GitLab: https://salsa.debian.org/debian-gis-team/jmapviewer/-/compare/7a1da35cca8f84cef584457ac35f1f6a9cee372e...d79058a4778be273915b689352b3707d3832c9f2
You're receiving this email because of your account on salsa.debian.org.


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://alioth-lists.debian.net/pipermail/pkg-grass-devel/attachments/20240818/3f823247/attachment-0001.htm>


More information about the Pkg-grass-devel mailing list