This is an automated email from the ASF dual-hosted git repository. mdisabatino pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/syncope.git
The following commit(s) were added to refs/heads/master by this push: new f8b9ced Fix return param f8b9ced is described below commit f8b9cedf7543f42de019377c465fe4ff8769c966 Author: Marco Di Sabatino Di Diodoro <marco.disabat...@tirasa.net> AuthorDate: Wed Jul 21 11:06:21 2021 +0200 Fix return param --- .../java/org/apache/syncope/client/console/rest/SchemaRestClient.java | 3 +-- .../java/org/apache/syncope/client/enduser/rest/SchemaRestClient.java | 3 +-- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/client/idrepo/console/src/main/java/org/apache/syncope/client/console/rest/SchemaRestClient.java b/client/idrepo/console/src/main/java/org/apache/syncope/client/console/rest/SchemaRestClient.java index 957de8a..fbf9681 100644 --- a/client/idrepo/console/src/main/java/org/apache/syncope/client/console/rest/SchemaRestClient.java +++ b/client/idrepo/console/src/main/java/org/apache/syncope/client/console/rest/SchemaRestClient.java @@ -110,9 +110,8 @@ public class SchemaRestClient extends BaseRestClient { return getSchemaNames(SchemaType.VIRTUAL); } - public static PlainSchemaTO read(final SchemaType schemaType, final String key) { + public static <T extends SchemaTO> T read(final SchemaType schemaType, final String key) { return getService(SchemaService.class).read(schemaType, key); - } public static void create(final SchemaType schemaType, final SchemaTO modelObject) { diff --git a/client/idrepo/enduser/src/main/java/org/apache/syncope/client/enduser/rest/SchemaRestClient.java b/client/idrepo/enduser/src/main/java/org/apache/syncope/client/enduser/rest/SchemaRestClient.java index c89e35b..e897bf7 100644 --- a/client/idrepo/enduser/src/main/java/org/apache/syncope/client/enduser/rest/SchemaRestClient.java +++ b/client/idrepo/enduser/src/main/java/org/apache/syncope/client/enduser/rest/SchemaRestClient.java @@ -110,9 +110,8 @@ public class SchemaRestClient extends BaseRestClient { return getSchemaNames(SchemaType.VIRTUAL); } - public static PlainSchemaTO read(final SchemaType schemaType, final String key) { + public static <T extends SchemaTO> T read(final SchemaType schemaType, final String key) { return getService(SchemaService.class).read(schemaType, key); - } public static void create(final SchemaType schemaType, final SchemaTO modelObject) {