From ad39bb4ef5806d42ed7aef7f1aa151a9a039d947 Mon Sep 17 00:00:00 2001 From: Paul Ferraro Date: Tue, 19 Dec 2023 12:46:11 -0500 Subject: [PATCH] WFCORE-6347 Drop redundant getCapabity() method. --- .../resource/capability/RuntimeCapabilityProvider.java | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/subsystem/src/main/java/org/wildfly/subsystem/resource/capability/RuntimeCapabilityProvider.java b/subsystem/src/main/java/org/wildfly/subsystem/resource/capability/RuntimeCapabilityProvider.java index 68b3f205e22..d15216d1f58 100644 --- a/subsystem/src/main/java/org/wildfly/subsystem/resource/capability/RuntimeCapabilityProvider.java +++ b/subsystem/src/main/java/org/wildfly/subsystem/resource/capability/RuntimeCapabilityProvider.java @@ -14,16 +14,14 @@ */ public interface RuntimeCapabilityProvider extends Supplier>, ServiceDescriptor { - RuntimeCapability getCapability(); - @Override default String getName() { - return this.getCapability().getName(); + return this.get().getName(); } @SuppressWarnings("unchecked") @Override default Class getType() { - return (Class) this.getCapability().getCapabilityServiceValueType(); + return (Class) this.get().getCapabilityServiceValueType(); } }