Proba naprawienia
Signed-off-by: Marcin Woźniak <y0rune@aol.com>
This commit is contained in:
parent
756e854f31
commit
11d21be627
@ -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();
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user