IDEMPIERE-3169 recent item do a lot query / IDEMPIERE-3622 MRecentItem is not thread safe

This commit is contained in:
Carlos Ruiz 2018-06-14 16:13:15 +02:00
parent 10ad4064d8
commit 9f9249869a
1 changed files with 1 additions and 1 deletions

View File

@ -343,7 +343,7 @@ public class MRecentItem extends X_AD_RecentItem
return m_label; return m_label;
} }
public static void clearLabel(int AD_Table_ID, int Record_ID) { public static synchronized void clearLabel(int AD_Table_ID, int Record_ID) {
Iterator<MRecentItem> it = s_cache.values().iterator(); Iterator<MRecentItem> it = s_cache.values().iterator();
while (it.hasNext()) { while (it.hasNext()) {
MRecentItem retValue = it.next(); MRecentItem retValue = it.next();