Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -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();

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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();

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down