deprecation

git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1893935 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
PJ Fanning 2021-10-06 14:16:51 +00:00
parent a7c82d5a22
commit fd548a7a33
1 changed files with 1 additions and 1 deletions

View File

@ -45,7 +45,7 @@ public enum FileHandlerKnown {
try {
// Because of no-scratchpad handling, we need to resort to reflection here
String n = name().replace("NULL", "Null");
return (FileHandler)Class.forName("org.apache.poi.stress." + n + "FileHandler").newInstance();
return (FileHandler)Class.forName("org.apache.poi.stress." + n + "FileHandler").getDeclaredConstructor().newInstance();
} catch (Exception e) {
return new NullFileHandler();
}