Skip to content

Commit

Permalink
Update de.metas.adempiere.adempiere/base/src/main/java-legacy/org/com…
Browse files Browse the repository at this point in the history
  • Loading branch information
teosarca committed Oct 16, 2018
1 parent 84d25e2 commit 8ed0d9d
Showing 1 changed file with 4 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -44,13 +44,12 @@
import org.compiere.util.KeyNamePair;
import org.compiere.util.NamePair;
import org.compiere.util.Util.ArrayKey;
import org.compiere.util.ValueNamePair;

import de.metas.util.AbstractPropertiesProxy;
import de.metas.util.Check;
import de.metas.util.Services;

import org.compiere.util.ValueNamePair;

/**
* An intelligent MutableComboBoxModel, which determines what can be cached.
*
Expand Down Expand Up @@ -84,7 +83,6 @@ public static interface ILookupData

boolean isDirty();

// Map<String, NamePair> getValues();
boolean containsKey(final Object key);

NamePair getByKey(final Object key);
Expand Down Expand Up @@ -771,7 +769,7 @@ public List<Object> getData(boolean mandatory, boolean onlyValidated, boolean on
if (!mandatory)
{
final NamePair emptyItem;
if (m_info.getKeyColumnFQ() != null && isNumbericKey())
if (m_info.getKeyColumnFQ() != null && isNumericKey())
{
emptyItem = KeyNamePair.EMPTY;
}
Expand Down Expand Up @@ -1098,10 +1096,9 @@ public IValidationContext getValidationContext()
return m_evalCtx;
}

public boolean isNumbericKey()
public boolean isNumericKey()
{
final boolean isNumeric = getColumnName().endsWith("_ID");
return isNumeric;
return getColumnName().endsWith("_ID");
}

@Override
Expand Down

0 comments on commit 8ed0d9d

Please sign in to comment.