From a370698482bd3cb6b26370816fa8cbd234b40a93 Mon Sep 17 00:00:00 2001 From: BOUHOURS Antoine Date: Mon, 23 Sep 2024 13:59:39 +0200 Subject: [PATCH] Review comments Signed-off-by: BOUHOURS Antoine --- .../com/powsybl/network/store/client/RestClientImpl.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/network-store-client/src/main/java/com/powsybl/network/store/client/RestClientImpl.java b/network-store-client/src/main/java/com/powsybl/network/store/client/RestClientImpl.java index db8ced1da..7a0eda37b 100644 --- a/network-store-client/src/main/java/com/powsybl/network/store/client/RestClientImpl.java +++ b/network-store-client/src/main/java/com/powsybl/network/store/client/RestClientImpl.java @@ -91,17 +91,17 @@ public void createAll(String url, List Optional> getOne(String target, String url, Object... uriVariables) { - return getOneDocument(target, url, new ParameterizedTypeReference>() { + return getOneDocument(url, new ParameterizedTypeReference>() { }, uriVariables); } @Override public Optional getOneExtensionAttributes(String url, Object... uriVariables) { - return getOneDocument(null, url, new ParameterizedTypeReference() { + return getOneDocument(url, new ParameterizedTypeReference() { }, uriVariables); } - public > Optional getOneDocument(String target, String url, ParameterizedTypeReference parameterizedTypeReference, Object... uriVariables) { + private > Optional getOneDocument(String url, ParameterizedTypeReference parameterizedTypeReference, Object... uriVariables) { ResponseEntity response = getDocument(url, parameterizedTypeReference, uriVariables); if (response.getStatusCode() == HttpStatus.OK) { AbstractTopLevelDocument body = getBody(response);