< prev index next >

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

Print this page
*** 31,10 ***
--- 31,11 ---
  import java.util.Optional;
  
  import jdk.internal.math.FloatConsts;
  import jdk.internal.math.FloatingDecimal;
  import jdk.internal.math.FloatToDecimal;
+ import jdk.internal.value.DeserializeConstructor;
  import jdk.internal.vm.annotation.IntrinsicCandidate;
  
  /**
   * The {@code Float} class is the {@linkplain
   * java.lang##wrapperClass wrapper class} for values of the primitive

*** 73,10 ***
--- 74,11 ---
   * @author  Lee Boynton
   * @author  Arthur van Hoff
   * @author  Joseph D. Darcy
   * @since 1.0
   */
+ @jdk.internal.MigratedValueClass
  @jdk.internal.ValueBased
  public final class Float extends Number
          implements Comparable<Float>, Constable, ConstantDesc {
      /**
       * A constant holding the positive infinity of type

*** 573,10 ***
--- 575,11 ---
       * @param  f a float value.
       * @return a {@code Float} instance representing {@code f}.
       * @since  1.5
       */
      @IntrinsicCandidate
+     @DeserializeConstructor
      public static Float valueOf(float f) {
          return new Float(f);
      }
  
      /**
< prev index next >