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:29:49 +07:00
parent 0e5becb6c8
commit cfa2705b25
2 changed files with 3 additions and 3 deletions

View File

@ -51,7 +51,7 @@ public class AdempiereMonitorFilter implements Filter
public AdempiereMonitorFilter () public AdempiereMonitorFilter ()
{ {
super (); super ();
m_authorization = new Long (System.currentTimeMillis()); m_authorization = Long.valueOf(System.currentTimeMillis());
} // AdempiereMonitorFilter } // AdempiereMonitorFilter
/** Logger */ /** Logger */

View File

@ -108,7 +108,7 @@ public class DBDataSource extends compiereDataSource
} }
else if (clazz.equals(java.lang.Byte.class)) else if (clazz.equals(java.lang.Byte.class))
{ {
objValue = new Byte(m_resultSet.getByte(field.getName())); objValue = Byte.valueOf(m_resultSet.getByte(field.getName()));
if(m_resultSet.wasNull()) if(m_resultSet.wasNull())
{ {
objValue = null; objValue = null;
@ -172,7 +172,7 @@ public class DBDataSource extends compiereDataSource
} }
else if (clazz.equals(java.lang.Short.class)) else if (clazz.equals(java.lang.Short.class))
{ {
objValue = new Short(m_resultSet.getShort(field.getName())); objValue = Short.valueOf(m_resultSet.getShort(field.getName()));
if(m_resultSet.wasNull()) if(m_resultSet.wasNull())
{ {
objValue = null; objValue = null;