Changeset 36198 in osm for applications/viewer/jmapviewer/src
- Timestamp:
- 2023-12-27T16:17:21+01:00 (18 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
applications/viewer/jmapviewer/src/org/openstreetmap/gui/jmapviewer/TileRange.java
r33285 r36198 48 48 * Returns size 49 49 * @return size 50 * @throws ArithmeticException – if the result overflows an int (see {@link Math#multiplyExact(int, int)}) 50 51 */ 51 public int size() { 52 public int size() throws ArithmeticException { 52 53 int xSpan = maxX - minX + 1; 53 54 int ySpan = maxY - minY + 1; 54 return xSpan * ySpan;55 return Math.multiplyExact(xSpan, ySpan); 55 56 } 56 57 }
Note:
See TracChangeset
for help on using the changeset viewer.