Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
jandro996 committed Apr 16, 2024
1 parent 82b29ef commit ac1b217
Showing 1 changed file with 7 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -148,12 +148,12 @@ public void checkSessionTrackingModes(@Nonnull Set<String> sessionTrackingModes)
new Evidence(SESSION_REWRITING_EVIDENCE_VALUE)));
}

private void checkWebsphereVulnerabilities(@Nonnull Path path, AgentSpan span) {
private void checkWebsphereVulnerabilities(@Nonnull final Path path, final AgentSpan span) {
checkWebsphereXMLVulnerabilities(path, span);
checkWebsphereXMIVulnerabilities(path, span);
}

private void checkWebsphereXMIVulnerabilities(@Nonnull Path path, AgentSpan span) {
private void checkWebsphereXMIVulnerabilities(@Nonnull final Path path, final AgentSpan span) {
String xmlContent = getXmlContent(path, IBM_WEB_EXT_XMI);
if (xmlContent == null) {
return;
Expand All @@ -164,7 +164,7 @@ private void checkWebsphereXMIVulnerabilities(@Nonnull Path path, AgentSpan span
}
}

private void checkWebsphereXMLVulnerabilities(@Nonnull Path path, AgentSpan span) {
private void checkWebsphereXMLVulnerabilities(@Nonnull final Path path, final AgentSpan span) {
String xmlContent = getXmlContent(path, IBM_WEB_EXT_XML);
if (xmlContent == null) {
return;
Expand All @@ -175,7 +175,7 @@ private void checkWebsphereXMLVulnerabilities(@Nonnull Path path, AgentSpan span
}
}

private void checkWeblogicVulnerabilities(@Nonnull Path path, AgentSpan span) {
private void checkWeblogicVulnerabilities(@Nonnull final Path path, final AgentSpan span) {
String xmlContent = getXmlContent(path, WEBLOGIC_XML);
if (xmlContent == null) {
return;
Expand All @@ -186,7 +186,7 @@ private void checkWeblogicVulnerabilities(@Nonnull Path path, AgentSpan span) {
}
}

private void checkWebXmlVulnerabilities(@Nonnull Path path, AgentSpan span) {
private void checkWebXmlVulnerabilities(@Nonnull final Path path, final AgentSpan span) {
String webXmlContent = getXmlContent(path, WEB_XML);
if (webXmlContent == null) {
return;
Expand Down Expand Up @@ -277,7 +277,8 @@ private void checkDirectoryListingLeak(
}
}

private void reportDirectoryListingLeak(String webXmlContent, int index, AgentSpan span) {
private void reportDirectoryListingLeak(
final String webXmlContent, int index, final AgentSpan span) {
report(
span,
VulnerabilityType.DIRECTORY_LISTING_LEAK,
Expand Down

0 comments on commit ac1b217

Please sign in to comment.