Skip to content

Commit 12926c7

Browse files
committed
Fixed a few PMD scan violations that were missed in PR #850 due to issues with the pipeline not working on forks
1 parent 6a6c556 commit 12926c7

File tree

3 files changed

+6
-4
lines changed

3 files changed

+6
-4
lines changed

docs/apex/Logger-Engine/LogEntryEventBuilder.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -802,9 +802,9 @@ Sets the log entry event's record fields
802802

803803
##### Parameters
804804

805-
| Param | Description |
806-
| ------------ | --------------------------------------------------------------------------------------------------------------------------------------------- |
807-
| `recordsIds` | The Set of `SObject` records ids related to the entry. Will be converted to list and the JSON of the list is automatically added to the entry |
805+
| Param | Description |
806+
| ----------- | --------------------------------------------------------------------------------------------------------------------------------------------- |
807+
| `recordIds` | The Set of `SObject` records ids related to the entry. Will be converted to list and the JSON of the list is automatically added to the entry |
808808

809809
##### Return
810810

nebula-logger/core/main/log-management/classes/LogEntryEventHandler.cls

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -429,6 +429,7 @@ public without sharing class LogEntryEventHandler extends LoggerSObjectHandler {
429429
}
430430
}
431431

432+
@SuppressWarnings('PMD.UnusedLocalVariable')
432433
private void upsertLogEntryTags() {
433434
if (LoggerParameter.ENABLE_TAGGING == false || LoggerParameter.NORMALIZE_TAG_DATA == false || this.tagNames.isEmpty()) {
434435
return;
@@ -499,6 +500,7 @@ public without sharing class LogEntryEventHandler extends LoggerSObjectHandler {
499500
return logOwnerId;
500501
}
501502

503+
@SuppressWarnings('PMD.UnusedLocalVariable')
502504
private Map<String, Id> getTagNameToId(Schema.SObjectType tagSObjectType) {
503505
Map<String, Id> tagNameToId = new Map<String, Id>();
504506

nebula-logger/core/main/logger-engine/classes/LogEntryEventBuilder.cls

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -548,7 +548,7 @@ global with sharing class LogEntryEventBuilder {
548548

549549
/**
550550
* @description Sets the log entry event's record fields
551-
* @param recordsIds The Set of `SObject` records ids related to the entry. Will be converted to list and the JSON of the list is automatically added to the entry
551+
* @param recordIds The Set of `SObject` records ids related to the entry. Will be converted to list and the JSON of the list is automatically added to the entry
552552
* @return The same instance of `LogEntryEventBuilder`, useful for chaining methods
553553
*/
554554
global LogEntryEventBuilder setRecord(System.Iterable<Id> recordIds) {

0 commit comments

Comments
 (0)