[Git][debian-gis-team/jmapviewer][master] 8 commits: Update branch in gbp.conf & Vcs-Git URL.

Bas Couwenberg (@sebastic) gitlab at salsa.debian.org
Sun Aug 15 08:36:05 BST 2021



Bas Couwenberg pushed to branch master at Debian GIS Project / jmapviewer


Commits:
c0ca8545 by Bas Couwenberg at 2021-03-17T05:47:19+01:00
Update branch in gbp.conf & Vcs-Git URL.

- - - - -
f1fb7935 by Bas Couwenberg at 2021-03-17T05:47:30+01:00
New upstream version 2.15+dfsg
- - - - -
842fc5ac by Bas Couwenberg at 2021-03-17T05:47:31+01:00
Update upstream source from tag 'upstream/2.15+dfsg'

Update to upstream version '2.15+dfsg'
with Debian dir 1e59a0e07d70e9b1f33c6550e42fff6534bc9f02
- - - - -
aba84c07 by Bas Couwenberg at 2021-03-17T05:47:50+01:00
New upstream release.

- - - - -
34222fd5 by Bas Couwenberg at 2021-03-17T05:49:03+01:00
Update copyright file.

- - - - -
5f444659 by Bas Couwenberg at 2021-03-17T05:49:54+01:00
Set distribution to experimental.

- - - - -
e64798e3 by Bas Couwenberg at 2021-08-15T09:23:53+02:00
Revert "Update branch in gbp.conf & Vcs-Git URL."

This reverts commit c0ca854545293db63e5399735062c3b5e44d27ff.

- - - - -
c4be3b18 by Bas Couwenberg at 2021-08-15T09:27:19+02:00
Move from experimental to unstable.

- - - - -


14 changed files:

- Readme.txt
- debian/changelog
- debian/copyright
- src/org/openstreetmap/gui/jmapviewer/JMapViewer.java
- src/org/openstreetmap/gui/jmapviewer/JMapViewerTree.java
- src/org/openstreetmap/gui/jmapviewer/MapMarkerCircle.java
- src/org/openstreetmap/gui/jmapviewer/MapObjectImpl.java
- src/org/openstreetmap/gui/jmapviewer/MapPolygonImpl.java
- src/org/openstreetmap/gui/jmapviewer/MapRectangleImpl.java
- src/org/openstreetmap/gui/jmapviewer/MemoryTileCache.java
- src/org/openstreetmap/gui/jmapviewer/OsmTileLoader.java
- src/org/openstreetmap/gui/jmapviewer/Tile.java
- src/org/openstreetmap/gui/jmapviewer/checkBoxTree/CheckBoxTree.java
- src/org/openstreetmap/gui/jmapviewer/tilesources/TemplatedTMSTileSource.java


Changes:

=====================================
Readme.txt
=====================================
@@ -10,7 +10,7 @@ JMapViewer
 (c) 2010-2011, Michael Vigovsky
 (c) 2011-2017, Paul Hartmann
 (c) 2011-2016, Gleb Smirnoff
-(c) 2011-2020, Vincent Privat
+(c) 2011-2021, Vincent Privat
 (c) 2011, Jason Huntley
 (c) 2012-2016, Simon Legner
 (c) 2012, Teemu Koskinen


=====================================
debian/changelog
=====================================
@@ -1,12 +1,20 @@
-jmapviewer (2.14+dfsg-2) UNRELEASED; urgency=medium
+jmapviewer (2.15+dfsg-1) unstable; urgency=medium
 
+  * Move from experimental to unstable.
+
+ -- Bas Couwenberg <sebastic at debian.org>  Sun, 15 Aug 2021 09:27:09 +0200
+
+jmapviewer (2.15+dfsg-1~exp1) experimental; urgency=medium
+
+  * New upstream release.
   * Update watch file URL to use josm.openstreetmap.de SVN.
   * Update Repository URLs in upstream metadata.
   * Bump watch file version to 4.
   * Update lintian overrides.
   * Bump Standards-Version to 4.5.1, no changes.
