Skip to content

Commit

Permalink
Fix typos in log messages and JavaDoc
Browse files Browse the repository at this point in the history
Fix typos in `occurred` and `formatted`.

Follow up to zaproxy/zaproxy#8623.

Signed-off-by: thc202 <thc202@gmail.com>
  • Loading branch information
thc202 committed Sep 11, 2024
1 parent 46ce4f5 commit a8dc34c
Show file tree
Hide file tree
Showing 6 changed files with 11 additions and 6 deletions.
3 changes: 2 additions & 1 deletion addOns/ascanrules/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,8 @@ All notable changes to this add-on will be documented in this file.
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/).

## Unreleased

### Changed
- Maintenance changes.

## [67] - 2024-07-22

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -222,8 +222,8 @@ private void timeBasedTests(String paramName, String[] commandExecPayloads) {
* Check if the given payloadFormat causes an time delay in the server
*
* @param paramName the name of the parameter where to search for or injection
* @param payloadFormat format string that when formated with 1 argument makes a string that may
* cause a delay equal to the number of second inserted by the format
* @param payloadFormat format string that when formatted with 1 argument makes a string that
* may cause a delay equal to the number of second inserted by the format
*/
private boolean checkIfCausesTimeDelay(String paramName, String payloadFormat) {
AtomicReference<HttpMessage> message = new AtomicReference<>();
Expand Down
3 changes: 3 additions & 0 deletions addOns/network/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,9 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
### Added
- Send success/failure stats.

### Fixed
- Fix typo in log message.

## [0.17.0] - 2024-09-02
### Changed
- Maintenance changes.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -488,7 +488,7 @@ private void viewRootCaCert() {
file = Files.createTempFile(ZAP_ROOT_CA_NAME, ZAP_ROOT_CA_FILE_EXT);
writePem(file);
} catch (IOException e) {
LOGGER.error("An error occured while creating the temporary file", e);
LOGGER.error("An error occurred while creating the temporary file", e);
return;
}

Expand Down
3 changes: 2 additions & 1 deletion addOns/pscanrulesBeta/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,8 @@ All notable changes to this add-on will be documented in this file.
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/).

## Unreleased

### Fixed
- Fix typo in log message.

## [41] - 2024-09-02
### Fixed
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,7 @@ private String calculateIntegrityHash(HttpMessage msg, Element element, SiteMap
.toString()));
}
} catch (Exception e) {
LOGGER.debug("Error occured while calculating the hash. Error: {}", e.getMessage(), e);
LOGGER.debug("Error occurred while calculating the hash. Error: {}", e.getMessage(), e);
}
return integrityHash;
}
Expand Down

0 comments on commit a8dc34c

Please sign in to comment.