Avoid potential negative array index access to cached text.
[LibreOffice.git] / external / jfreereport / patches / libserializer-1.1.2-remove-commons-logging.patch.1
blob52ee76a77491fb0ac9c6f32db38f583977c88112
1 diff -ru libserializer-1.1.2.orig/source/org/pentaho/reporting/libraries/serializer/SerializerHelper.java libserializer-1.1.2/source/org/pentaho/reporting/libraries/serializer/SerializerHelper.java
2 --- libserializer-1.1.2.orig/source/org/pentaho/reporting/libraries/serializer/SerializerHelper.java    2021-04-07 11:22:05.509434457 +0100
3 +++ libserializer-1.1.2/source/org/pentaho/reporting/libraries/serializer/SerializerHelper.java 2021-04-07 11:23:19.102343782 +0100
4 @@ -25,8 +25,7 @@
5  import java.util.HashMap;
6  import java.util.Iterator;
7  
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.base.config.Configuration;
12  import org.pentaho.reporting.libraries.base.util.ObjectUtilities;
13  import org.pentaho.reporting.libraries.base.util.DebugLog;
14 @@ -41,7 +40,7 @@
15   */
16  public class SerializerHelper
17  {
18 -  private static final Log logger = LogFactory.getLog(SerializerHelper.class);
19 +  private static final Logger logger = Logger.getLogger(SerializerHelper.class.getName());
20    /**
21     * The singleton instance of the serialize helper.
22     */
23 @@ -124,7 +123,7 @@
24        }
25        else
26        {
27 -        logger.warn("Invalid SerializeMethod implementation: " + c);
28 +        logger.warning("Invalid SerializeMethod implementation: " + c);
29        }
30      }
31    }