Commit 27f61415 authored by Raynald Mirville's avatar Raynald Mirville
Browse files

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
parent adae89f2
Loading
Loading
Loading
Loading
+5 −5
Original line number Diff line number Diff line
@@ -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");