Bug 1476552 - GeckoSession::WebResponseInfo Kotlin annotations and static r=sebastian

MozReview-Commit-ID: 1HWEStKaGVl

Bug 1476552 part 1 - Add @NonNull/@Nullable annotations to GeckoSession::WebResponseInfo for Kotlin interoperability

Bug 1476552 part 2 - Make GeckoSession::WebResponseInfo static

MozReview-Commit-ID: 4ce92G7i2nz

Differential Revision: https://phabricator.services.mozilla.com/D2885

--HG--
extra : moz-landing-system : lando
This commit is contained in:
Raynald Mirville 2018-08-28 13:02:23 +00:00
parent adae89f267
commit 27f61415a8

View File

@ -2069,27 +2069,27 @@ public class GeckoSession extends LayerSession
/**
* WebResponseInfo contains information about a single web response.
*/
public class WebResponseInfo {
static public class WebResponseInfo {
/**
* The URI of the response. Cannot be null.
*/
public final String uri;
@NonNull public final String uri;
/**
* The content type (mime type) of the response. May be null.
*/
public final String contentType;
@Nullable public final String contentType;
/**
* The content length of the response. May be 0 if unknokwn.
*/
public final long contentLength;
@Nullable public final long contentLength;
/**
* The filename obtained from the content disposition, if any.
* May be null.
*/
public final String filename;
@Nullable public final String filename;
/* package */ WebResponseInfo(GeckoBundle message) {
uri = message.getString("uri");