parameterizing..
This commit is contained in:
parent
d6e0af4637
commit
0713cf8437
|
@ -1,15 +1,15 @@
|
|||
/******************************************************************************
|
||||
* The contents of this file are subject to the Compiere License Version 1.1
|
||||
* ("License"); You may not use this file except in compliance with the License
|
||||
* You may obtain a copy of the License at http://www.compiere.org/license.html
|
||||
* Software distributed under the License is distributed on an "AS IS" basis,
|
||||
* WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License for
|
||||
* the specific language governing rights and limitations under the License.
|
||||
* The Original Code is Compiere ERP & CRM Business Solution
|
||||
* The Initial Developer of the Original Code is Jorg Janke and ComPiere, Inc.
|
||||
* Portions created by Jorg Janke are Copyright (C) 1999-2003 Jorg Janke, parts
|
||||
* created by ComPiere are Copyright (C) ComPiere, Inc.; All Rights Reserved.
|
||||
* Contributor(s): ______________________________________.
|
||||
* Product: Adempiere ERP & CRM Smart Business Solution *
|
||||
* This program is free software; you can redistribute it and/or modify it *
|
||||
* under the terms version 2 of the GNU General Public License as published *
|
||||
* by the Free Software Foundation. This program is distributed in the hope *
|
||||
* that it will be useful, but WITHOUT ANY WARRANTY; without even the implied *
|
||||
* warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. *
|
||||
* See the GNU General Public License for more details. *
|
||||
* You should have received a copy of the GNU General Public License along *
|
||||
* with this program; if not, write to the Free Software Foundation, Inc., *
|
||||
* 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA.
|
||||
* Author - Jorg Janke, Compiere *
|
||||
*****************************************************************************/
|
||||
package org.compiere.model;
|
||||
|
||||
|
@ -41,7 +41,7 @@ public class MRefList_Ext extends MRefList
|
|||
{
|
||||
String AD_Language = Env.getAD_Language(ctx);
|
||||
String key = AD_Language + "_" + ListName + "_" + Value;
|
||||
String retValue = (String)s_cache.get(key);
|
||||
String retValue = s_cache.get(key);
|
||||
if (retValue != null)
|
||||
return retValue;
|
||||
|
||||
|
@ -98,7 +98,7 @@ public class MRefList_Ext extends MRefList
|
|||
|
||||
|
||||
/** Value Cache */
|
||||
private static CCache s_cache = new CCache("AD_Ref_List", 20);
|
||||
private static CCache<String, String> s_cache = new CCache<String, String>("AD_Ref_List", 20);
|
||||
|
||||
|
||||
/**************************************************************************
|
||||
|
|
Loading…
Reference in New Issue