From 3b12214657191d80fac696bf6ff0ac70317042d3 Mon Sep 17 00:00:00 2001 From: grog Date: Tue, 24 Oct 2023 18:05:11 -0700 Subject: [PATCH] fixed non concrete return type --- src/main/java/org/myrobotlab/framework/Service.java | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/src/main/java/org/myrobotlab/framework/Service.java b/src/main/java/org/myrobotlab/framework/Service.java index cc6992d87e..8d4dcc7ab8 100644 --- a/src/main/java/org/myrobotlab/framework/Service.java +++ b/src/main/java/org/myrobotlab/framework/Service.java @@ -1408,9 +1408,8 @@ public T getConfig() { return config; } - public

P getPeerConfig(String peerKey) { - return getPeerConfig(peerKey, new StaticType<>() { - }); + public ServiceConfig getPeerConfig(String peerKey) { + return getPeerConfig(peerKey, new StaticType() {}); } @@ -1457,7 +1456,7 @@ public

P getPeerConfig(String peerKey, StaticType

t } public void setPeerConfigValue(String peerKey, String fieldname, Object value) throws NoSuchFieldException, SecurityException, IllegalArgumentException, IllegalAccessException { - ServiceConfig sc = getPeerConfig(peerKey, new StaticType<>() {}); + ServiceConfig sc = getPeerConfig(peerKey, new StaticType() {}); if (sc == null) { error("invalid config for peer key %s field name %s", peerKey, fieldname); return;