From e4e55bae97025f4c1e8d83e041c413d1d74c3d84 Mon Sep 17 00:00:00 2001
From: valentinogiardino
Date: Tue, 3 Dec 2024 18:24:39 -0300
Subject: [PATCH] #30669 update variable names
---
.../processor/impl/ImportContentletsProcessor.java | 12 ++++++------
1 file changed, 6 insertions(+), 6 deletions(-)
diff --git a/dotCMS/src/main/java/com/dotcms/jobs/business/processor/impl/ImportContentletsProcessor.java b/dotCMS/src/main/java/com/dotcms/jobs/business/processor/impl/ImportContentletsProcessor.java
index 3f07cc6e3bf9..12d1a8b70fde 100644
--- a/dotCMS/src/main/java/com/dotcms/jobs/business/processor/impl/ImportContentletsProcessor.java
+++ b/dotCMS/src/main/java/com/dotcms/jobs/business/processor/impl/ImportContentletsProcessor.java
@@ -223,15 +223,15 @@ && getWorkflowActionId(parameters).isEmpty()) {
* {@link JobValidationException} is thrown.
*
* @param parameters The job parameters containing the fields to validate
- * @param contentTypeFound The content type to validate the fields against
+ * @param contentType The content type to validate the fields against
* @throws JobValidationException if any field specified in the parameters is not found in the content type
*/
- private void validateFields(final Map parameters, final ContentType contentTypeFound) {
- var fields = contentTypeFound.fields();
- for (String field : getFields(parameters)) {
- if (fields.stream().noneMatch(f -> Objects.equals(f.id(), field))) {
+ private void validateFields(final Map parameters, final ContentType contentType) {
+ var contentTypeFields = contentType.fields();
+ for (String providedField : getFields(parameters)) {
+ if (contentTypeFields.stream().noneMatch(field -> Objects.equals(field.id(), providedField))) {
final var errorMessage = String.format(
- "Field [%s] not found in Content Type [%s].", field, contentTypeFound.variable()
+ "Field [%s] not found in Content Type [%s].", providedField, contentType.variable()
);
Logger.error(this, errorMessage);
throw new JobValidationException(errorMessage);