-
Notifications
You must be signed in to change notification settings - Fork 1
feat: Upgrade java 17 #18
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
bfadaa7
732850b
efd2f09
919f526
10f1449
30a5ffd
545dad7
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -8,9 +8,11 @@ | |
|
|
||
| <properties> | ||
| <apache-log4j.version>2.25.3</apache-log4j.version> | ||
| <zap-clientapi.version>1.16.0</zap-clientapi.version> | ||
| <zap-clientapi.version>1.17.0</zap-clientapi.version> | ||
| <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding> | ||
| <maven.compiler.version>3.8.1</maven.compiler.version> | ||
| <maven.compiler.version>3.13.0</maven.compiler.version> | ||
| <maven.compiler.source>17</maven.compiler.source> | ||
| <maven.compiler.target>17</maven.compiler.target> | ||
| <github.url>https://maven.pkg.github.com/dvsa/vol-app-security-lib</github.url> | ||
|
Comment on lines
+13
to
16
|
||
| </properties> | ||
|
|
||
|
|
@@ -21,7 +23,8 @@ | |
| <artifactId>maven-compiler-plugin</artifactId> | ||
| <version>${maven.compiler.version}</version> | ||
| <configuration> | ||
| <release>11</release> | ||
| <source>17</source> | ||
| <target>17</target> | ||
|
sr4850 marked this conversation as resolved.
|
||
| </configuration> | ||
|
Comment on lines
25
to
28
|
||
| </plugin> | ||
| </plugins> | ||
|
|
||
| Original file line number | Diff line number | Diff line change | ||||||||
|---|---|---|---|---|---|---|---|---|---|---|
|
|
@@ -34,36 +34,48 @@ public ScannerMethods(String ZAP_IP_ADDRESS, int ZAP_PORT) { | |||||||||
| * Method for creating summary table for HTML report | ||||||||||
| */ | ||||||||||
| private String createReportSummaryTable() { | ||||||||||
| return "<table width=45% border=0>" + "<tr bgcolor=#666666>" + | ||||||||||
| "<td width=45% height=24>" + "<strong>" + "<font color=#FFFFFF size=2 face=Arial, Helvetica, sans-serif>URLs SCANNED" + "</font></strong></td></tr>" + | ||||||||||
| "<tr bgcolor=#e8e8e8>" + | ||||||||||
| String.format("<td><font size=2 face=Arial, Helvetica, sans-serif><a href=#%s>%s</a></font></td>", this.reportURL, this.reportURL) + | ||||||||||
| "</tr>" + | ||||||||||
| "<p></p>" + | ||||||||||
| "<p></p>" + | ||||||||||
| "<p></p>" + | ||||||||||
| "<p></p>"; | ||||||||||
| return String.format(""" | ||||||||||
| <table width=45%% border=0> | ||||||||||
| <tr bgcolor=#666666> | ||||||||||
| <td width=45%% height=24> | ||||||||||
| <strong> | ||||||||||
| <font color=#FFFFFF size=2 face=Arial, Helvetica, sans-serif>URLs SCANNED</font> | ||||||||||
| </strong> | ||||||||||
| </td> | ||||||||||
| </tr> | ||||||||||
| <tr bgcolor=#e8e8e8> | ||||||||||
| <td><font size=2 face=Arial, Helvetica, sans-serif><a href=#%s>%s</a></font></td> | ||||||||||
| </tr> | ||||||||||
| <p></p> | ||||||||||
| <p></p> | ||||||||||
| <p></p> | ||||||||||
| <p></p>""", this.reportURL, this.reportURL); | ||||||||||
|
Comment on lines
+48
to
+52
|
||||||||||
| ) and doesn’t close the table, which is invalid markup and can render inconsistently. Consider using CSS spacing or spacer |
| rows, and ensure the table is properly closed. |
Copilot
AI
Feb 16, 2026
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The header markup is not valid table structure:
and are placed directly inside a rather than within a /, and the opening isn’t closed before additional rows are appended. Move the heading outside the table (or use ) and ensure each row has proper ... with cells.
Copilot
AI
Feb 16, 2026
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The report output path is built with a hardcoded '/' separator (String.format("%s/%s", ...)), which is not portable across OSes. Prefer dir.getAbsolutePath() or Paths.get(System.getProperty("user.dir"), dir.getPath()).toString() / File(base, child) to construct the path safely.
| null, null, null, null, String.format("%s%s - %d", reportName, date, seconds), null, | |
| String.format("%s/%s", System.getProperty("user.dir"), dir), null); | |
| null, null, null, null, String.format("%s%s - %d", reportName, date, seconds), null, | |
| new File(System.getProperty("user.dir"), dir.getPath()).getAbsolutePath(), null); |
Uh oh!
There was an error while loading. Please reload this page.