Skip to content

Commit 3b12214

Browse files
committed
fixed non concrete return type
1 parent 0dfa3d0 commit 3b12214

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

src/main/java/org/myrobotlab/framework/Service.java

+3-4
Original file line numberDiff line numberDiff line change
@@ -1408,9 +1408,8 @@ public T getConfig() {
14081408
return config;
14091409
}
14101410

1411-
public <P extends ServiceConfig> P getPeerConfig(String peerKey) {
1412-
return getPeerConfig(peerKey, new StaticType<>() {
1413-
});
1411+
public ServiceConfig getPeerConfig(String peerKey) {
1412+
return getPeerConfig(peerKey, new StaticType<ServiceConfig>() {});
14141413
}
14151414

14161415

@@ -1457,7 +1456,7 @@ public <P extends ServiceConfig> P getPeerConfig(String peerKey, StaticType<P> t
14571456
}
14581457

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

0 commit comments

Comments
 (0)