From d58dd553dcb6060c222d52c15ed0b0409bee3092 Mon Sep 17 00:00:00 2001 From: Dominik Stadler Date: Fri, 25 Nov 2016 22:07:52 +0000 Subject: [PATCH] Revert deprecating a class that we still use ourselves and update error text slightly git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1771395 13f79535-47bb-0310-9956-ffa450edef68 --- .../org/apache/poi/stress/POIXMLDocumentHandler.java | 2 +- src/java/org/apache/poi/hssf/OldExcelFormatException.java | 5 ----- 2 files changed, 1 insertion(+), 6 deletions(-) diff --git a/src/integrationtest/org/apache/poi/stress/POIXMLDocumentHandler.java b/src/integrationtest/org/apache/poi/stress/POIXMLDocumentHandler.java index 1a8cbf6a03..82b3f6d36e 100644 --- a/src/integrationtest/org/apache/poi/stress/POIXMLDocumentHandler.java +++ b/src/integrationtest/org/apache/poi/stress/POIXMLDocumentHandler.java @@ -44,7 +44,7 @@ public final class POIXMLDocumentHandler { } finally { poifs.close(); } - throw new IOException("wrong file format or file extension for OO XML file"); + throw new IOException("Wrong file format or file extension for OO XML file"); } return false; } diff --git a/src/java/org/apache/poi/hssf/OldExcelFormatException.java b/src/java/org/apache/poi/hssf/OldExcelFormatException.java index beb8c02c73..e42e613d84 100644 --- a/src/java/org/apache/poi/hssf/OldExcelFormatException.java +++ b/src/java/org/apache/poi/hssf/OldExcelFormatException.java @@ -17,12 +17,7 @@ package org.apache.poi.hssf; import org.apache.poi.OldFileFormatException; -import org.apache.poi.util.Removal; -/** - * @deprecated POI 3.16 beta 1. Use {@link org.apache.poi.OldFileFormatException} - */ -@Removal(version="3.18") public class OldExcelFormatException extends OldFileFormatException { public OldExcelFormatException(String s) { super(s);