From cfa2705b25356faaa1b6fd2dacae05ecf87718ba Mon Sep 17 00:00:00 2001 From: hieplq Date: Wed, 24 Oct 2018 09:29:49 +0700 Subject: [PATCH] IDEMPIERE-3798:Move iDempiere default branch to openjdk 10 (warning deprecated of constructer) constructer with expression --- .../main/servlet/org/compiere/web/AdempiereMonitorFilter.java | 2 +- .../WEB-INF/src/net/sf/compilo/data/DBDataSource.java | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/org.adempiere.server/src/main/servlet/org/compiere/web/AdempiereMonitorFilter.java b/org.adempiere.server/src/main/servlet/org/compiere/web/AdempiereMonitorFilter.java index 2880118a50..348c413e4e 100644 --- a/org.adempiere.server/src/main/servlet/org/compiere/web/AdempiereMonitorFilter.java +++ b/org.adempiere.server/src/main/servlet/org/compiere/web/AdempiereMonitorFilter.java @@ -51,7 +51,7 @@ public class AdempiereMonitorFilter implements Filter public AdempiereMonitorFilter () { super (); - m_authorization = new Long (System.currentTimeMillis()); + m_authorization = Long.valueOf(System.currentTimeMillis()); } // AdempiereMonitorFilter /** Logger */ diff --git a/org.idempiere.webservices/WEB-INF/src/net/sf/compilo/data/DBDataSource.java b/org.idempiere.webservices/WEB-INF/src/net/sf/compilo/data/DBDataSource.java index ae904d5ea7..8167c59840 100644 --- a/org.idempiere.webservices/WEB-INF/src/net/sf/compilo/data/DBDataSource.java +++ b/org.idempiere.webservices/WEB-INF/src/net/sf/compilo/data/DBDataSource.java @@ -108,7 +108,7 @@ public class DBDataSource extends compiereDataSource } 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()) { objValue = null; @@ -172,7 +172,7 @@ public class DBDataSource extends compiereDataSource } 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()) { objValue = null;