Remove public default constructor from CMWeatherManager.RequestStatus [1/2]
RequestStatus holds only final constants and should not provide public constructors. This class also should be final. This patch also fix minor typos on RequestStatus javadoc Change-Id: I0deb1d6a9b23eed83451dec352bb4c410e2378d6 TICKET: CYNGNOS-2441
This commit is contained in:
parent
b49885a649
commit
ad5e5d019f
@ -1366,8 +1366,7 @@ package cyanogenmod.weather {
|
|||||||
method public abstract void onLookupCityRequestCompleted(int, java.util.List<cyanogenmod.weather.WeatherLocation>);
|
method public abstract void onLookupCityRequestCompleted(int, java.util.List<cyanogenmod.weather.WeatherLocation>);
|
||||||
}
|
}
|
||||||
|
|
||||||
public static class CMWeatherManager.RequestStatus {
|
public static final class CMWeatherManager.RequestStatus {
|
||||||
ctor public CMWeatherManager.RequestStatus();
|
|
||||||
field public static final int ALREADY_IN_PROGRESS = -3; // 0xfffffffd
|
field public static final int ALREADY_IN_PROGRESS = -3; // 0xfffffffd
|
||||||
field public static final int COMPLETED = 1; // 0x1
|
field public static final int COMPLETED = 1; // 0x1
|
||||||
field public static final int FAILED = -1; // 0xffffffff
|
field public static final int FAILED = -1; // 0xffffffff
|
||||||
|
@ -57,13 +57,16 @@ public class CMWeatherManager {
|
|||||||
/**
|
/**
|
||||||
* The different request statuses
|
* The different request statuses
|
||||||
*/
|
*/
|
||||||
public static class RequestStatus {
|
public static final class RequestStatus {
|
||||||
|
|
||||||
|
private RequestStatus() {}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Request Successfully completed
|
* Request successfully completed
|
||||||
*/
|
*/
|
||||||
public static final int COMPLETED = 1;
|
public static final int COMPLETED = 1;
|
||||||
/**
|
/**
|
||||||
* An error occurred while trying to honor the request.
|
* An error occurred while trying to honor the request
|
||||||
*/
|
*/
|
||||||
public static final int FAILED = -1;
|
public static final int FAILED = -1;
|
||||||
/**
|
/**
|
||||||
@ -71,7 +74,7 @@ public class CMWeatherManager {
|
|||||||
*/
|
*/
|
||||||
public static final int SUBMITTED_TOO_SOON = -2;
|
public static final int SUBMITTED_TOO_SOON = -2;
|
||||||
/**
|
/**
|
||||||
* Another request in already in progress
|
* Another request is already in progress
|
||||||
*/
|
*/
|
||||||
public static final int ALREADY_IN_PROGRESS = -3;
|
public static final int ALREADY_IN_PROGRESS = -3;
|
||||||
/**
|
/**
|
||||||
|
@ -1366,8 +1366,7 @@ package cyanogenmod.weather {
|
|||||||
method public abstract void onLookupCityRequestCompleted(int, java.util.List<cyanogenmod.weather.WeatherLocation>);
|
method public abstract void onLookupCityRequestCompleted(int, java.util.List<cyanogenmod.weather.WeatherLocation>);
|
||||||
}
|
}
|
||||||
|
|
||||||
public static class CMWeatherManager.RequestStatus {
|
public static final class CMWeatherManager.RequestStatus {
|
||||||
ctor public CMWeatherManager.RequestStatus();
|
|
||||||
field public static final int ALREADY_IN_PROGRESS = -3; // 0xfffffffd
|
field public static final int ALREADY_IN_PROGRESS = -3; // 0xfffffffd
|
||||||
field public static final int COMPLETED = 1; // 0x1
|
field public static final int COMPLETED = 1; // 0x1
|
||||||
field public static final int FAILED = -1; // 0xffffffff
|
field public static final int FAILED = -1; // 0xffffffff
|
||||||
|
Loading…
Reference in New Issue
Block a user