aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPJ Fanning <fanningpj@apache.org>2022-07-22 10:33:31 +0000
committerPJ Fanning <fanningpj@apache.org>2022-07-22 10:33:31 +0000
commit5c34bad8f405116824d5e1f2ef3de06f7d9d0eb5 (patch)
tree15256c7c75bdb9183c8db3393304ebd058c47be1
parentbd5a95acbfe1e4bcee484c0e1f8c4bc0075e94d0 (diff)
downloadpoi-5c34bad8f405116824d5e1f2ef3de06f7d9d0eb5.tar.gz
poi-5c34bad8f405116824d5e1f2ef3de06f7d9d0eb5.zip
forbidden api
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1902939 13f79535-47bb-0310-9956-ffa450edef68
-rw-r--r--poi-examples/src/main/java/org/apache/poi/examples/xslf/SmartArtConversionDemo.java3
-rw-r--r--poi-ooxml/src/test/java/org/apache/poi/xslf/usermodel/TestXSLFDiagram.java2
2 files changed, 3 insertions, 2 deletions
diff --git a/poi-examples/src/main/java/org/apache/poi/examples/xslf/SmartArtConversionDemo.java b/poi-examples/src/main/java/org/apache/poi/examples/xslf/SmartArtConversionDemo.java
index 95f9f9add4..56bc53d5b1 100644
--- a/poi-examples/src/main/java/org/apache/poi/examples/xslf/SmartArtConversionDemo.java
+++ b/poi-examples/src/main/java/org/apache/poi/examples/xslf/SmartArtConversionDemo.java
@@ -17,6 +17,7 @@
package org.apache.poi.examples.xslf;
import org.apache.poi.ooxml.POIXMLDocumentPart;
+import org.apache.poi.util.LocaleUtil;
import org.apache.poi.xslf.usermodel.*;
import org.openxmlformats.schemas.drawingml.x2006.main.CTBlip;
import org.openxmlformats.schemas.drawingml.x2006.main.CTBlipFillProperties;
@@ -48,7 +49,7 @@ public class SmartArtConversionDemo {
File inputFile = new File(args[0]);
if (!inputFile.exists()) {
- System.out.printf("Unable to find input file at path: %s", args[0]);
+ System.out.printf(LocaleUtil.getUserLocale(), "Unable to find input file at path: %s", args[0]);
System.exit(1);
}
diff --git a/poi-ooxml/src/test/java/org/apache/poi/xslf/usermodel/TestXSLFDiagram.java b/poi-ooxml/src/test/java/org/apache/poi/xslf/usermodel/TestXSLFDiagram.java
index 21dadf57c2..82444cc26d 100644
--- a/poi-ooxml/src/test/java/org/apache/poi/xslf/usermodel/TestXSLFDiagram.java
+++ b/poi-ooxml/src/test/java/org/apache/poi/xslf/usermodel/TestXSLFDiagram.java
@@ -41,7 +41,7 @@ public class TestXSLFDiagram {
.map(s -> (XSLFDiagram) s)
.collect(Collectors.toList());
}
-
+
private static String colorToHex(Color color) {
return String.format("#%02x%02x%02x", color.getRed(), color.getGreen(), color.getBlue());
}