Proba naprawienia

Signed-off-by: Marcin Woźniak <y0rune@aol.com>
This commit is contained in:
Marcin Woźniak 2021-01-09 13:11:10 +01:00
parent 756e854f31
commit 11d21be627
Signed by: y0rune
GPG Key ID: F204C385F57EB348

View File

@ -3,7 +3,6 @@ package com.plannaplan.services;
import java.io.IOException;
import java.util.Map;
import java.util.concurrent.ExecutionException;
import java.util.concurrent.TimeUnit;
import com.fasterxml.jackson.databind.ObjectMapper;
import com.fasterxml.jackson.core.type.TypeReference;
@ -60,6 +59,7 @@ public class UsosApiService {
try (Response response = service.execute(request)) {
System.out.println("TRY");
final String json = response.getBody();
if (json != null){
System.out.println(json);
System.out.println("Przed Object");
final ObjectMapper mapper = new ObjectMapper();
@ -73,6 +73,7 @@ public class UsosApiService {
apiResponse.setSurname(map.get(SURNAME_FIELD));
System.out.println(map.get(SURNAME_FIELD));
}
}
} catch (IOException | InterruptedException | ExecutionException e) {
e.printStackTrace();
}