From bbf8871e1c7ef762b3f9505cca924568c48e8be5 Mon Sep 17 00:00:00 2001 From: Neil Fuller Date: Thu, 23 Oct 2014 11:57:06 +0100 Subject: [PATCH] Deprecating FloatMath and Time Bug: https://code.google.com/p/android/issues/detail?id=36199 Bug: https://code.google.com/p/android/issues/detail?id=37653 Bug: https://code.google.com/p/android/issues/detail?id=42750 Bug: https://code.google.com/p/android/issues/detail?id=61137 Bug: https://code.google.com/p/android/issues/detail?id=74754 Bug: https://code.google.com/p/android/issues/detail?id=76386 Bug: https://code.google.com/p/android/issues/detail?id=76439 Bug: https://code.google.com/p/android/issues/detail?id=77836 Change-Id: Ic9b57d8a575f93b2258a5481df0ed6b3a952f636 --- api/current.txt | 4 ++-- core/java/android/text/format/Time.java | 3 +++ core/java/android/util/FloatMath.java | 3 +++ 3 files changed, 8 insertions(+), 2 deletions(-) diff --git a/api/current.txt b/api/current.txt index 26bd92508ab76..3cbb4ba7d51d2 100644 --- a/api/current.txt +++ b/api/current.txt @@ -30331,7 +30331,7 @@ package android.text.format { method public static java.lang.String formatShortFileSize(android.content.Context, long); } - public class Time { + public deprecated class Time { ctor public Time(java.lang.String); ctor public Time(); ctor public Time(android.text.format.Time); @@ -31702,7 +31702,7 @@ package android.util { field public final int mTag; } - public class FloatMath { + public deprecated class FloatMath { method public static float ceil(float); method public static float cos(float); method public static float exp(float); diff --git a/core/java/android/text/format/Time.java b/core/java/android/text/format/Time.java index aa6ad20487190..1e04eb45471d8 100644 --- a/core/java/android/text/format/Time.java +++ b/core/java/android/text/format/Time.java @@ -48,7 +48,10 @@ import libcore.util.ZoneInfoDB; *
  • Much of the formatting / parsing assumes ASCII text and is therefore not suitable for * use with non-ASCII scripts.
  • * + * + * @deprecated Use {@link java.util.GregorianCalendar} instead. */ +@Deprecated public class Time { private static final String Y_M_D_T_H_M_S_000 = "%Y-%m-%dT%H:%M:%S.000"; private static final String Y_M_D_T_H_M_S_000_Z = "%Y-%m-%dT%H:%M:%S.000Z"; diff --git a/core/java/android/util/FloatMath.java b/core/java/android/util/FloatMath.java index 0ffd5bd610982..bdcf5ca2bc9e0 100644 --- a/core/java/android/util/FloatMath.java +++ b/core/java/android/util/FloatMath.java @@ -21,7 +21,10 @@ package android.util; * versions of Android with a JIT, these are significantly slower than * the equivalent {@code Math} functions, which should be used in preference * to these. + * + * @deprecated Use {@link java.lang.Math} instead. */ +@Deprecated public class FloatMath { /** Prevents instantiation. */