You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@syncope.apache.org by md...@apache.org on 2021/07/21 09:06:40 UTC

[syncope] branch 2_1_X updated: Fix return param

This is an automated email from the ASF dual-hosted git repository.

mdisabatino pushed a commit to branch 2_1_X
in repository https://gitbox.apache.org/repos/asf/syncope.git


The following commit(s) were added to refs/heads/2_1_X by this push:
     new 1a2a15f  Fix return param
1a2a15f is described below

commit 1a2a15f2108fc072e2680092d8d526b710f19c99
Author: Marco Di Sabatino Di Diodoro <ma...@tirasa.net>
AuthorDate: Wed Jul 21 11:06:21 2021 +0200

    Fix return param
---
 .../java/org/apache/syncope/client/console/rest/SchemaRestClient.java   | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/client/console/src/main/java/org/apache/syncope/client/console/rest/SchemaRestClient.java b/client/console/src/main/java/org/apache/syncope/client/console/rest/SchemaRestClient.java
index 6e75036..8a7bfae 100644
--- a/client/console/src/main/java/org/apache/syncope/client/console/rest/SchemaRestClient.java
+++ b/client/console/src/main/java/org/apache/syncope/client/console/rest/SchemaRestClient.java
@@ -113,7 +113,7 @@ public class SchemaRestClient extends BaseRestClient {
         return getSchemaNames(SchemaType.VIRTUAL);
     }
 
-    public PlainSchemaTO read(final SchemaType schemaType, final String key) {
+    public <T extends SchemaTO> T read(final SchemaType schemaType, final String key) {
         return getService(SchemaService.class).read(schemaType, key);
 
     }