Skip to content

Commit

Permalink
LPD-41548 I only see this one pattern for now
Browse files Browse the repository at this point in the history
  • Loading branch information
brianchandotcom committed Nov 13, 2024
1 parent dc8a3df commit 39c0014
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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<String, UtilityPage.Type>
_internalToExternalTypeValuesMap = HashMapBuilder.put(
_internalToExternalValuesMap = HashMapBuilder.put(
LayoutUtilityPageEntryConstants.TYPE_COOKIE_POLICY,
UtilityPage.Type.COOKIE_POLICY
).put(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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<UtilityPage.Type, String>
_externalToInternalTypeValuesMap = HashMapBuilder.put(
_externalToInternalValuesMap = HashMapBuilder.put(
UtilityPage.Type.COOKIE_POLICY,
LayoutUtilityPageEntryConstants.TYPE_COOKIE_POLICY
).put(
Expand Down

0 comments on commit 39c0014

Please sign in to comment.