Skip to content

Commit 4187f92

Browse files
Romain GuyAndroid (Google) Code Review
authored andcommitted
Merge "API REVIEW: Undeprecate Location.dump() Bug #7173109" into jb-mr1-dev
2 parents 9921d84 + 8a624ef commit 4187f92

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
@@ -10655,7 +10655,7 @@ package android.location {
1065510655
method public int describeContents();
1065610656
method public static void distanceBetween(double, double, double, double, float[]);
1065710657
method public float distanceTo(android.location.Location);
10658-
method public deprecated void dump(android.util.Printer, java.lang.String);
10658+
method public void dump(android.util.Printer, java.lang.String);
1065910659
method public float getAccuracy();
1066010660
method public double getAltitude();
1066110661
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)