Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEike Stepper2020-09-01 06:16:44 +0000
committerEike Stepper2020-09-01 06:16:44 +0000
commitfcb755b57cd460327ef1a8ce09d83d64516a9fa1 (patch)
tree39ffaf6312379986e9df4d6a58c155525431d644 /plugins/org.eclipse.emf.cdo.common/src
parente5eb2778dcdca0de87768f74d36074036847c753 (diff)
downloadcdo-fcb755b57cd460327ef1a8ce09d83d64516a9fa1.tar.gz
cdo-fcb755b57cd460327ef1a8ce09d83d64516a9fa1.tar.xz
cdo-fcb755b57cd460327ef1a8ce09d83d64516a9fa1.zip
[Releng] Fix new deprecation warnings with Java 9++
Diffstat (limited to 'plugins/org.eclipse.emf.cdo.common/src')
-rw-r--r--plugins/org.eclipse.emf.cdo.common/src/org/eclipse/emf/cdo/internal/common/branch/CDOBranchPointImpl.java2
-rw-r--r--plugins/org.eclipse.emf.cdo.common/src/org/eclipse/emf/cdo/internal/common/id/CDOIDObjectLongImpl.java2
-rw-r--r--plugins/org.eclipse.emf.cdo.common/src/org/eclipse/emf/cdo/internal/common/model/CDOTypeImpl.java16
3 files changed, 10 insertions, 10 deletions
diff --git a/plugins/org.eclipse.emf.cdo.common/src/org/eclipse/emf/cdo/internal/common/branch/CDOBranchPointImpl.java b/plugins/org.eclipse.emf.cdo.common/src/org/eclipse/emf/cdo/internal/common/branch/CDOBranchPointImpl.java
index b7b5ca6cbb..360b83cb5f 100644
--- a/plugins/org.eclipse.emf.cdo.common/src/org/eclipse/emf/cdo/internal/common/branch/CDOBranchPointImpl.java
+++ b/plugins/org.eclipse.emf.cdo.common/src/org/eclipse/emf/cdo/internal/common/branch/CDOBranchPointImpl.java
@@ -58,7 +58,7 @@ public class CDOBranchPointImpl implements CDOBranchPoint, Comparable<CDOBranchP
@Override
public int hashCode()
{
- return branch.hashCode() ^ new Long(timeStamp).hashCode();
+ return branch.hashCode() ^ Long.valueOf(timeStamp).hashCode();
}
@Override
diff --git a/plugins/org.eclipse.emf.cdo.common/src/org/eclipse/emf/cdo/internal/common/id/CDOIDObjectLongImpl.java b/plugins/org.eclipse.emf.cdo.common/src/org/eclipse/emf/cdo/internal/common/id/CDOIDObjectLongImpl.java
index c0a0b955b6..0d6f9500a3 100644
--- a/plugins/org.eclipse.emf.cdo.common/src/org/eclipse/emf/cdo/internal/common/id/CDOIDObjectLongImpl.java
+++ b/plugins/org.eclipse.emf.cdo.common/src/org/eclipse/emf/cdo/internal/common/id/CDOIDObjectLongImpl.java
@@ -115,7 +115,7 @@ public final class CDOIDObjectLongImpl extends AbstractCDOID implements Internal
@Override
protected int doCompareTo(CDOID o) throws ClassCastException
{
- return new Long(value).compareTo(((CDOIDObjectLongImpl)o).value);
+ return Long.valueOf(value).compareTo(((CDOIDObjectLongImpl)o).value);
}
private Object readResolve() throws ObjectStreamException
diff --git a/plugins/org.eclipse.emf.cdo.common/src/org/eclipse/emf/cdo/internal/common/model/CDOTypeImpl.java b/plugins/org.eclipse.emf.cdo.common/src/org/eclipse/emf/cdo/internal/common/model/CDOTypeImpl.java
index 0c25ad01c9..a403abaf34 100644
--- a/plugins/org.eclipse.emf.cdo.common/src/org/eclipse/emf/cdo/internal/common/model/CDOTypeImpl.java
+++ b/plugins/org.eclipse.emf.cdo.common/src/org/eclipse/emf/cdo/internal/common/model/CDOTypeImpl.java
@@ -74,21 +74,21 @@ public abstract class CDOTypeImpl implements CDOType
private static final short SHORT_DEFAULT_PRIMITIVE = 0;
- public static final Boolean BOOLEAN_DEFAULT = new Boolean(false);
+ public static final Boolean BOOLEAN_DEFAULT = Boolean.valueOf(false);
- public static final Byte BYTE_DEFAULT = new Byte(BOOLEAN_DEFAULT_PRIMITIVE);
+ public static final Byte BYTE_DEFAULT = Byte.valueOf(BOOLEAN_DEFAULT_PRIMITIVE);
- public static final Character CHARACTER_DEFAULT = new Character(CHARACTER_DEFAULT_PRIMITIVE);
+ public static final Character CHARACTER_DEFAULT = Character.valueOf(CHARACTER_DEFAULT_PRIMITIVE);
- public static final Double DOUBLE_DEFAULT = new Double(0.0);
+ public static final Double DOUBLE_DEFAULT = Double.valueOf(0.0);
- public static final Float FLOAT_DEFAULT = new Float(0.0);
+ public static final Float FLOAT_DEFAULT = Float.valueOf(0.0f);
- public static final Integer INTEGER_DEFAULT = new Integer(0);
+ public static final Integer INTEGER_DEFAULT = Integer.valueOf(0);
- public static final Long LONG_DEFAULT = new Long(0L);
+ public static final Long LONG_DEFAULT = Long.valueOf(0L);
- public static final Short SHORT_DEFAULT = new Short(SHORT_DEFAULT_PRIMITIVE);
+ public static final Short SHORT_DEFAULT = Short.valueOf(SHORT_DEFAULT_PRIMITIVE);
public static final CDOType BOOLEAN = new CDOTypeImpl("BOOLEAN", EcorePackage.EBOOLEAN, false, BOOLEAN_DEFAULT) //$NON-NLS-1$
{

Back to the top