[jmapviewer] 01/04: Imported Upstream version 1.13+dfsg

Sebastiaan Couwenberg sebastic at moszumanska.debian.org
Mon Nov 23 01:14:55 UTC 2015


This is an automated email from the git hooks/post-receive script.

sebastic pushed a commit to branch master
in repository jmapviewer.

commit 436cb82af9384c1e89f718870f526ff6cfa0a32c
Author: Bas Couwenberg <sebastic at xs4all.nl>
Date:   Mon Nov 23 01:49:59 2015 +0100

    Imported Upstream version 1.13+dfsg
---
 src/org/openstreetmap/gui/jmapviewer/MemoryTileCache.java      | 1 +
 src/org/openstreetmap/gui/jmapviewer/interfaces/TileCache.java | 6 ++++++
 2 files changed, 7 insertions(+)

diff --git a/src/org/openstreetmap/gui/jmapviewer/MemoryTileCache.java b/src/org/openstreetmap/gui/jmapviewer/MemoryTileCache.java
index 2ab8693..71b8aa5 100644
--- a/src/org/openstreetmap/gui/jmapviewer/MemoryTileCache.java
+++ b/src/org/openstreetmap/gui/jmapviewer/MemoryTileCache.java
@@ -102,6 +102,7 @@ public class MemoryTileCache implements TileCache {
         return hash.size();
     }
 
+    @Override
     public synchronized int getCacheSize() {
         return cacheSize;
     }
diff --git a/src/org/openstreetmap/gui/jmapviewer/interfaces/TileCache.java b/src/org/openstreetmap/gui/jmapviewer/interfaces/TileCache.java
index c31a7ac..1cc0085 100644
--- a/src/org/openstreetmap/gui/jmapviewer/interfaces/TileCache.java
+++ b/src/org/openstreetmap/gui/jmapviewer/interfaces/TileCache.java
@@ -47,4 +47,10 @@ public interface TileCache {
      * Clears the cache deleting all tiles from memory.
      */
     void clear();
+
+    /**
+     * Size of the cache.
+     * @return maximum number of tiles in cache
+     */
+    int getCacheSize();
 }

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-grass/jmapviewer.git



More information about the Pkg-grass-devel mailing list