Blame SOURCES/librepository-1.1.3-remove-commons-logging.patch

6aaa9b
diff -ru librepository-1.1.3.orig/source/org/pentaho/reporting/libraries/repository/zip/ZipContentLocation.java librepository-1.1.3/source/org/pentaho/reporting/libraries/repository/zip/ZipContentLocation.java
6aaa9b
--- librepository-1.1.3.orig/source/org/pentaho/reporting/libraries/repository/zip/ZipContentLocation.java	2021-04-07 11:16:05.369984495 +0100
6aaa9b
+++ librepository-1.1.3/source/org/pentaho/reporting/libraries/repository/zip/ZipContentLocation.java	2021-04-07 11:17:30.417035353 +0100
6aaa9b
@@ -21,8 +21,7 @@
6aaa9b
 import java.util.HashMap;
6aaa9b
 import java.util.zip.ZipEntry;
6aaa9b
 
6aaa9b
-import org.apache.commons.logging.Log;
6aaa9b
-import org.apache.commons.logging.LogFactory;
6aaa9b
+import java.util.logging.Logger;
6aaa9b
 import org.pentaho.reporting.libraries.repository.ContentCreationException;
6aaa9b
 import org.pentaho.reporting.libraries.repository.ContentEntity;
6aaa9b
 import org.pentaho.reporting.libraries.repository.ContentIOException;
6aaa9b
@@ -35,7 +34,7 @@
6aaa9b
 
6aaa9b
 public class ZipContentLocation implements ContentLocation
6aaa9b
 {
6aaa9b
-  private static final Log logger = LogFactory.getLog(ZipContentLocation.class);
6aaa9b
+  private static final Logger logger = Logger.getLogger(ZipContentLocation.class.getName());
6aaa9b
   private ZipRepository repository;
6aaa9b
   private ZipContentLocation parent;
6aaa9b
   private String comment;
6aaa9b
@@ -114,7 +113,7 @@
6aaa9b
     final Object entry = entries.get(path);
6aaa9b
     if (entry instanceof ContentItem)
6aaa9b
     {
6aaa9b
-      logger.warn("Directory-Entry with the same name as a Content-Entry encountered: " + path);
6aaa9b
+      logger.warning("Directory-Entry with the same name as a Content-Entry encountered: " + path);
6aaa9b
       return;
6aaa9b
     }
6aaa9b
     final ZipContentLocation location;
6aaa9b
@@ -164,7 +163,7 @@
6aaa9b
     {
6aaa9b
       if (entry instanceof ContentItem)
6aaa9b
       {
6aaa9b
-        logger.warn("Directory-Entry with the same name as a Content-Entry encountered: " + path);
6aaa9b
+        logger.warning("Directory-Entry with the same name as a Content-Entry encountered: " + path);
6aaa9b
         return;
6aaa9b
       }
6aaa9b
 
6aaa9b
@@ -188,12 +187,12 @@
6aaa9b
     {
6aaa9b
       if (entry instanceof ContentItem)
6aaa9b
       {
6aaa9b
-        logger.warn("Duplicate Content-Entry encountered: " + path);
6aaa9b
+        logger.warning("Duplicate Content-Entry encountered: " + path);
6aaa9b
         return;
6aaa9b
       }
6aaa9b
       else if (entry != null)
6aaa9b
       {
6aaa9b
-        logger.warn("Replacing Directory-Entry with the same name as a Content-Entry: " + path);
6aaa9b
+        logger.warning("Replacing Directory-Entry with the same name as a Content-Entry: " + path);
6aaa9b
       }
6aaa9b
       final ZipContentItem contentItem = new ZipContentItem(repository, this, zipEntry, data);
6aaa9b
       entries.put(path, contentItem);
6aaa9b
@@ -352,4 +351,4 @@
6aaa9b
   {
6aaa9b
     return (entries.remove(entity.getName()) != null);
6aaa9b
   }
6aaa9b
-}
6aaa9b
\ No newline at end of file
6aaa9b
+}
6aaa9b
diff -ru librepository-1.1.3.orig/source/org/pentaho/reporting/libraries/repository/zipreader/ZipReadContentLocation.java librepository-1.1.3/source/org/pentaho/reporting/libraries/repository/zipreader/ZipReadContentLocation.java
6aaa9b
--- librepository-1.1.3.orig/source/org/pentaho/reporting/libraries/repository/zipreader/ZipReadContentLocation.java	2021-04-07 11:16:05.365984446 +0100
6aaa9b
+++ librepository-1.1.3/source/org/pentaho/reporting/libraries/repository/zipreader/ZipReadContentLocation.java	2021-04-07 11:17:22.342935587 +0100
6aaa9b
@@ -21,8 +21,7 @@
6aaa9b
 import java.util.HashMap;
6aaa9b
 import java.util.zip.ZipEntry;
6aaa9b
 
6aaa9b
-import org.apache.commons.logging.Log;
6aaa9b
-import org.apache.commons.logging.LogFactory;
6aaa9b
+import java.util.logging.Logger;
6aaa9b
 import org.pentaho.reporting.libraries.repository.ContentCreationException;
6aaa9b
 import org.pentaho.reporting.libraries.repository.ContentEntity;
6aaa9b
 import org.pentaho.reporting.libraries.repository.ContentIOException;
6aaa9b
@@ -39,7 +38,7 @@
6aaa9b
  */
6aaa9b
 public class ZipReadContentLocation implements ContentLocation
6aaa9b
 {
6aaa9b
-  private static final Log logger = LogFactory.getLog(ZipReadContentLocation.class);
6aaa9b
+  private static final Logger logger = Logger.getLogger(ZipReadContentLocation.class.getName());
6aaa9b
   private ZipReadRepository repository;
6aaa9b
   private ZipReadContentLocation parent;
6aaa9b
   private String comment;
6aaa9b
@@ -117,7 +116,7 @@
6aaa9b
     final Object entry = entries.get(path);
6aaa9b
     if (entry instanceof ContentItem)
6aaa9b
     {
6aaa9b
-      logger.warn("Directory-Entry with the same name as a Content-Entry encountered: " + path);
6aaa9b
+      logger.warning("Directory-Entry with the same name as a Content-Entry encountered: " + path);
6aaa9b
       return;
6aaa9b
     }
6aaa9b
     final ZipReadContentLocation location;
6aaa9b
@@ -164,7 +163,7 @@
6aaa9b
     {
6aaa9b
       if (entry instanceof ContentItem)
6aaa9b
       {
6aaa9b
-        logger.warn("Directory-Entry with the same name as a Content-Entry encountered: " + path);
6aaa9b
+        logger.warning("Directory-Entry with the same name as a Content-Entry encountered: " + path);
6aaa9b
         return;
6aaa9b
       }
6aaa9b
 
6aaa9b
@@ -188,12 +187,12 @@
6aaa9b
     {
6aaa9b
       if (entry instanceof ContentItem)
6aaa9b
       {
6aaa9b
-        logger.warn("Duplicate Content-Entry encountered: " + path);
6aaa9b
+        logger.warning("Duplicate Content-Entry encountered: " + path);
6aaa9b
         return;
6aaa9b
       }
6aaa9b
       else if (entry != null)
6aaa9b
       {
6aaa9b
-        logger.warn("Replacing Directory-Entry with the same name as a Content-Entry: " + path);
6aaa9b
+        logger.warning("Replacing Directory-Entry with the same name as a Content-Entry: " + path);
6aaa9b
       }
6aaa9b
       final ZipReadContentItem contentItem = new ZipReadContentItem(repository, this, zipEntry, data);
6aaa9b
       entries.put(path, contentItem);