Skip to content

Commit cd846ec

Browse files
committed
Migrate to okhttpd 5.3.2
1 parent bf1a590 commit cd846ec

3 files changed

Lines changed: 5 additions & 6 deletions

File tree

plugin/cog/cog-rangereader-http/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
</dependency>
1919
<dependency>
2020
<groupId>com.squareup.okhttp3</groupId>
21-
<artifactId>okhttp</artifactId>
21+
<artifactId>okhttp-jvm</artifactId>
2222
</dependency>
2323
</dependencies>
2424

plugin/cog/cog-rangereader-http/src/main/java/it/geosolutions/imageioimpl/plugins/cog/AsyncHttpCallback.java

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,6 @@
2121
import okhttp3.Call;
2222
import okhttp3.Callback;
2323
import okhttp3.Response;
24-
import org.jetbrains.annotations.NotNull;
2524

2625
/**
2726
* Callback for asynchronous HTTP requests for OkHttp
@@ -43,13 +42,13 @@ enum Status {
4342
private static final Logger LOGGER = Logger.getLogger(AsyncHttpCallback.class.getName());
4443

4544
@Override
46-
public void onFailure(@NotNull Call call, @NotNull IOException e) {
45+
public void onFailure(Call call, IOException e) {
4746
LOGGER.severe("Error executing HTTP request. " + e);
4847
status = Status.FAILED;
4948
}
5049

5150
@Override
52-
public void onResponse(@NotNull Call call, @NotNull Response response) throws IOException {
51+
public void onResponse(Call call, Response response) throws IOException {
5352
try {
5453
bytes = response.body().bytes();
5554
status = Status.DONE;

plugin/cog/pom.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323

2424
<properties>
2525
<cloud-dependencies-bom.version>1.0.1</cloud-dependencies-bom.version>
26-
<okhttp.version>4.12.0</okhttp.version>
26+
<okhttp.version>5.3.2</okhttp.version>
2727
<ehcache.version>3.4.0</ehcache.version>
2828
<online.skip.pattern>**/*OnlineTest.java</online.skip.pattern>
2929
</properties>
@@ -74,7 +74,7 @@
7474
</dependency>
7575
<dependency>
7676
<groupId>com.squareup.okhttp3</groupId>
77-
<artifactId>okhttp</artifactId>
77+
<artifactId>okhttp-jvm</artifactId>
7878
<version>${okhttp.version}</version>
7979
</dependency>
8080
<dependency>

0 commit comments

Comments
 (0)