1 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
2 --- librepository-1.1.3.orig/source/org/pentaho/reporting/libraries/repository/zip/ZipContentLocation.java 2021-04-07 11:16:05.369984495 +0100
3 +++ librepository-1.1.3/source/org/pentaho/reporting/libraries/repository/zip/ZipContentLocation.java 2021-04-07 11:17:30.417035353 +0100
5 import java.util.HashMap;
6 import java.util.zip.ZipEntry;
8 -import org.apache.commons.logging.Log;
9 -import org.apache.commons.logging.LogFactory;
10 +import java.util.logging.Logger;
11 import org.pentaho.reporting.libraries.repository.ContentCreationException;
12 import org.pentaho.reporting.libraries.repository.ContentEntity;
13 import org.pentaho.reporting.libraries.repository.ContentIOException;
16 public class ZipContentLocation implements ContentLocation
18 - private static final Log logger = LogFactory.getLog(ZipContentLocation.class);
19 + private static final Logger logger = Logger.getLogger(ZipContentLocation.class.getName());
20 private ZipRepository repository;
21 private ZipContentLocation parent;
22 private String comment;
24 final Object entry = entries.get(path);
25 if (entry instanceof ContentItem)
27 - logger.warn("Directory-Entry with the same name as a Content-Entry encountered: " + path);
28 + logger.warning("Directory-Entry with the same name as a Content-Entry encountered: " + path);
31 final ZipContentLocation location;
34 if (entry instanceof ContentItem)
36 - logger.warn("Directory-Entry with the same name as a Content-Entry encountered: " + path);
37 + logger.warning("Directory-Entry with the same name as a Content-Entry encountered: " + path);
43 if (entry instanceof ContentItem)
45 - logger.warn("Duplicate Content-Entry encountered: " + path);
46 + logger.warning("Duplicate Content-Entry encountered: " + path);
49 else if (entry != null)
51 - logger.warn("Replacing Directory-Entry with the same name as a Content-Entry: " + path);
52 + logger.warning("Replacing Directory-Entry with the same name as a Content-Entry: " + path);
54 final ZipContentItem contentItem = new ZipContentItem(repository, this, zipEntry, data);
55 entries.put(path, contentItem);
58 return (entries.remove(entity.getName()) != null);
61 \ No newline at end of file
63 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
64 --- librepository-1.1.3.orig/source/org/pentaho/reporting/libraries/repository/zipreader/ZipReadContentLocation.java 2021-04-07 11:16:05.365984446 +0100
65 +++ librepository-1.1.3/source/org/pentaho/reporting/libraries/repository/zipreader/ZipReadContentLocation.java 2021-04-07 11:17:22.342935587 +0100
67 import java.util.HashMap;
68 import java.util.zip.ZipEntry;
70 -import org.apache.commons.logging.Log;
71 -import org.apache.commons.logging.LogFactory;
72 +import java.util.logging.Logger;
73 import org.pentaho.reporting.libraries.repository.ContentCreationException;
74 import org.pentaho.reporting.libraries.repository.ContentEntity;
75 import org.pentaho.reporting.libraries.repository.ContentIOException;
78 public class ZipReadContentLocation implements ContentLocation
80 - private static final Log logger = LogFactory.getLog(ZipReadContentLocation.class);
81 + private static final Logger logger = Logger.getLogger(ZipReadContentLocation.class.getName());
82 private ZipReadRepository repository;
83 private ZipReadContentLocation parent;
84 private String comment;
86 final Object entry = entries.get(path);
87 if (entry instanceof ContentItem)
89 - logger.warn("Directory-Entry with the same name as a Content-Entry encountered: " + path);
90 + logger.warning("Directory-Entry with the same name as a Content-Entry encountered: " + path);
93 final ZipReadContentLocation location;
96 if (entry instanceof ContentItem)
98 - logger.warn("Directory-Entry with the same name as a Content-Entry encountered: " + path);
99 + logger.warning("Directory-Entry with the same name as a Content-Entry encountered: " + path);
103 @@ -188,12 +187,12 @@
105 if (entry instanceof ContentItem)
107 - logger.warn("Duplicate Content-Entry encountered: " + path);
108 + logger.warning("Duplicate Content-Entry encountered: " + path);
111 else if (entry != null)
113 - logger.warn("Replacing Directory-Entry with the same name as a Content-Entry: " + path);
114 + logger.warning("Replacing Directory-Entry with the same name as a Content-Entry: " + path);
116 final ZipReadContentItem contentItem = new ZipReadContentItem(repository, this, zipEntry, data);
117 entries.put(path, contentItem);