OSDN Git Service

Make Half class use public APIs
authorNeil Fuller <nfuller@google.com>
Mon, 2 Jul 2018 11:04:39 +0000 (12:04 +0100)
committerNeil Fuller <nfuller@google.com>
Mon, 2 Jul 2018 11:04:39 +0000 (12:04 +0100)
commitf9d88dfac159456d1d3774419f3bbe5c7714fd66
tree794ecb0afc007054d8f248488e21df456ca71bdb
parent9916d4b3e89b1faf8b658cc3924e0b30cc46958a
Make Half class use public APIs

Half has a dependency on an internal sun.misc.FloatingDecimal
that can be replaced by an equivalent call on java.lang.Float
(which calls through to FloatingDecimal).

Any performance hit is worth it for a smaller API surface.

Bug: 111055375
Test: Build
Change-Id: Iecdf3aa9414922a77edbdc439b0c2b88033b3af8
core/java/android/util/Half.java