Skip to content
Permalink
Browse files
replace use of deprecated newInstance() (#151)
Replaced the use of the deprecated newInstance() method with its replacement getDeclaredConstructor().newInstance()
  • Loading branch information
DomGarguilo committed Sep 10, 2021
1 parent e89cd6d commit 73d63145450c445ca1fc833c4c5502a95af00fd1
Showing 1 changed file with 1 addition and 1 deletion.
@@ -80,7 +80,7 @@ public static void main(String[] args) throws Exception {

ScaleTest test = (ScaleTest) Class
.forName(String.format("org.apache.accumulo.test.scalability.%s", opts.testId))
.newInstance();
.getDeclaredConstructor().newInstance();

test.init(scaleProps, testProps, opts.numTabletServers);

0 comments on commit 73d6314

Please sign in to comment.