Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 04c66489 authored by Neil Fuller's avatar Neil Fuller Committed by android-build-merger
Browse files

Merge "Make Half class use public APIs"

am: 7e957e57

Change-Id: I7f41f07ed5d35a0c538c90b49b4500ba9952f74d
parents e3f76635 7e957e57
Loading
Loading
Loading
Loading
+1 −3
Original line number Diff line number Diff line
@@ -20,8 +20,6 @@ import android.annotation.HalfFloat;
import android.annotation.NonNull;
import android.annotation.Nullable;

import sun.misc.FloatingDecimal;

/**
 * <p>The {@code Half} class is a wrapper and a utility class to manipulate half-precision 16-bit
 * <a href="https://en.wikipedia.org/wiki/Half-precision_floating-point_format">IEEE 754</a>
@@ -1026,7 +1024,7 @@ public final class Half extends Number implements Comparable<Half> {
     *         half-precision float value
     */
    public static @HalfFloat short parseHalf(@NonNull String s) throws NumberFormatException {
        return toHalf(FloatingDecimal.parseFloat(s));
        return toHalf(Float.parseFloat(s));
    }

    /**