commons-httpclient
commons-httpclient
diff --git a/core/src/main/java/org/fao/geonet/kernel/thumbnail/ThumbnailMaker.java b/core/src/main/java/org/fao/geonet/kernel/thumbnail/ThumbnailMaker.java
index 3ac0fa272d7..424ba57bbdc 100644
--- a/core/src/main/java/org/fao/geonet/kernel/thumbnail/ThumbnailMaker.java
+++ b/core/src/main/java/org/fao/geonet/kernel/thumbnail/ThumbnailMaker.java
@@ -1,5 +1,5 @@
//=============================================================================
-//=== Copyright (C) 2001-2014 Food and Agriculture Organization of the
+//=== Copyright (C) 2001-2022 Food and Agriculture Organization of the
//=== United Nations (FAO-UN), United Nations World Food Programme (WFP)
//=== and United Nations Environment Programme (UNEP)
//===
@@ -24,8 +24,6 @@
package org.fao.geonet.kernel.thumbnail;
import jeeves.server.context.ServiceContext;
-
-import org.dom4j.DocumentException;
import org.fao.geonet.constants.Geonet;
import org.fao.geonet.utils.IO;
import org.fao.geonet.utils.Log;
@@ -36,23 +34,17 @@
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.ApplicationContext;
-import java.awt.Graphics2D;
-import java.awt.Transparency;
+import javax.imageio.ImageIO;
+import java.awt.*;
import java.awt.image.BufferedImage;
-import java.io.File;
-import java.io.FileNotFoundException;
-import java.io.IOException;
-import java.io.InputStream;
-import java.io.OutputStream;
+import java.io.*;
import java.nio.file.Files;
import java.nio.file.Path;
import java.util.HashMap;
-import javax.imageio.ImageIO;
-
/**
* Use MapFish print module to generate thumbnail.
- *
+ *
* Created by francois on 3/25/14.
*/
public class ThumbnailMaker {
@@ -150,7 +142,7 @@ private MapPrinter getMapPrinter() {
}
public Path generateThumbnail(String jsonConfig, Integer rotationAngle)
- throws IOException, DocumentException, com.itextpdf.text.DocumentException {
+ throws IOException {
PJsonObject specJson = MapPrinter.parseSpec(jsonConfig);
if (Log.isDebugEnabled(LOGGER_NAME)) {
diff --git a/pom.xml b/pom.xml
index 462ba2fa84f..bc2a7d0a714 100644
--- a/pom.xml
+++ b/pom.xml
@@ -428,11 +428,11 @@