Skip to content

Missing @Throws annotation on SentryOkHttpInterceptor::intercept #5653

Description

@XYZboom

Description

The following code will not compile because we are missing the @Throws annotation on SentryOkHttpInterceptor::intercept

package xyzboom;

import io.sentry.okhttp.SentryOkHttpInterceptor;
import okhttp3.Interceptor;
import okhttp3.Response;
import org.jetbrains.annotations.NotNull;

import java.io.IOException;

public class MySentryOkHttpInterceptor extends SentryOkHttpInterceptor implements Interceptor {
    @NotNull
    @Override
    public Response intercept(@NotNull Chain chain) throws IOException {
        /**
         * some my logic
         */
        return super.intercept(chain);
    }
}

Sorry, I don't think the existing template is suitable for this issue, so I didn't use the template. I will submit a PR later.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions