Skip to content
Permalink
Browse files
Fix build warnings in a few classes due to depreciation
  • Loading branch information
Manno15 committed Nov 24, 2021
2 parents bbab863 + cb058df commit 51bb9bc33a5e75fda787ecb96e7eef47c9469844
Showing 4 changed files with 5 additions and 4 deletions.
@@ -32,7 +32,7 @@ public static void main(String[] args) throws Exception {
Path confFile = Paths.get(args[1], "accumulo.properties");

PerformanceTest perfTest = Class.forName(className).asSubclass(PerformanceTest.class)
.newInstance();
.getDeclaredConstructor().newInstance();

Properties props = new Properties();

@@ -42,7 +42,7 @@ public static void main(String[] args) throws Exception {
String outputDir = args[3];

PerformanceTest perfTest = Class.forName(className).asSubclass(PerformanceTest.class)
.newInstance();
.getDeclaredConstructor().newInstance();

AccumuloClient client = Accumulo.newClient().from(clientProps).build();

@@ -72,7 +72,7 @@ Node getNode(String id) throws Exception {
if (id.endsWith(".xml")) {
node = new Module(id);
} else {
node = (Test) Class.forName(id).newInstance();
node = (Test) Class.forName(id).getDeclaredConstructor().newInstance();
}
nodes.put(id, node);
return node;
@@ -548,7 +548,8 @@ private void loadFromXml() throws Exception {
nodelist = d.getDocumentElement().getElementsByTagName("fixture");
if (nodelist.getLength() > 0) {
Element fixtureEl = (Element) nodelist.item(0);
fixture = (Fixture) Class.forName(getFullName(fixtureEl.getAttribute("id"))).newInstance();
fixture = (Fixture) Class.forName(getFullName(fixtureEl.getAttribute("id")))
.getDeclaredConstructor().newInstance();
}

// parse initial node

0 comments on commit 51bb9bc

Please sign in to comment.