From b72c118216e4adf6f63fd3e93d01854f36e0eb0a Mon Sep 17 00:00:00 2001 From: Taylor Smock Date: Fri, 14 Jun 2024 08:11:56 -0600 Subject: [PATCH] Fix additional compile errors Signed-off-by: Taylor Smock --- pom.xml | 5 +++++ .../josm/plugins/mapillary/utils/ImageMetaDataUtil.java | 3 +-- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/pom.xml b/pom.xml index b5b381e2a..b50d2aeba 100644 --- a/pom.xml +++ b/pom.xml @@ -49,6 +49,11 @@ 1.3.4 compile + + org.apache.commons + commons-lang3 + provided + diff --git a/src/main/java/org/openstreetmap/josm/plugins/mapillary/utils/ImageMetaDataUtil.java b/src/main/java/org/openstreetmap/josm/plugins/mapillary/utils/ImageMetaDataUtil.java index 6478f388d..3dfd62339 100644 --- a/src/main/java/org/openstreetmap/josm/plugins/mapillary/utils/ImageMetaDataUtil.java +++ b/src/main/java/org/openstreetmap/josm/plugins/mapillary/utils/ImageMetaDataUtil.java @@ -10,7 +10,6 @@ import javax.xml.parsers.DocumentBuilder; import javax.xml.parsers.ParserConfigurationException; -import org.apache.commons.imaging.ImageReadException; import org.apache.commons.imaging.Imaging; import org.openstreetmap.josm.tools.Logging; import org.openstreetmap.josm.tools.XmlUtils; @@ -53,7 +52,7 @@ public static boolean isPanorama(final InputStream is) { boolean pano = false; try { pano = checkXmpProjectionType(Imaging.getXmpXml(is, null), "equirectangular"); - } catch (ImageReadException | IOException ex) { + } catch (IOException ex) { Logging.trace(ex); } return pano;