< prev index next >

src/java.base/share/classes/java/lang/Integer.java

Print this page
*** 26,10 ***
--- 26,11 ---
  package java.lang;
  
  import jdk.internal.misc.CDS;
  import jdk.internal.misc.VM;
  import jdk.internal.util.DecimalDigits;
+ import jdk.internal.value.DeserializeConstructor;
  import jdk.internal.vm.annotation.ForceInline;
  import jdk.internal.vm.annotation.IntrinsicCandidate;
  import jdk.internal.vm.annotation.Stable;
  
  import java.lang.annotation.Native;

*** 72,10 ***
--- 73,11 ---
   * @author  Arthur van Hoff
   * @author  Josh Bloch
   * @author  Joseph D. Darcy
   * @since 1.0
   */
+ @jdk.internal.MigratedValueClass
  @jdk.internal.ValueBased
  public final class Integer extends Number
          implements Comparable<Integer>, Constable, ConstantDesc {
      /**
       * A constant holding the minimum value an {@code int} can

*** 988,10 ***
--- 990,11 ---
       * @param  i an {@code int} value.
       * @return an {@code Integer} instance representing {@code i}.
       * @since  1.5
       */
      @IntrinsicCandidate
+     @DeserializeConstructor
      public static Integer valueOf(int i) {
          if (i >= IntegerCache.low && i <= IntegerCache.high)
              return IntegerCache.cache[i + (-IntegerCache.low)];
          return new Integer(i);
      }
< prev index next >