mirror of https://github.com/apache/poi.git
deprecation
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1893935 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
a7c82d5a22
commit
fd548a7a33
|
@ -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();
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue