From 4ba61ccb7e43e8b8f853451c2e5c1ce175031cb1 Mon Sep 17 00:00:00 2001 From: Nick Burch Date: Tue, 1 Sep 2015 19:19:55 +0000 Subject: [PATCH] Fix some Forbidden APIs errors git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1700648 13f79535-47bb-0310-9956-ffa450edef68 --- src/java/org/apache/poi/hssf/dev/BiffDrawingToXml.java | 7 ++----- src/java/org/apache/poi/hssf/record/HyperlinkRecord.java | 5 +---- src/java/org/apache/poi/hssf/record/WriteAccessRecord.java | 4 +--- 3 files changed, 4 insertions(+), 12 deletions(-) diff --git a/src/java/org/apache/poi/hssf/dev/BiffDrawingToXml.java b/src/java/org/apache/poi/hssf/dev/BiffDrawingToXml.java index ca35c631b5..94ba90bed4 100644 --- a/src/java/org/apache/poi/hssf/dev/BiffDrawingToXml.java +++ b/src/java/org/apache/poi/hssf/dev/BiffDrawingToXml.java @@ -35,15 +35,12 @@ import org.apache.poi.hssf.record.EscherAggregate; import org.apache.poi.hssf.usermodel.HSSFPatriarch; import org.apache.poi.hssf.usermodel.HSSFWorkbook; import org.apache.poi.poifs.filesystem.NPOIFSFileSystem; +import org.apache.poi.util.StringUtil; /** * Utility for representing drawings contained in a binary Excel file as a XML tree - * - * @author Evgeniy Berlog - * date: 10.04.12 */ public class BiffDrawingToXml { - private static final String SHEET_NAME_PARAM = "-sheet-name"; private static final String SHEET_INDEXES_PARAM = "-sheet-indexes"; private static final String EXCLUDE_WORKBOOK_RECORDS = "-exclude-workbook"; @@ -163,7 +160,7 @@ public class BiffDrawingToXml { } } builder.append("\n"); - fos.write(builder.toString().getBytes()); + fos.write(builder.toString().getBytes(StringUtil.UTF8)); fos.close(); } diff --git a/src/java/org/apache/poi/hssf/record/HyperlinkRecord.java b/src/java/org/apache/poi/hssf/record/HyperlinkRecord.java index 07466f06e3..471c1752a7 100644 --- a/src/java/org/apache/poi/hssf/record/HyperlinkRecord.java +++ b/src/java/org/apache/poi/hssf/record/HyperlinkRecord.java @@ -35,9 +35,6 @@ import org.apache.poi.util.StringUtil; * The HyperlinkRecord (0x01B8) wraps an HLINK-record * from the Excel-97 format. * Supports only external links for now (eg http://) - * - * @author Mark Hissink Muller