IDEMPIERE-3798:Move iDempiere default branch to openjdk 10 (warning deprecated of constructer)

constructer with expression
This commit is contained in:
hieplq 2018-10-24 09:28:04 +07:00
parent 52a4a836c8
commit 0e5becb6c8
3 changed files with 3 additions and 3 deletions

View File

@ -502,7 +502,7 @@ public class AboutWindow extends Window implements EventListener<Event> {
BundleContext bundleCtx = WebUIActivator.getBundleContext(); BundleContext bundleCtx = WebUIActivator.getBundleContext();
for (Bundle bundle : bundleCtx.getBundles()) { for (Bundle bundle : bundleCtx.getBundles()) {
Vector<Object> line = new Vector<Object>(); Vector<Object> line = new Vector<Object>();
Integer bundl = new Long(bundle.getBundleId()).intValue(); // potential problem converting Long to Integer, but WListBox cannot order Long Integer bundl = Long.valueOf(bundle.getBundleId()).intValue(); // potential problem converting Long to Integer, but WListBox cannot order Long
line.add(new IDColumn(bundl)); line.add(new IDColumn(bundl));
line.add(bundl); line.add(bundl);
line.add(state(bundle.getState())); line.add(state(bundle.getState()));

View File

@ -261,7 +261,7 @@ public class WMediaDialog extends Window implements EventListener<Event>
{ {
Clob clob = (Clob)m_data; Clob clob = (Clob)m_data;
long length = clob.length() > 100 ? 100 : clob.length(); long length = clob.length() > 100 ? 100 : clob.length();
String data = ((Clob)m_data).getSubString(1, new Long(length).intValue()); String data = ((Clob)m_data).getSubString(1, Long.valueOf(length).intValue());
if (data.toUpperCase().indexOf("<html>") >= 0) if (data.toUpperCase().indexOf("<html>") >= 0)
{ {
contentType = "text/html"; contentType = "text/html";

View File

@ -164,7 +164,7 @@ public class DBDataSource extends compiereDataSource
} }
else if (clazz.equals(java.lang.Long.class)) else if (clazz.equals(java.lang.Long.class))
{ {
objValue = new Long(m_resultSet.getLong(field.getName())); objValue = Long.valueOf(m_resultSet.getLong(field.getName()));
if(m_resultSet.wasNull()) if(m_resultSet.wasNull())
{ {
objValue = null; objValue = null;