IDEMPIERE-3798:Move iDempiere default branch to openjdk 10 (warning deprecated of constructer)
constructer with expression
This commit is contained in:
parent
52a4a836c8
commit
0e5becb6c8
|
@ -502,7 +502,7 @@ public class AboutWindow extends Window implements EventListener<Event> {
|
|||
BundleContext bundleCtx = WebUIActivator.getBundleContext();
|
||||
for (Bundle bundle : bundleCtx.getBundles()) {
|
||||
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(bundl);
|
||||
line.add(state(bundle.getState()));
|
||||
|
|
|
@ -261,7 +261,7 @@ public class WMediaDialog extends Window implements EventListener<Event>
|
|||
{
|
||||
Clob clob = (Clob)m_data;
|
||||
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)
|
||||
{
|
||||
contentType = "text/html";
|
||||
|
|
|
@ -164,7 +164,7 @@ public class DBDataSource extends compiereDataSource
|
|||
}
|
||||
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())
|
||||
{
|
||||
objValue = null;
|
||||
|
|
Loading…
Reference in New Issue