diff --git a/org.adempiere.ui.zk/WEB-INF/src/org/adempiere/webui/window/AboutWindow.java b/org.adempiere.ui.zk/WEB-INF/src/org/adempiere/webui/window/AboutWindow.java index d3ef8419dc..120cd03d23 100644 --- a/org.adempiere.ui.zk/WEB-INF/src/org/adempiere/webui/window/AboutWindow.java +++ b/org.adempiere.ui.zk/WEB-INF/src/org/adempiere/webui/window/AboutWindow.java @@ -502,7 +502,7 @@ public class AboutWindow extends Window implements EventListener { BundleContext bundleCtx = WebUIActivator.getBundleContext(); for (Bundle bundle : bundleCtx.getBundles()) { Vector line = new Vector(); - 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())); diff --git a/org.adempiere.ui.zk/WEB-INF/src/org/adempiere/webui/window/WMediaDialog.java b/org.adempiere.ui.zk/WEB-INF/src/org/adempiere/webui/window/WMediaDialog.java index 534f80532d..85e3c6fc14 100644 --- a/org.adempiere.ui.zk/WEB-INF/src/org/adempiere/webui/window/WMediaDialog.java +++ b/org.adempiere.ui.zk/WEB-INF/src/org/adempiere/webui/window/WMediaDialog.java @@ -261,7 +261,7 @@ public class WMediaDialog extends Window implements EventListener { 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("") >= 0) { contentType = "text/html"; 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 614b4ad727..ae904d5ea7 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 @@ -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;