Skip to content

Commit

Permalink
Add generics to un-parameterized Map
Browse files Browse the repository at this point in the history
  • Loading branch information
stevejagodzinski committed Oct 25, 2021
1 parent 1b555a0 commit c351e54
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/test/java/TestUtil.java
Original file line number Diff line number Diff line change
Expand Up @@ -224,7 +224,7 @@ public static void disableHttpEventCollector() throws IOException {
connectToSplunk();

//disable logging endpoint
Map args = new HashMap();
Map<String, Object> args = new HashMap<>();
args.put("disabled", 1);
ResponseMessage response = service.post("/servicesNS/admin/search/data/inputs/http/http", args);
assert response.getStatus() == 200;
Expand All @@ -237,7 +237,7 @@ public static void enableHttpEventCollector() throws IOException {
connectToSplunk();

//enable logging endpoint
Map args = new HashMap();
Map<String, Object> args = new HashMap<>();
args.put("disabled", 0);
ResponseMessage response = service.post("/servicesNS/admin/search/data/inputs/http/http", args);
assert response.getStatus() == 200;
Expand All @@ -250,7 +250,7 @@ public static void enableHttpEventCollector() throws IOException {
public static void disableHttpEventCollector(String httpEventCollectorName) throws IOException {
connectToSplunk();

Map args = new HashMap();
Map<String, Object> args = new HashMap<>();
args.put("disabled", 1);

ResponseMessage response = service.post(httpEventCollectorTokenEndpointPath + "/" + httpEventCollectorName, args);
Expand Down

0 comments on commit c351e54

Please sign in to comment.