Skip to content
This repository has been archived by the owner on Oct 2, 2023. It is now read-only.

Commit

Permalink
Merge pull request #6 from nameisaravind/nfrr_batch
Browse files Browse the repository at this point in the history
NFRR collector - core version upgraded and oss audit empty url handling
  • Loading branch information
rvema authored Nov 7, 2019
2 parents 95321a0 + 714ef1f commit 30bad9e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@
<repository.name>hygieia-audit-nfrr-collector</repository.name>
<apache.rat.plugin.version>0.13</apache.rat.plugin.version>
<bc.version>3.0.1</bc.version>
<com.capitalone.dashboard.core.version>3.1.5</com.capitalone.dashboard.core.version>
<com.capitalone.dashboard.core.version>3.1.12</com.capitalone.dashboard.core.version>
<commons.io.version>2.4</commons.io.version>
<commons.lang.version>3.8.1</commons.lang.version>
<coveralls.maven.plugin.version>4.3.0</coveralls.maven.plugin.version>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -337,7 +337,7 @@ private Audit getOSSAudit(JSONArray jsonArray, JSONArray global) {
for (Object o : jsonArray) {
JSONArray auditJO = (JSONArray) ((JSONObject) o).get(STR_AUDITSTATUSES);
Optional<Object> lpOptObj = Optional.ofNullable(((JSONObject) o).get(STR_LIBRARYPOLICYRESULT));
lpOptObj.ifPresent(lpObj -> audit.getUrl().add(((JSONObject) lpOptObj.get()).get(STR_REPORTURL).toString()));
lpOptObj.ifPresent(lpObj -> audit.getUrl().add((String)((JSONObject) lpOptObj.get()).get(STR_REPORTURL)));
auditJO.stream().map(aj -> audit.getAuditStatusCodes().add((String) aj));
boolean ok = false;
for (Object s : auditJO) {
Expand Down

0 comments on commit 30bad9e

Please sign in to comment.