Skip to content

Commit 8a624ef

Browse files
author
Romain Guy
committed
API REVIEW: Undeprecate Location.dump()
Bug #7173109 Change-Id: Ia2f4a5b6255dae7ace4702f7d66ec30a077c9c79
1 parent 11cb642 commit 8a624ef

File tree

2 files changed

+2
-6
lines changed

2 files changed

+2
-6
lines changed

api/current.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10654,7 +10654,7 @@ package android.location {
1065410654
method public int describeContents();
1065510655
method public static void distanceBetween(double, double, double, double, float[]);
1065610656
method public float distanceTo(android.location.Location);
10657-
method public deprecated void dump(android.util.Printer, java.lang.String);
10657+
method public void dump(android.util.Printer, java.lang.String);
1065810658
method public float getAccuracy();
1065910659
method public double getAltitude();
1066010660
method public float getBearing();

location/java/android/location/Location.java

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ public class Location implements Parcelable {
8383
private float mDistance = 0.0f;
8484
private float mInitialBearing = 0.0f;
8585
// Scratchpad
86-
private float[] mResults = new float[2];
86+
private final float[] mResults = new float[2];
8787

8888
/**
8989
* Construct a new Location with a named provider.
@@ -839,10 +839,6 @@ public String toString() {
839839
return s.toString();
840840
}
841841

842-
/**
843-
* @deprecated Use {@link #toString} instead
844-
*/
845-
@Deprecated
846842
public void dump(Printer pw, String prefix) {
847843
pw.println(prefix + toString());
848844
}

0 commit comments

Comments
 (0)