diff --git a/nebula-logger/core/main/logger-engine/classes/LogEntryEventBuilder.cls b/nebula-logger/core/main/logger-engine/classes/LogEntryEventBuilder.cls index fe12ba025..bd35a244e 100644 --- a/nebula-logger/core/main/logger-engine/classes/LogEntryEventBuilder.cls +++ b/nebula-logger/core/main/logger-engine/classes/LogEntryEventBuilder.cls @@ -467,7 +467,7 @@ global with sharing class LogEntryEventBuilder { * @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 * @return The same instance of `LogEntryEventBuilder`, useful for chaining methods */ - global LogEntryEventBuilder setRecord(Iterable recordsIds) { + global LogEntryEventBuilder setRecord(System.Iterable recordsIds) { if (this.shouldSave() == false) { return this; } diff --git a/nebula-logger/extra-tests/classes/name-shadowing/System/Iterable.cls b/nebula-logger/extra-tests/classes/name-shadowing/System/Iterable.cls new file mode 100644 index 000000000..868750e18 --- /dev/null +++ b/nebula-logger/extra-tests/classes/name-shadowing/System/Iterable.cls @@ -0,0 +1,10 @@ +//------------------------------------------------------------------------------------------------// +// This file is part of the Nebula Logger project, released under the MIT License. // +// See LICENSE file or go to https://github.com/jongpie/NebulaLogger for full license details. // +//------------------------------------------------------------------------------------------------// + +// This class intentionally does nothing - it's here to ensure that any references +// in Nebula Logger's codebase use `System.Iterable` instead of just `Iterable` +@SuppressWarnings('PMD.ApexDoc, PMD.EmptyStatementBlock') +public without sharing class Iterable { +} diff --git a/nebula-logger/extra-tests/classes/name-shadowing/System/Iterable.cls-meta.xml b/nebula-logger/extra-tests/classes/name-shadowing/System/Iterable.cls-meta.xml new file mode 100644 index 000000000..651b17293 --- /dev/null +++ b/nebula-logger/extra-tests/classes/name-shadowing/System/Iterable.cls-meta.xml @@ -0,0 +1,5 @@ + + + 61.0 + Active +