IDEMPIERE-4287 / minor - solve two deprecation warnings (#270)
This commit is contained in:
parent
98ab98b28c
commit
c5079d5106
|
@ -999,7 +999,7 @@ public class Login
|
||||||
rs = null; pstmt = null;
|
rs = null; pstmt = null;
|
||||||
}
|
}
|
||||||
// Country
|
// 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 ]
|
// Call ModelValidators afterLoadPreferences - teo_sarca FR [ 1670025 ]
|
||||||
ModelValidationEngine.get().afterLoadPreferences(m_ctx);
|
ModelValidationEngine.get().afterLoadPreferences(m_ctx);
|
||||||
return retValue;
|
return retValue;
|
||||||
|
|
|
@ -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, ?)";
|
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();
|
GregorianCalendar cal = new GregorianCalendar();
|
||||||
cal.setTime(startDate);
|
cal.setTime(startDate);
|
||||||
|
|
Loading…
Reference in New Issue