[Git][debian-gis-team/jmapviewer][upstream] New upstream version 2.19+dfsg
Bas Couwenberg (@sebastic)
gitlab at salsa.debian.org
Thu Dec 28 05:45:46 GMT 2023
Bas Couwenberg pushed to branch upstream at Debian GIS Project / jmapviewer
Commits:
fb1c3dbd by Bas Couwenberg at 2023-12-28T06:38:07+01:00
New upstream version 2.19+dfsg
- - - - -
2 changed files:
- build.xml
- src/org/openstreetmap/gui/jmapviewer/TileRange.java
Changes:
=====================================
build.xml
=====================================
@@ -139,7 +139,7 @@
<target name="checkstyle" depends="resolve">
<taskdef resource="com/puppycrawl/tools/checkstyle/ant/checkstyle-ant-task.properties"
classpathref="checkstyle.classpath"/>
- <checkstyle config="tools/checkstyle/jmapviewer_checks.xml">
+ <checkstyle config="${basedir}/tools/checkstyle/jmapviewer_checks.xml">
<!-- Exclude the module-info since checkstyle currently cannot parse it -->
<fileset dir="${basedir}/src" includes="**/*.java" excludes="module-info.java" />
<formatter type="xml" toFile="checkstyle-jmapviewer.xml"/>
=====================================
src/org/openstreetmap/gui/jmapviewer/TileRange.java
=====================================
@@ -47,11 +47,12 @@ public class TileRange {
/**
* Returns size
* @return size
+ * @throws ArithmeticException – if the result overflows an int (see {@link Math#multiplyExact(int, int)})
*/
- public int size() {
+ public int size() throws ArithmeticException {
int xSpan = maxX - minX + 1;
int ySpan = maxY - minY + 1;
- return xSpan * ySpan;
+ return Math.multiplyExact(xSpan, ySpan);
}
}
View it on GitLab: https://salsa.debian.org/debian-gis-team/jmapviewer/-/commit/fb1c3dbdc3a83ef8896a24aae0638d17faf0b54a
--
View it on GitLab: https://salsa.debian.org/debian-gis-team/jmapviewer/-/commit/fb1c3dbdc3a83ef8896a24aae0638d17faf0b54a
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/20231228/6fbf7a7a/attachment-0001.htm>
More information about the Pkg-grass-devel
mailing list