+  * Update copyright file.
 
- -- Bas Couwenberg <sebastic at debian.org>  Mon, 17 Aug 2020 05:32:29 +0200
+ -- Bas Couwenberg <sebastic at debian.org>  Wed, 17 Mar 2021 05:49:39 +0100
 
 jmapviewer (2.14+dfsg-1) unstable; urgency=medium
 


=====================================
debian/copyright
=====================================
@@ -25,7 +25,7 @@ Copyright: 2007, Tim Haussmann
       2011-2017, Paul Hartmann
            2017, Robert Scott
       2009-2018, Dirk Stöcker
-      2011-2020, Vincent Privat
+      2011-2021, Vincent Privat
 License: GPL-2+
 
 Files: src/org/openstreetmap/gui/jmapviewer/tilesources/ScanexTileSource.java


=====================================
src/org/openstreetmap/gui/jmapviewer/JMapViewer.java
=====================================
@@ -88,7 +88,7 @@ public class JMapViewer extends JPanel implements TileLoaderListener {
     protected JButton zoomOutButton;
 
     /**
-     * Apparence of zoom controls.
+     * Appearance of zoom controls.
      */
     public enum ZOOM_BUTTON_STYLE {
         /** Zoom buttons are displayed horizontally (default) */


=====================================
src/org/openstreetmap/gui/jmapviewer/JMapViewerTree.java
=====================================
@@ -27,10 +27,10 @@ public class JMapViewerTree extends JPanel {
     /** Serial Version UID */
     private static final long serialVersionUID = 3050203054402323972L;
 
-    private JMapViewer map;
-    private CheckBoxTree tree;
-    private JPanel treePanel;
-    private JSplitPane splitPane;
+    private final JMapViewer map;
+    private final CheckBoxTree tree;
+    private final JPanel treePanel;
+    private final JSplitPane splitPane;
 
     public JMapViewerTree(String name) {
         this(name, false);


=====================================
src/org/openstreetmap/gui/jmapviewer/MapMarkerCircle.java
=====================================
@@ -21,8 +21,8 @@ import org.openstreetmap.gui.jmapviewer.interfaces.MapMarker;
 public class MapMarkerCircle extends MapObjectImpl implements MapMarker {
 
     private Coordinate coord;
-    private double radius;
-    private STYLE markerStyle;
+    private final double radius;
+    private final STYLE markerStyle;
 
     /**
      * Constructs a new {@code MapMarkerCircle}.


=====================================
src/org/openstreetmap/gui/jmapviewer/MapObjectImpl.java
=====================================
@@ -91,11 +91,11 @@ public abstract class MapObjectImpl {
     }
 
     private boolean isVisibleLayer() {
-        return layer == null || layer.isVisible() == null ? true : layer.isVisible();
+        return layer == null || layer.isVisible() == null || layer.isVisible();
     }
 
     public boolean isVisible() {
-        return visible == null ? isVisibleLayer() : visible.booleanValue();
+        return visible == null ? isVisibleLayer() : visible;
     }
 
     public void setVisible(Boolean visible) {


=====================================
src/org/openstreetmap/gui/jmapviewer/MapPolygonImpl.java
=====================================
@@ -19,7 +19,7 @@ import org.openstreetmap.gui.jmapviewer.interfaces.MapPolygon;
 
 public class MapPolygonImpl extends MapObjectImpl implements MapPolygon {
 
-    private List<? extends ICoordinate> points;
+    private final List<? extends ICoordinate> points;
 
     public MapPolygonImpl(ICoordinate... points) {
         this(null, null, points);


=====================================
src/org/openstreetmap/gui/jmapviewer/MapRectangleImpl.java
=====================================
@@ -12,8 +12,8 @@ import org.openstreetmap.gui.jmapviewer.interfaces.MapRectangle;
 
 public class MapRectangleImpl extends MapObjectImpl implements MapRectangle {
 
-    private Coordinate topLeft;
-    private Coordinate bottomRight;
+    private final Coordinate topLeft;
+    private final Coordinate bottomRight;
 
     public MapRectangleImpl(Coordinate topLeft, Coordinate bottomRight) {
         this(null, null, topLeft, bottomRight);


=====================================
src/org/openstreetmap/gui/jmapviewer/MemoryTileCache.java
=====================================
@@ -124,7 +124,7 @@ public class MemoryTileCache implements TileCache {
      * {@link #next} and {@link #prev} item in the list.
      */
     protected static class CacheEntry {
-        private Tile tile;
+        private final Tile tile;
         private CacheEntry next;
         private CacheEntry prev;
 


=====================================
src/org/openstreetmap/gui/jmapviewer/OsmTileLoader.java
=====================================
@@ -166,7 +166,7 @@ public class OsmTileLoader implements TileLoader {
             try {
                 str = urlConn.getHeaderField("Cache-Control");
                 if (str != null) {
-                    for (String token: str.split(",")) {
+                    for (String token: str.split(",", -1)) {
                         if (token.startsWith("max-age=")) {
                             lng = Long.parseLong(token.substring(8)) * 1000 +
                                     System.currentTimeMillis();


=====================================
src/org/openstreetmap/gui/jmapviewer/Tile.java
=====================================
@@ -90,7 +90,7 @@ public class Tile {
 
     private static class CachedCallable<V> implements Callable<V> {
         private V result;
-        private Callable<V> callable;
+        private final Callable<V> callable;
 
         /**
          * Wraps callable so it is evaluated only once


=====================================
src/org/openstreetmap/gui/jmapviewer/checkBoxTree/CheckBoxTree.java
=====================================
@@ -3,6 +3,7 @@ package org.openstreetmap.gui.jmapviewer.checkBoxTree;
 
 import java.awt.BorderLayout;
 import java.awt.event.MouseAdapter;
+import java.util.Objects;
 
 import javax.swing.JFrame;
 import javax.swing.JScrollPane;
@@ -150,7 +151,11 @@ public class CheckBoxTree extends JTree {
     private static void setChildrens(DefaultMutableTreeNode node, Boolean value) {
         for (int i = 0; i < node.getChildCount(); i++) {
             DefaultMutableTreeNode childNode = node(node.getChildAt(i));
-            if (!data(childNode).isSelected().equals(data(node).isSelected())) {
+            // Fix NPE from #20557
+            final CheckBoxNodeData childData = data(childNode);
+            final CheckBoxNodeData nodeData = data(node);
+            if (childData != null && nodeData != null &&
+                    !Objects.equals(childData.isSelected(), nodeData.isSelected())) {
                 data(childNode).setSelected(data(node).isSelected());
                 setChildrens(childNode, value);
             }


=====================================
src/org/openstreetmap/gui/jmapviewer/tilesources/TemplatedTMSTileSource.java
=====================================
@@ -95,7 +95,7 @@ public class TemplatedTMSTileSource extends TMSTileSource implements TemplatedTi
         Matcher m = PATTERN_SWITCH.matcher(baseUrl);
         if (m.find()) {
             rand = new Random();
-            randomParts = m.group(1).split(",");
+            randomParts = m.group(1).split(",", -1);
         }
         // Capturing group pattern on header values
         replacePattern((matcher, output) -> {



View it on GitLab: https://salsa.debian.org/debian-gis-team/jmapviewer/-/compare/3cfb754eae2eda87bb666b0ad967bf0bc2a0d2a7...c4be3b1819d4ac2976984e3bb7444777033b63c8

-- 
View it on GitLab: https://salsa.debian.org/debian-gis-team/jmapviewer/-/compare/3cfb754eae2eda87bb666b0ad967bf0bc2a0d2a7...c4be3b1819d4ac2976984e3bb7444777033b63c8
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/20210815/a33f4994/attachment-0001.htm>


More information about the Pkg-grass-devel mailing list