From 2aa20937beaf1415ddacba4447d5aee553580e0d Mon Sep 17 00:00:00 2001 From: Brian Chan Date: Sat, 7 Sep 2024 09:34:39 -0300 Subject: [PATCH] LPD-32759 SF --- .../v1_0/DocumentDataDefinitionTypesResourceImpl.java | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/modules/apps/headless/headless-delivery/headless-delivery-impl/src/main/java/com/liferay/headless/delivery/internal/resource/v1_0/DocumentDataDefinitionTypesResourceImpl.java b/modules/apps/headless/headless-delivery/headless-delivery-impl/src/main/java/com/liferay/headless/delivery/internal/resource/v1_0/DocumentDataDefinitionTypesResourceImpl.java index 59dbc4d5779e77..47aba2a6ae3236 100644 --- a/modules/apps/headless/headless-delivery/headless-delivery-impl/src/main/java/com/liferay/headless/delivery/internal/resource/v1_0/DocumentDataDefinitionTypesResourceImpl.java +++ b/modules/apps/headless/headless-delivery/headless-delivery-impl/src/main/java/com/liferay/headless/delivery/internal/resource/v1_0/DocumentDataDefinitionTypesResourceImpl.java @@ -65,19 +65,17 @@ public DocumentDataDefinitionType postSiteDocumentDataDefinitionTypes( throw new UnsupportedOperationException(); } - DataDefinitionResource.Builder dataDefinitionResourceBuilder = + DataDefinitionResource.Builder builder = _dataDefinitionResourceFactory.create(); - DataDefinitionResource dataDefinitionResource = - dataDefinitionResourceBuilder.user( - contextUser - ).build(); + DataDefinitionResource dataDefinitionResource = builder.user( + contextUser + ).build(); Map descriptionMap = LocalizedMapUtil.getLocalizedMap( contextAcceptLanguage.getPreferredLocale(), documentDataDefinitionType.getDescription(), documentDataDefinitionType.getDescription_i18n()); - Map nameMap = LocalizedMapUtil.getLocalizedMap( contextAcceptLanguage.getPreferredLocale(), documentDataDefinitionType.getName(),