com.squareup.okhttp3:okhttp breaking changes
com.squareup.okhttp3:okhttp 4.0.0 (June 27, 2019) is its newest release with breaking changes, 33 of them. The first: Signature changed okhttp3.Address.<init>. Every breaking API change we have recorded in com.squareup.okhttp3:okhttp on Maven Central: 33 breaking changes in 1 version. Below, its one version with breaking changes, newest first, removals and renames first, each with its source.
Updated December 4, 2026
On this page
Latest version 5.5.1, released October 22, 2026.
Packages on Maven Central run on Java. Java end of life dates.
com.squareup.okhttp3:okhttp 4.0.0 breaking changes
- Signature changed
okhttp3.Address.<init>
Was Address(String, int, okhttp3.Dns, javax.net.SocketFactory, javax.net.ssl.SSLSocketFactory, javax.net.ssl.HostnameVerifier, okhttp3.CertificatePinner, okhttp3.Authenticator, java.net.Proxy, java.util.List<okhttp3.Protocol>... central.sonatype.com - Signature changed
okhttp3.CertificatePinner.check
Was void check(String, java.security.cert.Certificate...) void check(String, java.util.List<java.security.cert.Certificate>); now final void check(String, java.security.cert.Certificate...) final void check(String, java.util.List<? extends... central.sonatype.com - Signature changed
okhttp3.Handshake.get
Was static okhttp3.Handshake get(javax.net.ssl.SSLSession) static okhttp3.Handshake get(okhttp3.TlsVersion, okhttp3.CipherSuite, java.util.List<java.security.cert.Certificate>, java.util.List<java.security.cert.Certificate>); now static... central.sonatype.com - Signature changed
okhttp3.Headers
Was final class Headers; now final class Headers implements Iterable<kotlin.Pair<? extends String, ? extends String>>, kotlin.jvm.internal.markers.KMappedMarker. central.sonatype.com - Signature changed
okhttp3.OkHttpClient.authenticator
Was okhttp3.Authenticator authenticator(); now final okhttp3.Authenticator authenticator(). central.sonatype.com - Signature changed
okhttp3.OkHttpClient.Builder.protocols
Was okhttp3.OkHttpClient.Builder protocols(java.util.List<okhttp3.Protocol>); now final okhttp3.OkHttpClient.Builder protocols(java.util.List<? extends okhttp3.Protocol>). central.sonatype.com - Signature changed
okhttp3.OkHttpClient.cache
Was okhttp3.Cache cache(); now final okhttp3.Cache cache(). central.sonatype.com - Signature changed
okhttp3.OkHttpClient.callTimeoutMillis
Was int callTimeoutMillis(); now final int callTimeoutMillis(). central.sonatype.com - Signature changed
okhttp3.OkHttpClient.certificatePinner
Was okhttp3.CertificatePinner certificatePinner(); now final okhttp3.CertificatePinner certificatePinner(). central.sonatype.com - Signature changed
okhttp3.OkHttpClient.connectionPool
Was okhttp3.ConnectionPool connectionPool(); now final okhttp3.ConnectionPool connectionPool(). central.sonatype.com - Signature changed
okhttp3.OkHttpClient.connectionSpecs
Was java.util.List<okhttp3.ConnectionSpec> connectionSpecs(); now final java.util.List<okhttp3.ConnectionSpec> connectionSpecs(). central.sonatype.com - Signature changed
okhttp3.OkHttpClient.connectTimeoutMillis
Was int connectTimeoutMillis(); now final int connectTimeoutMillis(). central.sonatype.com - Signature changed
okhttp3.OkHttpClient.cookieJar
Was okhttp3.CookieJar cookieJar(); now final okhttp3.CookieJar cookieJar(). central.sonatype.com - Signature changed
okhttp3.OkHttpClient.dispatcher
Was okhttp3.Dispatcher dispatcher(); now final okhttp3.Dispatcher dispatcher(). central.sonatype.com - Signature changed
okhttp3.OkHttpClient.dns
Was okhttp3.Dns dns(); now final okhttp3.Dns dns(). central.sonatype.com - Signature changed
okhttp3.OkHttpClient.eventListenerFactory
Was okhttp3.EventListener.Factory eventListenerFactory(); now final okhttp3.EventListener.Factory eventListenerFactory(). central.sonatype.com - Signature changed
okhttp3.OkHttpClient.followRedirects
Was boolean followRedirects(); now final boolean followRedirects(). central.sonatype.com - Signature changed
okhttp3.OkHttpClient.followSslRedirects
Was boolean followSslRedirects(); now final boolean followSslRedirects(). central.sonatype.com - Signature changed
okhttp3.OkHttpClient.hostnameVerifier
Was javax.net.ssl.HostnameVerifier hostnameVerifier(); now final javax.net.ssl.HostnameVerifier hostnameVerifier(). central.sonatype.com - Signature changed
okhttp3.OkHttpClient.interceptors
Was java.util.List<okhttp3.Interceptor> interceptors(); now final java.util.List<okhttp3.Interceptor> interceptors(). central.sonatype.com - Signature changed
okhttp3.OkHttpClient.networkInterceptors
Was java.util.List<okhttp3.Interceptor> networkInterceptors(); now final java.util.List<okhttp3.Interceptor> networkInterceptors(). central.sonatype.com - Signature changed
okhttp3.OkHttpClient.pingIntervalMillis
Was int pingIntervalMillis(); now final int pingIntervalMillis(). central.sonatype.com - Signature changed
okhttp3.OkHttpClient.protocols
Was java.util.List<okhttp3.Protocol> protocols(); now final java.util.List<okhttp3.Protocol> protocols(). central.sonatype.com - Signature changed
okhttp3.OkHttpClient.proxy
Was java.net.Proxy proxy(); now final java.net.Proxy proxy(). central.sonatype.com - Signature changed
okhttp3.OkHttpClient.proxyAuthenticator
Was okhttp3.Authenticator proxyAuthenticator(); now final okhttp3.Authenticator proxyAuthenticator(). central.sonatype.com - Signature changed
okhttp3.OkHttpClient.proxySelector
Was java.net.ProxySelector proxySelector(); now final java.net.ProxySelector proxySelector(). central.sonatype.com - Signature changed
okhttp3.OkHttpClient.readTimeoutMillis
Was int readTimeoutMillis(); now final int readTimeoutMillis(). central.sonatype.com - Signature changed
okhttp3.OkHttpClient.retryOnConnectionFailure
Was boolean retryOnConnectionFailure(); now final boolean retryOnConnectionFailure(). central.sonatype.com - Signature changed
okhttp3.OkHttpClient.socketFactory
Was javax.net.SocketFactory socketFactory(); now final javax.net.SocketFactory socketFactory(). central.sonatype.com - Signature changed
okhttp3.OkHttpClient.sslSocketFactory
Was javax.net.ssl.SSLSocketFactory sslSocketFactory(); now final javax.net.ssl.SSLSocketFactory sslSocketFactory(). central.sonatype.com - Signature changed
okhttp3.OkHttpClient.writeTimeoutMillis
Was int writeTimeoutMillis(); now final int writeTimeoutMillis(). central.sonatype.com - Signature changed
okhttp3.RequestBody.create
Was static okhttp3.RequestBody create(okhttp3.MediaType, String) static okhttp3.RequestBody create(okhttp3.MediaType, byte[]) static okhttp3.RequestBody create(okhttp3.MediaType, byte[], int, int) static okhttp3.RequestBody... central.sonatype.com - Signature changed
okhttp3.ResponseBody.create
Was static okhttp3.ResponseBody create(okhttp3.MediaType, String) static okhttp3.ResponseBody create(okhttp3.MediaType, byte[]) static okhttp3.ResponseBody create(okhttp3.MediaType, long, okio.BufferedSource) static okhttp3.ResponseBody... central.sonatype.com
Related packages
Check your code
These are the changes. To see which of them reach your code, scan a public repository, or have your coding agent call check_code with your manifest or lockfile over MCP. The API reads every change in every version. A fix pull request opens for the changes that reach a connected repository. Nothing merges or deploys.

Put your code on continuous maintenance.
Scan a public repository now, or give your agent one line.
See how out of date your code is.
Tell your agent what changed since it was trained.
claude mcp add --transport http since https://api.since.dev/mcpCodex, Cursor and any MCP client use https://api.since.dev/mcp.