IDEMPIERE-4287 / minor - solve two deprecation warnings (#270)

This commit is contained in:
Carlos Ruiz 2020-09-22 04:47:24 +02:00 committed by GitHub
parent 98ab98b28c
commit c5079d5106
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View File

@ -999,7 +999,7 @@ public class Login
rs = null; pstmt = null;
}
// Country
Env.setContext(m_ctx, "#C_Country_ID", MCountry.getDefault(m_ctx).getC_Country_ID());
Env.setContext(m_ctx, "#C_Country_ID", MCountry.getDefault().getC_Country_ID());
// Call ModelValidators afterLoadPreferences - teo_sarca FR [ 1670025 ]
ModelValidationEngine.get().afterLoadPreferences(m_ctx);
return retValue;

View File

@ -849,7 +849,7 @@ public class TimeUtil
}
final String sql = "SELECT Date1 FROM C_NonBusinessDay WHERE IsActive='Y' AND AD_Client_ID=? AND Date1 BETWEEN ? AND ? AND COALESCE(C_Country_ID,0) IN (0, ?)";
List<Object> nbd = DB.getSQLValueObjectsEx(trxName, sql, clientID, startDate, endDate, MCountry.getDefault(Env.getCtx()).getC_Country_ID());
List<Object> nbd = DB.getSQLValueObjectsEx(trxName, sql, clientID, startDate, endDate, MCountry.getDefault().getC_Country_ID());
GregorianCalendar cal = new GregorianCalendar();
cal.setTime(startDate);