Skip to content

Commit

Permalink
Fixed: Corrections based on Codenarc and Checkstyle errors (OFBIZ-10194)
Browse files Browse the repository at this point in the history
  • Loading branch information
Michael Brohl authored and mbrohl committed Feb 2, 2024
1 parent 502c56b commit e7502ac
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@
public interface ContentWrapper {

String MODULE = ContentWrapper.class.getName();
static final String CACHE_KEY_SEPARATOR = "::";
String CACHE_KEY_SEPARATOR = "::";

StringUtil.StringWrapper get(String contentTypeId, String encoderType);

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,8 @@ public static String getProductPromoContentAsText(GenericValue productPromo, Str
/* caching: there is one cache created, "product.promo.content" Each productPromo's content is cached with a key of
* contentTypeId::locale::mimeType::productPromoId, or whatever the CACHE_KEY_SEPARATOR is defined above to be.
*/
String cacheKey = productPromoContentTypeId + CACHE_KEY_SEPARATOR + locale + CACHE_KEY_SEPARATOR + mimeTypeId + CACHE_KEY_SEPARATOR + productPromo.get("productPromoId")
String cacheKey = productPromoContentTypeId + CACHE_KEY_SEPARATOR + locale + CACHE_KEY_SEPARATOR + mimeTypeId
+ CACHE_KEY_SEPARATOR + productPromo.get("productPromoId")
+ CACHE_KEY_SEPARATOR + encoderType + CACHE_KEY_SEPARATOR + delegator;
String cachedValue = PRODUCT_PROMO_CONTENT_CACHE.get(cacheKey);
if (cachedValue != null || PRODUCT_PROMO_CONTENT_CACHE.containsKey(cacheKey)) {
Expand Down

0 comments on commit e7502ac

Please sign in to comment.