From 39c0014399937e74a070522f23175ac2beb1a41e Mon Sep 17 00:00:00 2001 From: Brian Chan Date: Wed, 13 Nov 2024 12:43:58 +0100 Subject: [PATCH] LPD-41548 I only see this one pattern for now --- .../dto/v1_0/converter/UtilityPageDTOConverter.java | 6 +++--- .../internal/resource/v1_0/UtilityPageResourceImpl.java | 6 +++--- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/modules/apps/headless/headless-admin-site/headless-admin-site-impl/src/main/java/com/liferay/headless/admin/site/internal/dto/v1_0/converter/UtilityPageDTOConverter.java b/modules/apps/headless/headless-admin-site/headless-admin-site-impl/src/main/java/com/liferay/headless/admin/site/internal/dto/v1_0/converter/UtilityPageDTOConverter.java index d22292d124aea3..bf8e40794a6566 100644 --- a/modules/apps/headless/headless-admin-site/headless-admin-site-impl/src/main/java/com/liferay/headless/admin/site/internal/dto/v1_0/converter/UtilityPageDTOConverter.java +++ b/modules/apps/headless/headless-admin-site/headless-admin-site-impl/src/main/java/com/liferay/headless/admin/site/internal/dto/v1_0/converter/UtilityPageDTOConverter.java @@ -95,15 +95,15 @@ public UtilityPage toDTO( } private UtilityPage.Type _getType(String type) { - if (_internalToExternalTypeValuesMap.containsKey(type)) { - return _internalToExternalTypeValuesMap.get(type); + if (_internalToExternalValuesMap.containsKey(type)) { + return _internalToExternalValuesMap.get(type); } throw new UnsupportedOperationException(); } private static final Map - _internalToExternalTypeValuesMap = HashMapBuilder.put( + _internalToExternalValuesMap = HashMapBuilder.put( LayoutUtilityPageEntryConstants.TYPE_COOKIE_POLICY, UtilityPage.Type.COOKIE_POLICY ).put( diff --git a/modules/apps/headless/headless-admin-site/headless-admin-site-impl/src/main/java/com/liferay/headless/admin/site/internal/resource/v1_0/UtilityPageResourceImpl.java b/modules/apps/headless/headless-admin-site/headless-admin-site-impl/src/main/java/com/liferay/headless/admin/site/internal/resource/v1_0/UtilityPageResourceImpl.java index dfe39fb1276eef..3d76af6b7808fd 100644 --- a/modules/apps/headless/headless-admin-site/headless-admin-site-impl/src/main/java/com/liferay/headless/admin/site/internal/resource/v1_0/UtilityPageResourceImpl.java +++ b/modules/apps/headless/headless-admin-site/headless-admin-site-impl/src/main/java/com/liferay/headless/admin/site/internal/resource/v1_0/UtilityPageResourceImpl.java @@ -190,15 +190,15 @@ private ServiceContext _getServiceContext( } private String _getType(UtilityPage.Type type) { - if (_externalToInternalTypeValuesMap.containsKey(type)) { - return _externalToInternalTypeValuesMap.get(type); + if (_externalToInternalValuesMap.containsKey(type)) { + return _externalToInternalValuesMap.get(type); } throw new UnsupportedOperationException(); } private static final Map - _externalToInternalTypeValuesMap = HashMapBuilder.put( + _externalToInternalValuesMap = HashMapBuilder.put( UtilityPage.Type.COOKIE_POLICY, LayoutUtilityPageEntryConstants.TYPE_COOKIE_POLICY ).put(