diff --git a/modules/flowable-cmmn-engine/src/main/java/org/flowable/cmmn/engine/test/impl/CmmnTestRunner.java b/modules/flowable-cmmn-engine/src/main/java/org/flowable/cmmn/engine/test/impl/CmmnTestRunner.java index 785bced2d33..4fbd60eb3bf 100644 --- a/modules/flowable-cmmn-engine/src/main/java/org/flowable/cmmn/engine/test/impl/CmmnTestRunner.java +++ b/modules/flowable-cmmn-engine/src/main/java/org/flowable/cmmn/engine/test/impl/CmmnTestRunner.java @@ -207,16 +207,16 @@ protected void assertDatabaseEmpty(FrameworkMethod method) { cmmnEngineConfiguration, TABLENAMES_EXCLUDED_FROM_DB_CLEAN_CHECK, true, - new Command<>() { - - @Override - public Void execute(CommandContext commandContext) { - SchemaManager schemaManager = CommandContextUtil.getCmmnEngineConfiguration(commandContext).getSchemaManager(); - schemaManager.schemaDrop(); - schemaManager.schemaCreate(); - return null; - } + new Command<>() { + + @Override + public Void execute(CommandContext commandContext) { + SchemaManager schemaManager = CommandContextUtil.getCmmnEngineConfiguration(commandContext).getSchemaManager(); + schemaManager.schemaDrop(); + schemaManager.schemaCreate(); + return null; } + } ); } diff --git a/modules/flowable-engine-common/src/main/java/org/flowable/common/engine/impl/persistence/deploy/DefaultDeploymentCache.java b/modules/flowable-engine-common/src/main/java/org/flowable/common/engine/impl/persistence/deploy/DefaultDeploymentCache.java index 742320c5d1c..2946fd7ed3b 100644 --- a/modules/flowable-engine-common/src/main/java/org/flowable/common/engine/impl/persistence/deploy/DefaultDeploymentCache.java +++ b/modules/flowable-engine-common/src/main/java/org/flowable/common/engine/impl/persistence/deploy/DefaultDeploymentCache.java @@ -41,21 +41,19 @@ public DefaultDeploymentCache() { * Cache which has a hard limit: no more elements will be cached than the limit. */ public DefaultDeploymentCache(final int limit) { - this.cache = Collections.synchronizedMap( - new LinkedHashMap<>(limit + 1, 0.75f, true) { // +1 is needed, because the entry is inserted first, before it is removed - - // 0.75 is the default (see javadocs) - // true will keep the 'access-order', which is needed to have a real LRU cache - private static final long serialVersionUID = 1L; - - @Override - protected boolean removeEldestEntry(Map.Entry eldest) { - boolean removeEldest = size() > limit; - if (removeEldest && LOGGER.isTraceEnabled()) { - LOGGER.trace("Cache limit is reached, {} will be evicted", eldest.getKey()); - } - return removeEldest; - } + this.cache = Collections.synchronizedMap(new LinkedHashMap<>(limit + 1, 0.75f, true) { // +1 is needed, because the entry is inserted first, before it is removed + // 0.75 is the default (see javadocs) + // true will keep the 'access-order', which is needed to have a real LRU cache + private static final long serialVersionUID = 1L; + + @Override + protected boolean removeEldestEntry(Map.Entry eldest) { + boolean removeEldest = size() > limit; + if (removeEldest && LOGGER.isTraceEnabled()) { + LOGGER.trace("Cache limit is reached, {} will be evicted", eldest.getKey()); + } + return removeEldest; + } }); }